tweak: {sys_menu,window edge} settings in sway cfg
* set fill mode and bg color independently of the bg pic
* set default_floating_border to normal
* set hide_edge_borders to smart
* add a really smart system menu (lock, logout, reboot, poweroff) implemented
as a sway mode whereby you first press $mod+Shift+e and then choose an action
reference: dfd6f956f6/.config/sway/config (L228-L241)
This commit is contained in:
parent
e26157a49c
commit
bf742b90ad
@ -13,8 +13,8 @@ set
|
|||||||
$nutermmenu kitty --class 'launcher' bash -c 'compgen -c | sort -u | fzf | xargs -r kitty'
|
$nutermmenu kitty --class 'launcher' bash -c 'compgen -c | sort -u | fzf | xargs -r kitty'
|
||||||
# $bg "~/Pictures/apod/2019-January-2-The-Orion-Nebula-in-Infrared-from-WISE.jpg fit #000000"
|
# $bg "~/Pictures/apod/2019-January-2-The-Orion-Nebula-in-Infrared-from-WISE.jpg fit #000000"
|
||||||
# $bg "~/Pictures/apod/2020-April-29-The-Ion-Tail-of-New-Comet-SWAN.jpg fit #000000"
|
# $bg "~/Pictures/apod/2020-April-29-The-Ion-Tail-of-New-Comet-SWAN.jpg fit #000000"
|
||||||
$bg "~/Pictures/apod/2020-August-11-Churning-Clouds-on-Jupiter.jpg fill"
|
$bg "~/Pictures/apod/2020-August-11-Churning-Clouds-on-Jupiter.jpg"
|
||||||
$bg2 "~/Pictures/apod/2019-October-20-Pluto-at-Night.jpg fill #000000"
|
$bg2 "~/Pictures/apod/2019-October-20-Pluto-at-Night.jpg"
|
||||||
$gtk_theme "Mint-Y-Dark-Blue"
|
$gtk_theme "Mint-Y-Dark-Blue"
|
||||||
$icon_theme "Flat-Remix-Blue-Dark"
|
$icon_theme "Flat-Remix-Blue-Dark"
|
||||||
$pri eDP-1
|
$pri eDP-1
|
||||||
@ -22,7 +22,8 @@ set
|
|||||||
}
|
}
|
||||||
|
|
||||||
default_border pixel 2
|
default_border pixel 2
|
||||||
default_floating_border pixel 2
|
default_floating_border normal
|
||||||
|
hide_edge_borders smart
|
||||||
|
|
||||||
#smart_gaps on
|
#smart_gaps on
|
||||||
gaps outer 8
|
gaps outer 8
|
||||||
@ -36,8 +37,8 @@ exec_always --no-startup-id
|
|||||||
pkill waybar
|
pkill waybar
|
||||||
pkill swayidle
|
pkill swayidle
|
||||||
pkill "docker-tray"
|
pkill "docker-tray"
|
||||||
swaymsg output $pri bg $bg
|
swaymsg output $pri bg $bg fill #000000
|
||||||
swaymsg output $sec bg $bg2
|
swaymsg output $sec bg $bg2 fill #000000
|
||||||
#swaymsg output $ter bg $bg
|
#swaymsg output $ter bg $bg
|
||||||
waybar
|
waybar
|
||||||
dbus-update-activation-environment DISPLAY XAUTHORITY
|
dbus-update-activation-environment DISPLAY XAUTHORITY
|
||||||
@ -56,8 +57,6 @@ bindsym ctrl+alt+l exec --no-startup-id $lock
|
|||||||
bindsym $mod+grave exec --no-startup-id $lock
|
bindsym $mod+grave exec --no-startup-id $lock
|
||||||
bindswitch lid:on exec --no-startup-id $lock
|
bindswitch lid:on exec --no-startup-id $lock
|
||||||
output $sec pos 1920 0 res 1920x1200
|
output $sec pos 1920 0 res 1920x1200
|
||||||
exec --no-startup-id swaymsg output $pri bg $bg
|
|
||||||
exec --no-startup-id swaymsg output $sec bg $bg2
|
|
||||||
exec --no-startup-id swaymsg focus output $pri
|
exec --no-startup-id swaymsg focus output $pri
|
||||||
|
|
||||||
#--- Window Decorations
|
#--- Window Decorations
|
||||||
@ -84,7 +83,6 @@ set
|
|||||||
|
|
||||||
bindsym
|
bindsym
|
||||||
{
|
{
|
||||||
$mod+Shift+e exec swaynag -t error -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit'
|
|
||||||
$mod+Return exec $term
|
$mod+Return exec $term
|
||||||
$mod+t exec $term
|
$mod+t exec $term
|
||||||
$mod+ctrl+Shift+t exec qterminal
|
$mod+ctrl+Shift+t exec qterminal
|
||||||
@ -406,6 +404,24 @@ mode "resize"
|
|||||||
bindsym $mod+r mode "resize"
|
bindsym $mod+r mode "resize"
|
||||||
bindsym $mod+Shift+r reload
|
bindsym $mod+Shift+r reload
|
||||||
|
|
||||||
|
# kudos to github.com/rbnis for the following menu-like section inspiration
|
||||||
|
# https://github.com/rbnis/dotfiles/blob/dfd6f956f6d00a1012a3a167d947773095dac7fd/.config/sway/config#L228-L235
|
||||||
|
set $mode_sys System: (l) lock, (e) logout, (s) suspend, (r) reboot, (S) shutdown
|
||||||
|
mode "$mode_sys" {
|
||||||
|
bindsym {
|
||||||
|
l exec $lock, mode "default"
|
||||||
|
e exit
|
||||||
|
s exec --no-startup-id systemctl suspend -i, mode "default"
|
||||||
|
r exec --no-startup-id systemctl reboot, mode "default"
|
||||||
|
Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"
|
||||||
|
# return to default mode
|
||||||
|
Return mode "default"
|
||||||
|
Escape mode "default"
|
||||||
|
$mod+Shift+e mode "default"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
bindsym $mod+Shift+e mode "$mode_sys"
|
||||||
|
|
||||||
#
|
#
|
||||||
# media keys
|
# media keys
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user