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