bin: add sway_output, bind to mod+p, menu to mod+t

This commit is contained in:
Konstantin Koslowski 2021-01-14 13:05:06 +01:00
parent 3b897ba868
commit 3fec545841
2 changed files with 124 additions and 1 deletions

8
config
View file

@ -18,6 +18,7 @@ set $term termite
set $background $HOME/Cloud/xkonni/Pictures/wallpaper/5k_bavarian_forest_bw.jpg
set $lock_cmd $HOME/.config/sway/bin/sway_lock
set $brightness_cmd "$HOME/.config/sway/bin/sway_brightness
set $output_cmd "$HOME/.config/sway/bin/sway_output
set $suspend_cmd "$HOME/.config/sway/bin/sway_suspend
set $volume_cmd "$HOME/.config/sway/bin/sway_volume
set $font Cascadia Code PL Regular 10
@ -79,7 +80,7 @@ bindsym $mod+Shift+q kill
bindsym --release button3 kill
# Start your launcher
bindsym $mod+p exec $menu
bindsym $mod+t exec $menu
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
@ -187,6 +188,10 @@ bindsym Print exec grim -g "$(slurp)" - | wl-copy
# save selection
bindsym $mod+Print exec grim -g "$(slurp)" \
$(xdg-user-dir PICTURES)/screenshot_$(date +'%Y%m%d_%H%M%S').png
#
## Output
#
bindsym $mod+p exec "$term -t float -e $output_cmd"
#
# Gaps
@ -248,6 +253,7 @@ bindsym $mod+m mode "move"
# Window Rules:
#
for_window [title="nmtui"] floating enable
for_window [title="float*"] floating enable
for_window [app_id="pavucontrol"] floating enable
for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable
for_window [app_id=".*"] title_format '<span font_weight="bold">%title</span> <span>(%app_id)</span>'