swaydots

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

config (5490B)


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