Files
nixos-dotfiles/config/sway/config
T

108 lines
3.2 KiB
Plaintext

set $mod Mod4
floating_modifier $mod normal
set $left h
set $right l
set $up k
set $down j
set $red #cd0a00
set $white #f3eeea
set $black #0a0a0a
set $term foot
set $menu fuzzel
exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP DISPLAY
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP DISPLAY
exec "foot --server"
exec lxqt-policykit-agent
exec mako
exec awww-daemon
exec sh -c 'sleep 1 && ~/.local/bin/wallpaper.sh'
input type:keyboard {
xkb_layout "se"
xkb_variant "nodeadkeys"
xkb_options "caps:escape"
}
input type:touchpad {
tap enabled
natural_scroll enabled
scroll_factor 0.3
}
default_border pixel
default_floating_border pixel
bindsym $mod+shift+q exec wlogout
bindsym $mod+Return exec $term
bindsym $mod+q kill
bindsym $mod+d exec $menu
bindsym $mod+space floating toggle
bindsym $mod+Shift+r reload
bindsym $mod+Alt+h splith
bindsym $mod+Alt+v splitv
bindsym $mod+f fullscreen
bindsym $mod+$left focus left
bindsym $mod+$down focus down
bindsym $mod+$up focus up
bindsym $mod+$right focus right
bindsym $mod+Shift+$left move left
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
mode "resize" {
bindsym Right resize grow width 50px
bindsym Left resize shrink width 50px
bindsym Down resize grow height 50px
bindsym Up resize shrink height 50px
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
gaps inner 10
exec_always sh -c 'pkill waybar; waybar'
bindsym XF86AudioRaiseVolume exec wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+
bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindsym XF86AudioMute exec wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindsym XF86MonBrightnessUp exec brightnessctl set 5%+
bindsym XF86MonBrightnessDown exec brightnessctl set 5%-
bindsym $mod+Shift+s exec 'grim -l 0 -g "$(slurp)" - | wl-copy'
bindsym $mod+Alt+s exec 'mkdir -p ~/Pictures/Screenshots && grim -l 0 -g "$(slurp)" - | satty --filename - --output-filename ~/Pictures/Screenshots/$(date +"%Y-%m-%d_%H-%M-%S").png'
exec swayidle -w \
timeout 300 'swaylock -f -c 0a0a0a && ~/.local/bin/wallpaper.sh' \
timeout 600 'swaymsg "output * dpms off"; wpctl set-mute @DEFAULT_AUDIO_SINK@ 1' \
resume 'swaymsg "output * dpms on"; wpctl set-mute @DEFAULT_AUDIO_SINK@ 0' \
before-sleep 'swaylock -f -c 0a0a0a && ~/.local/bin/wallpaper.sh'