From dd2276099946a07e73c598d81ce0db35d93d71ea Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Sep 2024 09:05:18 +0200 Subject: ... --- accounts/gkleen@sif/hyprland.nix | 24 +++++++++++++----------- user-profiles/mpv/default.nix | 3 ++- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/accounts/gkleen@sif/hyprland.nix b/accounts/gkleen@sif/hyprland.nix index 7cfd6848..17385a06 100644 --- a/accounts/gkleen@sif/hyprland.nix +++ b/accounts/gkleen@sif/hyprland.nix @@ -183,10 +183,10 @@ in { "$mainMod SHIFT, code:15, movetoworkspacesilent, 9" "$mainMod SHIFT, code:16, movetoworkspacesilent, 10" - "CTRL, space, exec, dunstctl close" - "CTRL SHIFT, space, exec, dunstctl close-all" - "CTRL, period, exec, dunstctl context" - "CTRL, comma, exec, dunstctl history-pop" + "$mainMod, semicolon, exec, dunstctl close" + "$mainMod SHIFT, semicolon, exec, dunstctl close-all" + "$mainMod, period, exec, dunstctl context" + "$mainMod, comma, exec, dunstctl history-pop" "$mainMod ALT, E, exec, emacsclient -c" "$mainMod ALT, Y, exec, ${pkgs.writeShellScript "yt-dlp" '' @@ -194,13 +194,6 @@ in { socat STDIO UNIX-CONNECT:"$XDG_RUNTIME_DIR"/yt-dlp.sock <<<$'{ "urls": ["'"$(wl-paste)"$'"] }' ''}" - ", XF86MonBrightnessUp, exec, lightctl -d -e4 -n1 up" - ", XF86MonBrightnessDown, exec, lightctl -d -e4 -n1 down" - ", XF86AudioRaiseVolume, exec, volumectl -d -u up" - ", XF86AudioLowerVolume, exec, volumectl -d -u down" - ", XF86AudioMute, exec, volumectl -d toggle-mute" - ", XF86AudioMicMute, exec, volumectl -d -m toggle-mute" - ", Print, exec, ${pkgs.writeShellScript "screenshot" '' export PATH="${lib.makeBinPath (with pkgs; [ grim slurp wl-clipboard-rs coreutils ])}:$PATH" @@ -339,7 +332,16 @@ in { "$mainMod, mouse:272, movewindow" "$mainMod, mouse:273, resizewindow" ]; + bindel = [ + ", XF86MonBrightnessUp, exec, lightctl -d -e4 -n1 up" + ", XF86MonBrightnessDown, exec, lightctl -d -e4 -n1 down" + ", XF86AudioRaiseVolume, exec, volumectl -d -u up" + ", XF86AudioLowerVolume, exec, volumectl -d -u down" + ]; bindl = [ + ", XF86AudioMute, exec, volumectl -d toggle-mute" + ", XF86AudioMicMute, exec, volumectl -d -m toggle-mute" + ", switch:off:Lid Switch,exec,hyprctl dispatch dpms on eDP-1" ", switch:on:Lid Switch,exec,hyprctl dispatch dpms off eDP-1" diff --git a/user-profiles/mpv/default.nix b/user-profiles/mpv/default.nix index 8fc38edd..2df87994 100644 --- a/user-profiles/mpv/default.nix +++ b/user-profiles/mpv/default.nix @@ -91,7 +91,8 @@ mp.commandv('quit', '4') end) mp.register_event('end-file', function(params) - if (params.reason == 'eof' or (do_del and params.reason == 'quit')) and del_path ~= ''' then + print('end-file: '..params.reason..', '..tostring(do_del)..', '..del_path) + if (params.reason == 'eof' or params.reason == 'stop' or (do_del and params.reason == 'quit')) and del_path ~= ''' then print('deleting: '..del_path) os.remove(del_path) end -- cgit v1.2.3