sway: integrate sane-screenshot as the PrintScreen shortcut
This commit is contained in:
@@ -92,12 +92,6 @@ in
|
||||
- etc
|
||||
'';
|
||||
};
|
||||
|
||||
screenshot_cmd = mkOption {
|
||||
type = types.str;
|
||||
default = "grimshot copy area";
|
||||
description = "command to run when user wants to take a screenshot";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -116,6 +110,7 @@ in
|
||||
"pulsemixer" # for volume controls
|
||||
"rofi" # menu/launcher
|
||||
"rofi-snippets"
|
||||
"sane-screenshot"
|
||||
"sane-open-desktop"
|
||||
"splatmoji" # used by sway config
|
||||
"sway-contrib.grimshot" # used by sway config
|
||||
@@ -159,7 +154,6 @@ in
|
||||
inherit (cfg.config)
|
||||
background
|
||||
extra_lines
|
||||
screenshot_cmd
|
||||
font
|
||||
mod
|
||||
workspace_layout
|
||||
|
@@ -67,7 +67,8 @@ bindsym --locked XF86MonBrightnessUp exec brightnessctl set +5%
|
||||
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||
|
||||
#### special functions
|
||||
bindsym $mod+Print exec @screenshot_cmd@
|
||||
bindsym Print exec sane-open-desktop sane-screenshot.desktop
|
||||
bindsym $mod+Print exec sane-open-desktop sane-screenshot.desktop
|
||||
bindsym $mod+l exec sane-open-desktop swaylock.desktop
|
||||
bindsym $mod+s exec sane-open-desktop rofi-snippets.desktop
|
||||
bindsym $mod+slash exec sane-open-desktop splatmoji.desktop
|
||||
|
@@ -300,7 +300,7 @@ in
|
||||
mod = "Mod1"; # prefer Alt
|
||||
workspace_layout = "tabbed";
|
||||
|
||||
screenshot_cmd = "sxmo_screenshot.sh";
|
||||
# screenshot_cmd = "sxmo_screenshot.sh";
|
||||
extra_lines =
|
||||
let
|
||||
sxmo_init = pkgs.writeShellScript "sxmo_init.sh" ''
|
||||
|
Reference in New Issue
Block a user