Add flake.nix

This commit is contained in:
2026-07-07 11:15:27 +01:00
parent 49ba7ddb41
commit 2930d71889
3 changed files with 31 additions and 3 deletions
+28
View File
@@ -0,0 +1,28 @@
{
description = "kutu wm environment";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
};
in {
devShells.${system}.default = pkgs.mkShell {
packages = with pkgs; [
ruby
gcc
pkg-config
xorg.libxcb
xorg.xcbutilwm
];
shellHook = ''
echo "kutu dev shell"
'';
};
};
}
+2 -2
View File
@@ -132,7 +132,7 @@ keybind 171, presets[:mod] do |_event|
run %q(dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next) run %q(dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next)
end end
keybind 110, presets[:mod] do |_event| keybind 89, presets[:mod] do |_event|
monitor = current_monitor monitor = current_monitor
persistence_path = File.join(__dir__, ".num.json") persistence_path = File.join(__dir__, ".num.json")
persistence = File.exist?(persistence_path) ? persistence = File.exist?(persistence_path) ?
@@ -148,7 +148,7 @@ keybind 110, presets[:mod] do |_event|
end end
end end
keybind 89, presets[:mod] do |event| keybind 81, presets[:mod] do |event|
monitor = current_monitor monitor = current_monitor
persistence_path = File.join(__dir__, ".num.json") persistence_path = File.join(__dir__, ".num.json")
persistence = File.exist?(persistence_path) ? persistence = File.exist?(persistence_path) ?
+1 -1
View File
@@ -2,7 +2,7 @@
choice=$( choice=$(
( (
printf "%s\n" godot mvox mox aseprite terraria zomboid silksong factorio oxygen printf "%s\n" prism
compgen -c compgen -c
) | ) |
grep -v -E '^(if|fi|case|esac|for|done|while|until|select|function|return|continue|break|time|exec|source|alias|builtin|read|export|unset|local|set|declare|typeset|:|\.|\[|coproc|l|ll|ls|then|else|elif|do|in|\{|\}|!|\[\[|\]\]|_.*|compgen)$' | grep -v -E '^(if|fi|case|esac|for|done|while|until|select|function|return|continue|break|time|exec|source|alias|builtin|read|export|unset|local|set|declare|typeset|:|\.|\[|coproc|l|ll|ls|then|else|elif|do|in|\{|\}|!|\[\[|\]\]|_.*|compgen)$' |