2024-10-22 11:53:19 -04:00
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
2024-11-06 00:28:04 -05:00
set $wallpaper $HOME/wallpapers/nasamute.png
2024-10-22 11:53:19 -04:00
set $lock swaylock -i $wallpaper
output * bg $wallpaper fill
floating_modifier $mod normal
default_border pixel
smart_borders on
focus_follows_mouse no
bindsym $mod+Return exec $term
bindsym $mod+Control+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
2024-11-01 11:34:42 -04:00
bindsym $mod+comma exec $clipboard
2024-10-22 11:53:19 -04:00
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
2024-10-24 22:47:30 -04:00
bindsym $mod+$alt+e exec evolution
2024-11-01 11:34:42 -04:00
bindsym $mod+$alt+c exec korganizer
2024-10-22 11:53:19 -04:00
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
2024-11-01 14:11:46 -04:00
# my mouse is an anki remote
bindsym --whole-window BTN_EXTRA exec wtype " "
bindsym --whole-window BTN_SIDE exec wtype 1
2024-10-22 11:53:19 -04:00
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
2024-11-05 12:53:51 -05:00
bindsym $mod+Control+l exec $lock
2024-10-22 11:53:19 -04:00
font pango:$font_family $font_size
for_window [app_id="^menu$"] floating enable, border none
for_window [app_id=mpv] floating enable, sticky enable
for_window [class="pomatez"] floating enable, sticky enable
2024-11-06 00:28:04 -05:00
for_window [class="PacketTracer"] floating enable, border normal
2024-10-22 11:53:19 -04:00
bar {
status_command i3status-rs
position top
font pango:$font_family, FontAwesome $font_size
separator_symbol ""
colors {
statusline $fg
background $bg
focused_background $bg
focused_workspace $bg $bg $fg
active_workspace $bg $bg $fg
inactive_workspace $bg $bg $fgi
}
}
input "type:touchpad" {
dwt enabled
tap enabled
natural_scroll enabled
}
input "type:keyboard" {
xkb_layout us
xkb_options ctrl:nocaps
2024-11-02 12:10:31 -04:00
xkb_numlock enabled
2024-10-22 11:53:19 -04:00
}
exec wl-paste --watch cliphist store
2024-11-05 12:53:51 -05:00
exec mako > $HOME/mako.log 2>&1
2024-10-22 11:53:19 -04:00
exec /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec dbus-update-activation-environment --all
include /etc/sway/config.d/*
exec system-dnotify --ready