Updated screenshot bindings.

This commit is contained in:
Sheldon Lee 2022-01-24 05:16:59 +08:00
parent df66e00727
commit 3dc2a35d03
2 changed files with 9 additions and 4 deletions

View File

@ -30,7 +30,10 @@ set $right l
set $term alacritty
# Your preferred application launcher
set $menu "rofi -modi drun,run -show drun"
# Window switcher
set $search "rofi -modi window -show window"
# Screenshot
set $screenshot "~/.config/wm_scripts/screenshot.sh"
set $mon1 DisplayPort-0
set $mon2 HDMI-A-0
@ -49,7 +52,7 @@ set $mon2 HDMI-A-0
bindsym $mod+space exec $menu
# screenshot
bindsym $mod+q exec ~/.config/wm_scripts/screenshot.sh
bindsym $mod+q exec $screenshot
# Search window
bindsym $mod+e exec $search

View File

@ -39,8 +39,9 @@ set $term alacritty
# on the original workspace that the command was run on.
set $menucmd bemenu -l 10 --scrollbar always --fn '$font' --tb '$base02' --tf '$green' --fb '$base03' --ff '$base0' --nb '$base03' --nf '$base0' --sb '$base02' --sf 'cyan' --hb '$base02' --hf '$cyan' --scb '$base02' --scf '$cyan'
set $menu dmenu_path | $menucmd | xargs swaymsg exec --
# Screenshot
set $screenshot "~/.config/wm_scripts/screenshot.sh"
set $testcmd echo $PATH > $HOME/testcmd
set $mon1 DP-1
set $mon2 HDMI-A-1
@ -96,14 +97,15 @@ exec swayidle -w \
#
# Start a terminal
bindsym $mod+Return exec $term
bindsym $mod+q exec $testcmd
# Kill focused window
bindsym $mod+w kill
# Start your launcher
bindsym $mod+space exec $menu
bindsym $mod+e exec $search
# Screenshot
bindsym $mod+q exec $screenshot
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.