niri: add text editor bind
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
ef8f3957e8
commit
163cb674bb
1 changed files with 5 additions and 2 deletions
|
@ -13,6 +13,7 @@ with lib; let
|
||||||
cat = "${pkgs.coreutils}/bin/cat";
|
cat = "${pkgs.coreutils}/bin/cat";
|
||||||
codium = "${config.home-manager.users.${config.custom.username}.programs.vscode.package}/bin/codium";
|
codium = "${config.home-manager.users.${config.custom.username}.programs.vscode.package}/bin/codium";
|
||||||
ghostty = "${hm.programs.ghostty.package}/bin/ghostty";
|
ghostty = "${hm.programs.ghostty.package}/bin/ghostty";
|
||||||
|
gnome-text-editor = "${pkgs.gnome-text-editor}/bin/gnome-text-editor";
|
||||||
hyprlock = "${config.home-manager.users.${config.custom.username}.programs.hyprlock.package}/bin/hyprlock";
|
hyprlock = "${config.home-manager.users.${config.custom.username}.programs.hyprlock.package}/bin/hyprlock";
|
||||||
hyprpicker = "${pkgs.hyprpicker}/bin/hyprpicker";
|
hyprpicker = "${pkgs.hyprpicker}/bin/hyprpicker";
|
||||||
inhibit = config.home-manager.users.${config.custom.username}.home.file.".local/bin/inhibit".source;
|
inhibit = config.home-manager.users.${config.custom.username}.home.file.".local/bin/inhibit".source;
|
||||||
|
@ -115,14 +116,16 @@ in {
|
||||||
(key "Delete" "Ctrl+Alt" (spawn [loginctl "terminate-user" config.custom.username]))
|
(key "Delete" "Ctrl+Alt" (spawn [loginctl "terminate-user" config.custom.username]))
|
||||||
(key "Delete" "Mod" (spawn [playerctl] "play-pause"))
|
(key "Delete" "Mod" (spawn [playerctl] "play-pause"))
|
||||||
(key "Down" "Mod" (spawn [swayosd-client "--brightness" "lower"]))
|
(key "Down" "Mod" (spawn [swayosd-client "--brightness" "lower"]))
|
||||||
(key "E" "Ctrl+Alt" (spawn [pkill "codium"]))
|
(key "E" "Ctrl+Alt" (spawn [pkill "gnome-text-editor"]))
|
||||||
(key "E" "Mod" (spawn codium))
|
(key "E" "Mod" (spawn gnome-text-editor))
|
||||||
(key "Equal" "Mod" (spawn [swayosd-client "--output-volume" "raise"]))
|
(key "Equal" "Mod" (spawn [swayosd-client "--output-volume" "raise"]))
|
||||||
(key "Escape" "Mod" toggle-window-floating)
|
(key "Escape" "Mod" toggle-window-floating)
|
||||||
(key "Escape" "Mod+Alt" (spawn ["lifx" "state" "--color" "red"]))
|
(key "Escape" "Mod+Alt" (spawn ["lifx" "state" "--color" "red"]))
|
||||||
(key "F" "Mod" (spawn [nautilus "--new-window"]))
|
(key "F" "Mod" (spawn [nautilus "--new-window"]))
|
||||||
(key "G" "Ctrl+Alt" (spawn [pkill "steam"]))
|
(key "G" "Ctrl+Alt" (spawn [pkill "steam"]))
|
||||||
(key "G" "Mod" (spawn steam))
|
(key "G" "Mod" (spawn steam))
|
||||||
|
(key "I" "Ctrl+Alt" (spawn [pkill "codium"]))
|
||||||
|
(key "I" "Mod" (spawn codium))
|
||||||
(key "K" "Ctrl+Alt" (spawn [pkill "obsidian"]))
|
(key "K" "Ctrl+Alt" (spawn [pkill "obsidian"]))
|
||||||
(key "K" "Mod" (spawn obsidian))
|
(key "K" "Mod" (spawn obsidian))
|
||||||
(key "L" "Mod" (spawn [bash "-c" "${hyprlock} --immediate & ${niri} msg action power-off-monitors"]))
|
(key "L" "Mod" (spawn [bash "-c" "${hyprlock} --immediate & ${niri} msg action power-off-monitors"]))
|
||||||
|
|
Loading…
Add table
Reference in a new issue