| 1 | font pango:Iosevka Nerd Font Mono 13 |
| 2 | |
| 3 | set $mod Mod4 |
| 4 | set $left h |
| 5 | set $down j |
| 6 | set $up k |
| 7 | set $right l |
| 8 | set $term foot |
| 9 | set $menu fuzzel |
| 10 | |
| 11 | output * bg /home/fordon/projects/gitbtw-dots/walls/peak.jpg fill |
| 12 | exec swayidle -w \ |
| 13 | timeout 300 'swaylock -f -c 000000' \ |
| 14 | timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ |
| 15 | before-sleep 'swaylock -f -c 000000' |
| 16 | exec pipewire & |
| 17 | exec emacs --daemon |
| 18 | |
| 19 | input "type:keyboard" { |
| 20 | repeat_delay 250 |
| 21 | repeat_rate 35 |
| 22 | xkb_layout us,eg |
| 23 | xkb_options grp:caps_toggle |
| 24 | } |
| 25 | |
| 26 | bindsym $mod+Return exec $term |
| 27 | bindsym $mod+q kill |
| 28 | bindsym $mod+d exec $menu |
| 29 | |
| 30 | floating_modifier $mod normal |
| 31 | default_border none |
| 32 | bindsym $mod+Shift+r reload |
| 33 | bindsym $mod+Shift+e exec emacsclient -c |
| 34 | |
| 35 | bindsym $mod+Shift+q 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' |
| 36 | |
| 37 | bindsym $mod+$left focus left |
| 38 | bindsym $mod+$down focus down |
| 39 | bindsym $mod+$up focus up |
| 40 | bindsym $mod+$right focus right |
| 41 | |
| 42 | bindsym $mod+Shift+$left move left |
| 43 | bindsym $mod+Shift+$down move down |
| 44 | bindsym $mod+Shift+$up move up |
| 45 | bindsym $mod+Shift+$right move right |
| 46 | |
| 47 | # Switch to workspace |
| 48 | bindsym $mod+1 workspace number 1 |
| 49 | bindsym $mod+2 workspace number 2 |
| 50 | bindsym $mod+3 workspace number 3 |
| 51 | bindsym $mod+4 workspace number 4 |
| 52 | bindsym $mod+5 workspace number 5 |
| 53 | bindsym $mod+6 workspace number 6 |
| 54 | bindsym $mod+7 workspace number 7 |
| 55 | bindsym $mod+8 workspace number 8 |
| 56 | bindsym $mod+9 workspace number 9 |
| 57 | |
| 58 | # Move focused container to workspace |
| 59 | bindsym $mod+Shift+1 move container to workspace number 1 |
| 60 | bindsym $mod+Shift+2 move container to workspace number 2 |
| 61 | bindsym $mod+Shift+3 move container to workspace number 3 |
| 62 | bindsym $mod+Shift+4 move container to workspace number 4 |
| 63 | bindsym $mod+Shift+5 move container to workspace number 5 |
| 64 | bindsym $mod+Shift+6 move container to workspace number 6 |
| 65 | bindsym $mod+Shift+7 move container to workspace number 7 |
| 66 | bindsym $mod+Shift+8 move container to workspace number 8 |
| 67 | bindsym $mod+Shift+9 move container to workspace number 9 |
| 68 | |
| 69 | # Switch the current container between different layout styles |
| 70 | bindsym $mod+w layout tabbed |
| 71 | |
| 72 | # Make the current focus fullscreen |
| 73 | bindsym $mod+f fullscreen |
| 74 | |
| 75 | # Toggle the current focus between tiling and floating mode |
| 76 | bindsym $mod+Shift+space floating toggle |
| 77 | |
| 78 | # Swap focus between the tiling area and the floating area |
| 79 | bindsym $mod+space focus mode_toggle |
| 80 | # Special keys to adjust volume via PulseAudio |
| 81 | bindsym --locked XF86AudioMute exec pactl set-sink-mute \@DEFAULT_SINK@ toggle |
| 82 | bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume \@DEFAULT_SINK@ -5% |
| 83 | bindsym --locked XF86AudioRaiseVolume exec pactl set-sink-volume \@DEFAULT_SINK@ +5% |
| 84 | bindsym --locked XF86AudioMicMute exec pactl set-source-mute \@DEFAULT_SOURCE@ toggle |
| 85 | |
| 86 | # Special keys to control media via playerctl |
| 87 | bindsym --locked XF86AudioPlay exec playerctl play-pause |
| 88 | bindsym --locked XF86AudioPause exec playerctl play-pause |
| 89 | bindsym --locked XF86AudioPrev exec playerctl previous |
| 90 | bindsym --locked XF86AudioNext exec playerctl next |
| 91 | bindsym --locked XF86AudioStop exec playerctl stop |
| 92 | |
| 93 | # Special keys to adjust brightness via brightnessctl |
| 94 | bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%- |
| 95 | bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ |
| 96 | |
| 97 | |
| 98 | bindsym $mod+s exec grim -g "$(slurp)" - | wl-copy |
| 99 | bindsym $mod+Shift+s exec grim $HOME/Pictures/$(date +'%Y-%m-%d_%H-%M-%S.png') |
| 100 | bar { |
| 101 | position top |
| 102 | status_command i3status |
| 103 | |
| 104 | colors { |
| 105 | background #181818 |
| 106 | statusline #f5f5f5 |
| 107 | separator #484848 |
| 108 | |
| 109 | # Class border backgr. text |
| 110 | focused_workspace #ffdd33 #282828 #ffdd33 |
| 111 | active_workspace #282828 #282828 #f5f5f5 |
| 112 | inactive_workspace #181818 #181818 #95a99f |
| 113 | urgent_workspace #f43841 #f43841 #ffffff |
| 114 | binding_mode #ff4f58 #282828 #ff4f58 |
| 115 | } |
| 116 | } |
| 117 | include /etc/sway/config.d/* |