sway: fix font, improve resize and specify title_format
This commit is contained in:
parent
bf535bdae4
commit
d2f9d3cca0
1 changed files with 18 additions and 15 deletions
33
config
33
config
|
@ -20,13 +20,18 @@ set $lock_cmd $HOME/.config/sway/bin/lock
|
|||
set $brightness_cmd "$HOME/.config/sway/bin/brightness
|
||||
set $suspend_cmd "$HOME/.config/sway/bin/suspend
|
||||
set $volume_cmd "$HOME/.config/sway/bin/volume
|
||||
set $font "Cascadia Code PL Regular 10"
|
||||
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 $menu j4-dmenu-desktop --term="termite" \
|
||||
--dmenu=$bemenu
|
||||
|
||||
# don't wrap focus
|
||||
focus_wrapping no
|
||||
# set font
|
||||
font pango:$font
|
||||
|
||||
### Output configuration
|
||||
output * bg $background fill
|
||||
# Example configuration:
|
||||
|
@ -190,6 +195,7 @@ bindsym $mod+Shift+s mark s; move scratchpad
|
|||
bindsym $mod+Shift+z mark z; move scratchpad
|
||||
bindsym $mod+Shift+x mark x; move scratchpad
|
||||
bindsym $mod+Shift+c mark c; move scratchpad
|
||||
bindsym $mod+Shift+a resize set width 1200; resize set height 700; move position 0 0
|
||||
bindsym $mod+s [con_mark="s"] scratchpad show
|
||||
bindsym $mod+z [con_mark="z"] scratchpad show
|
||||
bindsym $mod+x [con_mark="x"] scratchpad show
|
||||
|
@ -202,16 +208,10 @@ mode "resize" {
|
|||
# right will grow the containers width
|
||||
# up will shrink the containers height
|
||||
# down will grow the containers height
|
||||
bindsym $left resize shrink width 20px
|
||||
bindsym $down resize grow height 20px
|
||||
bindsym $up resize shrink height 20px
|
||||
bindsym $right resize grow width 20px
|
||||
|
||||
# Ditto, with arrow keys
|
||||
bindsym Left resize shrink width 20px
|
||||
bindsym Down resize grow height 20px
|
||||
bindsym Up resize shrink height 20px
|
||||
bindsym Right resize grow width 20px
|
||||
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
|
||||
|
||||
# Return to default mode
|
||||
bindsym Return mode "default"
|
||||
|
@ -220,10 +220,10 @@ mode "resize" {
|
|||
bindsym $mod+r mode "resize"
|
||||
|
||||
mode "move" {
|
||||
bindsym $left move left 20px
|
||||
bindsym $down move down 20px
|
||||
bindsym $up move up 20px
|
||||
bindsym $right move right 20px
|
||||
bindsym $left move left 50px
|
||||
bindsym $down move down 50px
|
||||
bindsym $up move up 50px
|
||||
bindsym $right move right 50px
|
||||
# Return to default mode
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
|
@ -234,6 +234,9 @@ bindsym $mod+m mode "move"
|
|||
# Window Rules:
|
||||
#
|
||||
for_window [title="nmtui"] 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)"
|
||||
|
||||
#
|
||||
# Status Bar:
|
||||
|
|
Loading…
Reference in a new issue