swaydots

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

config (6289B)


      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 
     24 # WORKSPACES
     25 workspace 1 output DP-2
     26 workspace 2 output DP-2
     27 workspace 3 output DP-3
     28 workspace 4 output DP-3
     29 
     30 assign [app_id="org.telegram.desktop"] workspace 2
     31 assign [app_id="vesktop"] workspace 2
     32 
     33 output DP-3 mode 3840x2160@165Hz position 2560 0
     34 output DP-2 mode 2560x1440@165Hz position 0 0
     35 
     36 exec_always swaybg -c 4C566A
     37 # COLORS
     38 client.focused          #5e81ac #5e81ac #d8dee9 #5e81ac   #5e81ac
     39 client.focused_inactive #3b4252 #3b4252 #d8dee9 #3b4252   #3b4252
     40 client.unfocused        #2e3440 #2e3440 #d8dee9 #2e3440   #2e3440
     41 client.urgent           #bf616a #bf616a #d8dee9 #bf616a   #bf616a
     42 client.placeholder      #000000 #0c0c0c #d8dee9 #000000   #0c0c0c
     43 client.background       #2e3440
     44 
     45 # STYLE
     46 gaps inner 10
     47 default_border pixel 3
     48 default_floating_border pixel 3
     49 for_window [class=.*] border pixel 3
     50 
     51 floating_modifier $mod normal
     52 # floating window assigments
     53 for_window [window_role = "pop-up"]                       floating enable
     54 for_window [window_role = "bubble"]                       floating enable
     55 for_window [window_role = "dialog"]                       floating enable
     56 for_window [window_type = "dialog"]                       floating enable
     57 for_window [window_role = "task_dialog"]                  floating enable
     58 for_window [window_type = "menu"]                         floating enable
     59 for_window [app_id = "floating"]                          floating enable
     60 for_window [app_id = "floating_update"]                   floating enable, resize set width 1000px height 600px
     61 for_window [class = "(?i)pinentry"]                       floating enable
     62 for_window [title = "Administrator privileges required"]  floating enable
     63 for_window [title = "About Mozilla Firefox"]              floating enable
     64 for_window [window_role = "About"]                        floating enable
     65 for_window [app_id="firefox" title="Library"]             floating enable, border pixel 1, sticky enable
     66 for_window [app_id="termfloat"]                           floating enable
     67 for_window [app_id="termfloat"]                           resize set height  540
     68 for_window [app_id="termfloat"]                           resize set width   960
     69 
     70 # BINDS
     71 bindsym $mod+h focus left
     72 bindsym $mod+j focus down
     73 bindsym $mod+k focus up
     74 bindsym $mod+l focus right
     75 bindsym $mod+f fullscreen
     76 bindsym $mod+s layout toggle split tabbed
     77 bindsym $mod+p focus parent
     78 bindsym $mod+minus exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-; kill -44 $(pidof i3blocks)'
     79 bindsym $mod+underscore exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%-; kill -44 $(pidof i3blocks)'
     80 bindsym $mod+equal exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+; kill -44 $(pidof i3blocks)'
     81 bindsym $mod+plus exec 'wpctl set-volume @DEFAULT_AUDIO_SINK@ 15%+; kill -44 $(pidof i3blocks)'
     82 bindsym $mod+backspace exec sysact
     83 bindsym $mod+Shift+backspace exec sysact
     84 bindsym $mod+Shift+q exec sysact
     85 bindsym $mod+w exec $browser
     86 bindsym $mod+e exec 'sh -c "$term -e neomutt; pkill -RTMIN+12 i3blocks"'
     87 bindsym $mod+r exec $term -e yazi
     88 bindsym $mod+Shift+r exec $term -e htop
     89 bindsym $mod+d exec $menu
     90 bindsym $mod+Shift+d exec tessen
     91 bindsym $mod+Return exec $term
     92 bindsym $mod+Shift+n exec 'sh -c "$term -e newsboat; pkill -RTMIN+6 i3blocks"'
     93 bindsym $mod+m exec $term -e rmpc
     94 bindsym $mod+Shift+m exec 'wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle; kill -44 $(pidof i3blocks)'
     95 bindsym $mod+f1 exec singboxwrap menu
     96 bindsym $mod+f4 exec '$term -e pulsemixer; kill -44 $(pidof i3blocks)'
     97 bindsym $mod+f6 exec torwrap
     98 bindsym $mod+f7 exec td-toggle
     99 bindsym $mod+f8 exec mailsync
    100 bindsym $mod+f9 exec mounter
    101 bindsym $mod+f10 exec unmounter
    102 bindsym Print exec 'grim pic-full-$(date '+%y%m%d-%H%M-%S').png'
    103 bindsym Shift+Print exec maimpick 
    104 bindsym $mod+Print exec dmenurecord
    105 bindsym $mod+Shift+Print exec 'dmenurecord kill'
    106 bindsym $mod+Shift+space floating toggle
    107 # bindsym $mod+Shift+Return exec 'swaymsg mark swapme && swaymsg focus left && swaymsg swap container with mark swapme && swaymsg unmark swapme'
    108 bindsym $mod+Shift+Return exec $term -a termfloat
    109 bindsym $mod+grave exec bookmarks
    110 bindsym $mod+Shift+grave exec define
    111 bindsym XF86AudioPlay exec mpc toggle
    112 bindsym XF86AudioNext exec mpc next
    113 bindsym XF86AudioPrev exec mpc prev
    114 bindsym --whole-window BTN_EXTRA exec 'wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle; kill -57 $(pidof i3blocks)'
    115 bindsym $mod+a move scratchpad
    116 bindsym $mod+Shift+a scratchpad show
    117 
    118 # Switch to workspace
    119 bindsym $mod+1 workspace number 1
    120 bindsym $mod+2 workspace number 2
    121 bindsym $mod+3 workspace number 3
    122 bindsym $mod+4 workspace number 4
    123 bindsym $mod+5 workspace number 5
    124 bindsym $mod+6 workspace number 6
    125 bindsym $mod+7 workspace number 7
    126 bindsym $mod+8 workspace number 8
    127 bindsym $mod+9 workspace number 9
    128 bindsym $mod+0 workspace number 10
    129 # Move focused container to workspace
    130 bindsym $mod+Shift+1 move container to workspace number 1
    131 bindsym $mod+Shift+2 move container to workspace number 2
    132 bindsym $mod+Shift+3 move container to workspace number 3
    133 bindsym $mod+Shift+4 move container to workspace number 4
    134 bindsym $mod+Shift+5 move container to workspace number 5
    135 bindsym $mod+Shift+6 move container to workspace number 6
    136 bindsym $mod+Shift+7 move container to workspace number 7
    137 bindsym $mod+Shift+8 move container to workspace number 8
    138 bindsym $mod+Shift+9 move container to workspace number 9
    139 bindsym $mod+Shift+0 move container to workspace number 10
    140 
    141 bindsym $mod+q kill
    142 
    143 
    144 # INPUT
    145 input * {
    146     xkb_layout "us,ru"
    147     xkb_options "grp:win_space_toggle,caps:escape"
    148     accel_profile flat
    149 }
    150 
    151 input "type:keyboard" {
    152 repeat_rate 45
    153 repeat_delay 300
    154 }
    155 
    156 # BAR
    157 bar {
    158 	position top
    159 	output DP-2
    160 	# swaybar_command waybar
    161 	status_command i3blocks
    162 
    163 	separator_symbol " | "
    164   colors
    165   {
    166     statusline #d8dee9
    167     background #2e3440
    168     active_workspace #2e3440 #2e3440 #d8dee9
    169     focused_workspace #2e3440 #2e3440 #d8dee9
    170     inactive_workspace #2e3440 #2e3440 #3b4252
    171   }
    172 }