sway: integrate sane-screenshot as the PrintScreen shortcut
This commit is contained in:
@@ -92,12 +92,6 @@ in
|
|||||||
- etc
|
- 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
|
"pulsemixer" # for volume controls
|
||||||
"rofi" # menu/launcher
|
"rofi" # menu/launcher
|
||||||
"rofi-snippets"
|
"rofi-snippets"
|
||||||
|
"sane-screenshot"
|
||||||
"sane-open-desktop"
|
"sane-open-desktop"
|
||||||
"splatmoji" # used by sway config
|
"splatmoji" # used by sway config
|
||||||
"sway-contrib.grimshot" # used by sway config
|
"sway-contrib.grimshot" # used by sway config
|
||||||
@@ -159,7 +154,6 @@ in
|
|||||||
inherit (cfg.config)
|
inherit (cfg.config)
|
||||||
background
|
background
|
||||||
extra_lines
|
extra_lines
|
||||||
screenshot_cmd
|
|
||||||
font
|
font
|
||||||
mod
|
mod
|
||||||
workspace_layout
|
workspace_layout
|
||||||
|
@@ -67,7 +67,8 @@ bindsym --locked XF86MonBrightnessUp exec brightnessctl set +5%
|
|||||||
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
|
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
|
||||||
|
|
||||||
#### special functions
|
#### 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+l exec sane-open-desktop swaylock.desktop
|
||||||
bindsym $mod+s exec sane-open-desktop rofi-snippets.desktop
|
bindsym $mod+s exec sane-open-desktop rofi-snippets.desktop
|
||||||
bindsym $mod+slash exec sane-open-desktop splatmoji.desktop
|
bindsym $mod+slash exec sane-open-desktop splatmoji.desktop
|
||||||
|
@@ -300,7 +300,7 @@ in
|
|||||||
mod = "Mod1"; # prefer Alt
|
mod = "Mod1"; # prefer Alt
|
||||||
workspace_layout = "tabbed";
|
workspace_layout = "tabbed";
|
||||||
|
|
||||||
screenshot_cmd = "sxmo_screenshot.sh";
|
# screenshot_cmd = "sxmo_screenshot.sh";
|
||||||
extra_lines =
|
extra_lines =
|
||||||
let
|
let
|
||||||
sxmo_init = pkgs.writeShellScript "sxmo_init.sh" ''
|
sxmo_init = pkgs.writeShellScript "sxmo_init.sh" ''
|
||||||
|
Reference in New Issue
Block a user