swaydots

my dotfiles
git clone https://git.awy.one/swaydots.git
Log | Files | Refs | README | LICENSE

config (8629B)


      1 exec dbus-update-activation-environment --all
      2 exec xrandr --output DP-3 --primary
      3 
      4 set $mod Mod4
      5 set $term footclient
      6 set $browser firefox
      7 set $menu mew-run
      8 
      9 font pango:monospace 10
     10 
     11 # AUTOSTART
     12 exec start-pipewire
     13 exec singboxwrap
     14 exec mako
     15 exec gpg-agent --daemon
     16 exec gnome-keyring-daemon --start --components=secrets
     17 exec foot --server
     18 exec portal
     19 exec sleep 0.1 && randombg
     20 exec mpd
     21 exec autotiling
     22 exec swayidle
     23 # seat seat0 hide_cursor 5000
     24 
     25 # WORKSPACES
     26 workspace 1 output DP-2
     27 workspace 2 output DP-2
     28 workspace 3 output DP-3
     29 workspace 4 output DP-3
     30 
     31 assign [app_id="org.telegram.desktop"] workspace 2
     32 assign [app_id="vesktop"] workspace 2
     33 
     34 output DP-3 mode 3840x2160@165Hz position 2560 0
     35 output DP-2 mode 2560x1440@165Hz position 0 0
     36 
     37 # exec_always swaybg -c 4C566A
     38 # COLORS
     39 client.focused          #5e81ac #5e81ac #d8dee9 #5e81ac   #5e81ac
     40 client.focused_inactive #3b4252 #3b4252 #d8dee9 #3b4252   #3b4252
     41 client.unfocused        #2e3440 #2e3440 #d8dee9 #2e3440   #2e3440
     42 client.urgent           #bf616a #bf616a #d8dee9 #bf616a   #bf616a
     43 client.placeholder      #000000 #0c0c0c #d8dee9 #000000   #0c0c0c
     44 client.background       #2e3440
     45 
     46 # STYLE
     47 gaps inner 10
     48 default_border pixel 3
     49 default_floating_border pixel 3
     50 for_window [class=.*] border pixel 3
     51 # do not lock the screen if program is running full screen
     52 for_window [app_id="^.*"] inhibit_idle fullscreen
     53 
     54 floating_modifier $mod normal
     55 # floating window assigments
     56 for_window [window_role = "pop-up"]                                                   floating enable
     57 for_window [window_role = "bubble"]                                                   floating enable
     58 for_window [window_role = "dialog"]                                                   floating enable
     59 for_window [window_type = "dialog"]                                                   floating enable
     60 for_window [window_role = "task_dialog"]                                              floating enable
     61 for_window [window_type = "menu"]                                                     floating enable
     62 for_window [app_id = "floating"]                                                      floating enable
     63 for_window [app_id = "floating_update"]                                               floating enable, resize set width 1000px height 600px
     64 for_window [class = "(?i)pinentry"]                                                   floating enable
     65 for_window [title = "Administrator privileges required"]                              floating enable
     66 for_window [title = "About Mozilla Firefox"]                                          floating enable
     67 for_window [window_role = "About"]                                                    floating enable
     68 for_window [app_id="firefox" title="Library"]                                         floating enable, border pixel 1, sticky enable
     69 for_window [app_id="termfloat"]                                                       floating enable
     70 for_window [app_id="termfloat"]                                                       resize set height  540
     71 for_window [app_id="termfloat"]                                                       resize set width   960
     72 for_window [class="^steam$" title="^Friends List$"]                                   floating enable
     73 for_window [class="^steam$" title="Steam - News"]                                     floating enable
     74 for_window [class="^steam$" title=".* - Chat"]                                        floating enable
     75 for_window [class="^steam$" title=".* Settings$"]                                     floating enable
     76 for_window [class="^steam$" title=".* - event started"]                               floating enable
     77 for_window [class="^steam$" title=".* CD key"]                                        floating enable
     78 for_window [class="^steam$" title="^Steam - Self Updater$"]                           floating enable
     79 for_window [class="^steam$" title="^Screenshot Uploader$"]                            floating enable
     80 for_window [class="^steam$" title="^Recordings & Screenshots$"]                       floating enable
     81 for_window [class="^steam$" title="^Steam Guard - Computer Authorization Required$"]  floating enable
     82 for_window [title="^Steam Keyboard$"] floating enable
     83 
     84 # BINDS
     85 bindsym $mod+h focus left
     86 bindsym $mod+j focus down
     87 bindsym $mod+k focus up
     88 bindsym $mod+l focus right
     89 bindsym $mod+f fullscreen
     90 bindsym $mod+s layout toggle split tabbed
     91 bindsym $mod+o focus parent
     92 bindsym $mod+minus exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; kill -44 $(pidof i3blocks)'
     93 bindsym $mod+underscore exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%-; kill -44 $(pidof i3blocks)'
     94 bindsym $mod+equal exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+; kill -44 $(pidof i3blocks)'
     95 bindsym $mod+plus exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%+; kill -44 $(pidof i3blocks)'
     96 bindsym $mod+backspace exec sysact
     97 bindsym $mod+Shift+backspace exec sysact
     98 bindsym $mod+Shift+q exec sysact
     99 bindsym $mod+w exec $browser
    100 bindsym $mod+e exec 'sh -c "$term -e neomutt; pkill -RTMIN+12 i3blocks"'
    101 bindsym $mod+r exec $term -e yazi
    102 bindsym $mod+Shift+r exec $term -e btop
    103 bindsym $mod+d exec $menu
    104 bindsym $mod+Shift+d exec tessen
    105 bindsym $mod+Return exec $term
    106 bindsym $mod+Shift+n exec 'sh -c "$term -T newsboat -e newsboat; pkill -RTMIN+6 i3blocks"'
    107 bindsym $mod+m exec $term -e rmpc
    108 bindsym $mod+Shift+m exec 'wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; kill -44 $(pidof i3blocks)'
    109 bindsym $mod+comma exec mpc prev
    110 bindsym $mod+Shift+comma exec mpc seek 0%
    111 bindsym $mod+period exec mpc next
    112 bindsym $mod+Shift+period exec mpc repeat
    113 bindsym $mod+insert exec wtype $(rg -v '^#' ~/.local/share/larbs/snippets | mew -i -l 50 | cut -d' ' -f1)
    114 bindsym $mod+f1 exec singboxwrap menu
    115 bindsym $mod+f4 exec '$term -e pulsemixer; kill -44 $(pidof i3blocks)'
    116 bindsym $mod+f6 exec torwrap
    117 bindsym $mod+f7 exec td-toggle
    118 bindsym $mod+f8 exec mailup
    119 bindsym $mod+f9 exec mounter
    120 bindsym $mod+f10 exec unmounter
    121 bindsym $mod+f11 exec "mpv --untimed --no-cache --no-osc --no-input-default-bindings --profile=low-latency --input-conf=/dev/null --title=webcam $(ls /dev/video[0,2,4,6,8] | tail -n 1)"
    122 bindsym Print exec 'grim pic-full-$(date '+%y%m%d-%H%M-%S').png'
    123 bindsym Shift+Print exec maimpick
    124 bindsym $mod+Print exec dmenurecord
    125 bindsym $mod+Shift+Print exec 'dmenurecord kill'
    126 bindsym $mod+Shift+space floating toggle
    127 # bindsym $mod+Shift+Return exec 'swaymsg mark swapme && swaymsg focus left && swaymsg swap container with mark swapme && swaymsg unmark swapme'
    128 bindsym $mod+Shift+Return exec $term -a termfloat
    129 bindsym $mod+grave exec bookmarks
    130 bindsym $mod+Shift+grave exec define
    131 
    132 bindsym XF86AudioPlay exec mpc toggle
    133 bindsym $mod+p exec mpc toggle
    134 bindsym $mod+Shift+p exec 'mpc pause; pauseallmpv'
    135 bindsym XF86AudioNext exec mpc next
    136 bindsym XF86AudioPrev exec mpc prev
    137 bindsym $mod+bracketleft exec mpc seek -10
    138 bindsym $mod+Shift+bracketleft exec mpc seek -60
    139 bindsym $mod+bracketright exec mpc seek +10
    140 bindsym $mod+Shift+bracketright exec mpc seek +60
    141 
    142 bindsym --whole-window BTN_EXTRA exec 'wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle; kill -57 $(pidof i3blocks)'
    143 bindsym $mod+a move scratchpad
    144 bindsym $mod+Shift+a scratchpad show
    145 
    146 # Switch to workspace
    147 bindsym $mod+1 workspace number 1
    148 bindsym $mod+2 workspace number 2
    149 bindsym $mod+3 workspace number 3
    150 bindsym $mod+4 workspace number 4
    151 bindsym $mod+5 workspace number 5
    152 bindsym $mod+6 workspace number 6
    153 bindsym $mod+7 workspace number 7
    154 bindsym $mod+8 workspace number 8
    155 bindsym $mod+9 workspace number 9
    156 bindsym $mod+0 workspace number 10
    157 # Move focused container to workspace
    158 bindsym $mod+Shift+1 move container to workspace number 1
    159 bindsym $mod+Shift+2 move container to workspace number 2
    160 bindsym $mod+Shift+3 move container to workspace number 3
    161 bindsym $mod+Shift+4 move container to workspace number 4
    162 bindsym $mod+Shift+5 move container to workspace number 5
    163 bindsym $mod+Shift+6 move container to workspace number 6
    164 bindsym $mod+Shift+7 move container to workspace number 7
    165 bindsym $mod+Shift+8 move container to workspace number 8
    166 bindsym $mod+Shift+9 move container to workspace number 9
    167 bindsym $mod+Shift+0 move container to workspace number 10
    168 
    169 bindsym $mod+q kill
    170 
    171 input * {
    172   xkb_layout "us,ru"
    173   xkb_options "grp:win_space_toggle,caps:escape"
    174   accel_profile flat
    175 }
    176 
    177 input "type:keyboard" {
    178   repeat_rate 45
    179   repeat_delay 300
    180 }
    181 
    182 bar {
    183   position top
    184   output DP-2
    185   status_command i3blocks
    186   separator_symbol " "
    187   colors
    188   {
    189     statusline #d8dee9
    190     background #2e3440
    191     active_workspace #2e3440 #2e3440 #d8dee9
    192     focused_workspace #2e3440 #2e3440 #d8dee9
    193     inactive_workspace #2e3440 #2e3440 #3b4252
    194   }
    195 }