sway: update, move host-config to beginning, move/resize more, put appid/class in title

This commit is contained in:
Konstantin Koslowski 2021-01-06 19:15:39 +01:00
parent a935771610
commit f78589de38

47
config
View file

@ -23,10 +23,15 @@ set $volume_cmd "$HOME/.config/sway/bin/sway_volume
set $font Cascadia Code PL Regular 10
# Your preferred application launcher
set $bemenu 'bemenu -i --nb "#3f3f3f" --nf "#dcdccc" --tf "$268bd2" --hf "#268bd2" --fn $font'
set $bemenu 'bemenu -i --nb "#3f3f3f" --nf "#dcdccc" --tf "$268bd2" --hf "#268bd2" --fn "$font"'
set $menu j4-dmenu-desktop --term="termite" \
--dmenu=$bemenu
#
# Host Specific
#
include $HOME/.config/sway/hosts.d/$(hostname).conf
#
# General Options
#
@ -164,16 +169,17 @@ bindsym $mod+space focus mode_toggle
# Move focus to the parent container
bindsym $mod+a focus parent
#
## Volume
#
bindsym XF86AudioRaiseVolume exec $volume_cmd increase
bindsym XF86AudioLowerVolume exec $volume_cmd decrease
bindsym XF86AudioMute exec $volume_cmd mute
bindsym XF86MonBrightnessUp exec $brightness_cmd increase
bindsym XF86MonBrightnessDown exec $brightness_cmd decrease
#
#
## Screenshot
#
# copy selection to clipboard
@ -207,15 +213,15 @@ bindsym $mod+c [con_mark="c"] scratchpad show
# Resizing containers:
#
mode "resize" {
# left will shrink the containers width
# right will grow the containers width
# up will shrink the containers height
# down will grow the containers height
bindsym $left move left 25 px; resize shrink width 50px
bindsym $down move down 25 px; resize grow height 50px
bindsym $up move up 25 px; resize shrink height 50px
bindsym $right move right 25 px; resize grow width 50px
bindsym $left resize shrink width 25px
bindsym $down resize grow height 25px
bindsym $up resize shrink height 25px
bindsym $right resize grow width 25px
# resize more
bindsym Shift+$left resize shrink width 100px
bindsym Shift+$down resize grow height 100px
bindsym Shift+$up resize shrink height 100px
bindsym Shift+$right resize grow width 100px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
@ -223,10 +229,15 @@ mode "resize" {
bindsym $mod+r mode "resize"
mode "move" {
bindsym $left move left 50px
bindsym $down move down 50px
bindsym $up move up 50px
bindsym $right move right 50px
bindsym $left move left 25px
bindsym $down move down 25px
bindsym $up move up 25px
bindsym $right move right 25px
# move more
bindsym Shift+$left move left 100px
bindsym Shift+$down move down 100px
bindsym Shift+$up move up 100px
bindsym Shift+$right move right 100px
# Return to default mode
bindsym Return mode "default"
bindsym Escape mode "default"
@ -239,9 +250,8 @@ bindsym $mod+m mode "move"
for_window [title="nmtui"] floating enable
for_window [app_id="pavucontrol"] floating enable
for_window [app_id="com.nextcloud.desktopclient.nextcloud"] floating enable
for_window [title=".*"] title_format "<b>%title</b> (%app_id:%class:%instance)"
for_window [app_id=".*"] title_format "<b>%title</b> (%app_id)"
for_window [class=".*"] title_format "<b>%title</b> (%class:%instance)"
for_window [app_id=".*"] title_format '<span font_weight="bold">%title</span> <span>(%app_id)</span>'
for_window [class=".*"] title_format '<span font_weight="bold">%title</span> <span>(%class:%instance)</span>'
#
# Status Bar:
@ -268,4 +278,3 @@ bar {
exec --no-startup-id nextcloud --background
include /etc/sway/config.d/*
include $HOME/.config/sway/hosts.d/$(hostname).conf