1
0
Fork 0

.config/sway: update sway config

main
urosm 2024-05-05 18:04:34 +02:00
parent fd45a811ae
commit 065eb43c1f
1 changed files with 130 additions and 114 deletions

View File

@ -13,6 +13,8 @@ set $white #e2e2e2
set $blue #856cff
set $magenta #ff1170
set $red #fa3500
set $orange #d06600
set $green #009843
# workspaces
set $wsq 0:q:cmd
@ -30,12 +32,24 @@ set $wsp 9:p:rdp
set $session_mode "session: (r)eload (l)ock (q)uit (s)uspend re(b)oot (p)oweroff"
set $layout_mode "layout: split(h) split(v) (s)tacking (t)abbed"
# commands
set $swaylock swaylock -f \
--color=$black \
--indicator-radius 1200 \
--inside-color=$blue \
--inside-clear-color=$green \
--inside-caps-lock-color=$orange \
--inside-ver-color=$magenta \
--inside-wrong-color=$red \
--text-color=#00000000 \
--text-clear-color=#00000000 \
--text-ver-color=#00000000 \
--text-wrong-color=#00000000
# bar ##########################################################################
bar {
separator_symbol ""
separator_symbol " | "
status_command status.sh
status_edge_padding 0
status_padding 0
strip_workspace_numbers yes
wrap_scroll yes
colors {
@ -112,22 +126,22 @@ bindsym $mod+shift+g sticky toggle
bindsym {
$mod+return exec footclient
$mod+shift+return exec foot
$mod+space exec footclient -T "run" sh -c "IFS=:; find \$PATH -type f,l -perm -100 | fzy -p'run > ' | xargs -r swaymsg exec"
$mod+shift+space exec footclient -T "find" sh -c "find | fzy -p'find > ' | xargs -r swaymsg exec xdg-open"
$mod+home exec footclient -T "nmcli" nmcli_fzy.sh
$mod+shift+home exec footclient -T "nmtui" sh -c "nmtui"
$mod+end exec footclient -T "mount" udisksctl_fzy.sh
$mod+x exec makoctl dismiss
$mod+shift+x exec makoctl restore
$mod+space exec fuzzel
$mod+shift+space exec "$(fuzzel -d -l 0 -p'$ ')"
$mod+slash exec xdg-open "$(find -type f | fuzzel -d -p'$ xdg-open ')"
$mod+home exec footclient nmtui connect
$mod+shift+home exec footclient nmtui
$mod+n exec makoctl dismiss
$mod+shift+n exec makoctl restore
print exec grim - | wl-copy
}
# exec (laptop)
bindsym {
XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio_sink "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio_sink "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio_sink "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
XF86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio_source "$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)"
XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SINK@)"
XF86AudioMicMute exec wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:audio "$(wpctl get-volume @DEFAULT_AUDIO_SOURCE@)"
XF86MonBrightnessUp exec brightnessctl set "+1%"; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
XF86MonBrightnessDown exec brightnessctl set "1%-"; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
shift+XF86MonBrightnessUp exec brightnessctl set "+10%"; exec notify-send -e -t 2000 -h string:x-canonical-private-synchronous:brightness "Brightness: $(brightnessctl get)"
@ -161,10 +175,10 @@ bindsym {
# client.* #####################################################################
# class border background text indicator child_border
client.focused $black $black $magenta $red $black
client.focused_inactive $black $black $blue $black $black
client.unfocused $black $black $blue $black $black
client.urgent $black $black $red $black $black
client.focused $magenta $magenta $black $red $black
client.focused_inactive $blue $blue $black $black $black
client.unfocused $blue $blue $black $black $black
client.urgent $red $red $black $black $black
# default_border ###############################################################
default_border normal 0
@ -177,15 +191,15 @@ exec {
systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK
dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK
swayidle -w \
timeout 300 'swaylock -fu -c$blue' \
timeout 300 '$swaylock' \
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep 'swaylock -fu -c$blue'
before-sleep '$swaylock'
wlsunset -l 45 -L 15
mako
}
workspace $wse
exec "foot --server", exec "sleep 0.1; footclient"
exec foot -s
# focus_wrapping ###############################################################
focus_wrapping yes
@ -214,7 +228,7 @@ input "type:touchpad" {
mode $session_mode {
bindsym {
r reload, mode default
l exec swaylock -fu -c$blue, mode default
l exec $swaylock, mode default
q exit, mode default
s exec systemctl suspend, mode default
b exec systemctl reboot, mode default
@ -239,3 +253,5 @@ seat * hide_cursor 1000
# output #######################################################################
output * background $black solid_color
# vim: