swaydots

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

config (7153B)


      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 wmenu-run
      8 
      9 font pango:monospace 10
     10 
     11 # AUTOSTART
     12 exec start-pipewire
     13 exec singboxwrap
     14 exec dunst
     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 
     73 # BINDS
     74 bindsym $mod+h focus left
     75 bindsym $mod+j focus down
     76 bindsym $mod+k focus up
     77 bindsym $mod+l focus right
     78 bindsym $mod+f fullscreen
     79 bindsym $mod+s layout toggle split tabbed
     80 bindsym $mod+o focus parent
     81 bindsym $mod+minus exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; kill -44 $(pidof i3blocks)'
     82 bindsym $mod+underscore exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%-; kill -44 $(pidof i3blocks)'
     83 bindsym $mod+equal exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+; kill -44 $(pidof i3blocks)'
     84 bindsym $mod+plus exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%+; kill -44 $(pidof i3blocks)'
     85 bindsym $mod+backspace exec sysact
     86 bindsym $mod+Shift+backspace exec sysact
     87 bindsym $mod+Shift+q exec sysact
     88 bindsym $mod+w exec $browser
     89 bindsym $mod+e exec 'sh -c "$term -e neomutt; pkill -RTMIN+12 i3blocks"'
     90 bindsym $mod+r exec $term -e yazi
     91 bindsym $mod+Shift+r exec $term -e htop
     92 bindsym $mod+d exec $menu
     93 bindsym $mod+Shift+d exec tessen
     94 bindsym $mod+Return exec $term
     95 bindsym $mod+Shift+n exec 'sh -c "$term -T newsboat -e newsboat; pkill -RTMIN+6 i3blocks"'
     96 bindsym $mod+m exec $term -e rmpc
     97 bindsym $mod+Shift+m exec 'wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; kill -44 $(pidof i3blocks)'
     98 bindsym $mod+comma exec mpc prev
     99 bindsym $mod+Shift+comma exec mpc seek 0%
    100 bindsym $mod+period exec mpc next
    101 bindsym $mod+Shift+period exec mpc repeat
    102 bindsym $mod+insert exec wtype $(grep -v '^#' ~/.local/share/larbs/snippets | wmenu -i -l 50 | cut -d' ' -f1)
    103 bindsym $mod+f1 exec singboxwrap menu
    104 bindsym $mod+f4 exec '$term -e pulsemixer; kill -44 $(pidof i3blocks)'
    105 bindsym $mod+f6 exec torwrap
    106 bindsym $mod+f7 exec td-toggle
    107 bindsym $mod+f8 exec mailup
    108 bindsym $mod+f9 exec mounter
    109 bindsym $mod+f10 exec unmounter
    110 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)"
    111 bindsym Print exec 'grim pic-full-$(date '+%y%m%d-%H%M-%S').png'
    112 bindsym Shift+Print exec maimpick 
    113 bindsym $mod+Print exec dmenurecord
    114 bindsym $mod+Shift+Print exec 'dmenurecord kill'
    115 bindsym $mod+Shift+space floating toggle
    116 # bindsym $mod+Shift+Return exec 'swaymsg mark swapme && swaymsg focus left && swaymsg swap container with mark swapme && swaymsg unmark swapme'
    117 bindsym $mod+Shift+Return exec $term -a termfloat
    118 bindsym $mod+grave exec bookmarks
    119 bindsym $mod+Shift+grave exec define
    120 
    121 bindsym XF86AudioPlay exec mpc toggle
    122 bindsym $mod+p exec mpc toggle
    123 bindsym $mod+Shift+p exec 'mpc pause; pauseallmpv'
    124 bindsym XF86AudioNext exec mpc next
    125 bindsym XF86AudioPrev exec mpc prev
    126 bindsym $mod+bracketleft exec mpc seek -10
    127 bindsym $mod+Shift+bracketleft exec mpc seek -60
    128 bindsym $mod+bracketright exec mpc seek +10
    129 bindsym $mod+Shift+bracketright exec mpc seek +60
    130 
    131 bindsym --whole-window BTN_EXTRA exec 'wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle; kill -57 $(pidof i3blocks)'
    132 bindsym $mod+a move scratchpad
    133 bindsym $mod+Shift+a scratchpad show
    134 
    135 # Switch to workspace
    136 bindsym $mod+1 workspace number 1
    137 bindsym $mod+2 workspace number 2
    138 bindsym $mod+3 workspace number 3
    139 bindsym $mod+4 workspace number 4
    140 bindsym $mod+5 workspace number 5
    141 bindsym $mod+6 workspace number 6
    142 bindsym $mod+7 workspace number 7
    143 bindsym $mod+8 workspace number 8
    144 bindsym $mod+9 workspace number 9
    145 bindsym $mod+0 workspace number 10
    146 # Move focused container to workspace
    147 bindsym $mod+Shift+1 move container to workspace number 1
    148 bindsym $mod+Shift+2 move container to workspace number 2
    149 bindsym $mod+Shift+3 move container to workspace number 3
    150 bindsym $mod+Shift+4 move container to workspace number 4
    151 bindsym $mod+Shift+5 move container to workspace number 5
    152 bindsym $mod+Shift+6 move container to workspace number 6
    153 bindsym $mod+Shift+7 move container to workspace number 7
    154 bindsym $mod+Shift+8 move container to workspace number 8
    155 bindsym $mod+Shift+9 move container to workspace number 9
    156 bindsym $mod+Shift+0 move container to workspace number 10
    157 
    158 bindsym $mod+q kill
    159 
    160 
    161 # INPUT
    162 input * {
    163     xkb_layout "us,ru"
    164     xkb_options "grp:win_space_toggle,caps:escape"
    165     accel_profile flat
    166 }
    167 
    168 input "type:keyboard" {
    169 repeat_rate 45
    170 repeat_delay 300
    171 }
    172 
    173 # BAR
    174 bar {
    175 	position top
    176 	output DP-2
    177 	# swaybar_command waybar
    178 	status_command i3blocks
    179 
    180 	separator_symbol " "
    181   colors
    182   {
    183     statusline #d8dee9
    184     background #2e3440
    185     active_workspace #2e3440 #2e3440 #d8dee9
    186     focused_workspace #2e3440 #2e3440 #d8dee9
    187     inactive_workspace #2e3440 #2e3440 #3b4252
    188   }
    189 }