161 lines
4.6 KiB
Text
161 lines
4.6 KiB
Text
set $mod Mod4
|
|
set $alt Mod1
|
|
set $left h
|
|
set $down j
|
|
set $up k
|
|
set $right l
|
|
|
|
set $term $HOME/.config/sway/scripts/terminal.sh
|
|
set $menu rofi -show drun | xargs swaymsg exec --
|
|
set $screenshot grim -g "$(slurp)" - | wl-copy
|
|
set $browser librewolf
|
|
set $clipboard rofi -show clipboard -show-icons
|
|
set $emoji rofimoji
|
|
|
|
set $font_family DejaVu Sans Mono
|
|
set $font_size 11
|
|
set $bg #000000
|
|
set $fg #ffffff
|
|
set $fgi #888888
|
|
|
|
set $wallpaper $HOME/wallpapers/animegirl.jpg
|
|
set $lock swaylock -f -i $wallpaper
|
|
output * bg $wallpaper fill
|
|
|
|
floating_modifier $mod normal
|
|
default_border pixel
|
|
smart_borders on
|
|
focus_follows_mouse yes
|
|
|
|
bindsym $mod+Return exec $term
|
|
bindsym $mod+Ctrl+q kill
|
|
bindsym $mod+d exec $menu
|
|
bindsym $mod+Shift+c reload
|
|
bindsym $mod+Shift+e exec swaynag -t warning -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'
|
|
bindsym Print exec $screenshot
|
|
bindsym $mod+comma exec $clipboard
|
|
bindsym $mod+period exec $emoji
|
|
|
|
bindsym $mod+$alt+b exec $browser
|
|
bindsym $mod+$alt+a exec anki
|
|
bindsym $mod+$alt+f exec dolphin
|
|
bindsym $mod+$alt+p exec pomatez
|
|
bindsym $mod+$alt+e exec evolution
|
|
bindsym $mod+$alt+c exec korganizer
|
|
bindsym $mod+p exec bitwarden
|
|
|
|
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+9 workspace number 9
|
|
bindsym $mod+0 workspace number 10
|
|
|
|
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
|
|
bindsym $mod+Shift+9 move container to workspace number 9
|
|
bindsym $mod+Shift+0 move container to workspace number 10
|
|
|
|
# my mouse is an anki remote
|
|
bindsym --whole-window BTN_EXTRA exec wtype " "
|
|
bindsym --whole-window BTN_SIDE exec wtype 1
|
|
|
|
bindsym $mod+b splith
|
|
bindsym $mod+v splitv
|
|
|
|
bindsym $mod+s layout stacking
|
|
bindsym $mod+w layout tabbed
|
|
bindsym $mod+e layout toggle split
|
|
|
|
bindsym $mod+f fullscreen
|
|
|
|
bindsym $mod+Shift+space floating toggle
|
|
|
|
bindsym $mod+space focus mode_toggle
|
|
|
|
bindsym $mod+a focus parent
|
|
bindsym $mod+Shift+a focus child
|
|
|
|
bindsym $mod+Shift+minus move scratchpad
|
|
bindsym $mod+minus scratchpad show
|
|
|
|
mode "resize" {
|
|
bindsym $left resize shrink width 10px
|
|
bindsym $down resize grow height 10px
|
|
bindsym $up resize shrink height 10px
|
|
bindsym $right resize grow width 10px
|
|
bindsym Return mode "default"
|
|
bindsym Escape mode "default"
|
|
}
|
|
bindsym $mod+r mode "resize"
|
|
|
|
# keys to adjust volue and brightness
|
|
bindsym --locked XF86AudioMute exec "amixer -q sset Master,0 toggle"
|
|
bindsym --locked XF86AudioLowerVolume exec "amixer -q set Master 1%-"
|
|
bindsym --locked XF86AudioRaiseVolume exec "amixer -q sset Master 1%+"
|
|
bindsym --locked XF86MonBrightnessDown exec brightnessctl set 1%-
|
|
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 1%+
|
|
|
|
# lockscreen
|
|
bindsym $mod+Control+l exec $lock
|
|
|
|
font pango:$font_family $font_size
|
|
|
|
for_window [app_id=mpv] floating enable, sticky enable, inhibit_idle open
|
|
for_window [class="pomatez"] floating enable, sticky enable
|
|
for_window [class="PacketTracer"] floating enable, border normal
|
|
for_window [app_id="LibreWolf" title="^Extension"] floating enable
|
|
for_window [floating] border csd
|
|
for_window [app_id="org.keepassxc.KeePassXC"] floating enable
|
|
for_window [class="Bitwarden"] floating enable
|
|
|
|
bar {
|
|
swaybar_command waybar
|
|
}
|
|
|
|
input "type:touchpad" {
|
|
dwt enabled
|
|
tap enabled
|
|
natural_scroll enabled
|
|
}
|
|
|
|
input "type:keyboard" {
|
|
xkb_layout us
|
|
xkb_options ctrl:nocaps
|
|
xkb_numlock enabled
|
|
}
|
|
|
|
exec wl-paste --watch cliphist store
|
|
exec mako >> $HOME/mako.log 2>&1
|
|
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
|
exec dbus-update-activation-environment --all
|
|
|
|
exec swayidle -w \
|
|
timeout 300 'swaymsg "output * power off"' \
|
|
timeout 305 $lock \
|
|
resume 'swaymsg "output * power on"' \
|
|
before-sleep 'playerctl pause; swaylock -f'
|
|
|
|
include /etc/sway/config.d/*
|
|
|
|
exec system-dnotify --ready
|