This commit is contained in:
паша душный 2023-04-24 19:52:12 +03:00
parent f11c775e3d
commit 5d13185f34
3 changed files with 47 additions and 22 deletions

View File

@ -21,8 +21,7 @@ exec --no-startup-id dex --autostart --environment i3
exec --no-startup-id numlockx on exec --no-startup-id numlockx on
## Xrandr ## Xrandr
exec --no-startup-id xrandr --output HDMI-A-0 --mode 1024x768 --pos 0x120 --rotate normal \ exec --no-startup-id xrandr --output HDMI-A-0 --mode 1024x768 --pos 0x120 --rotate normal --output DVI-D-0 --primary --mode 1920x1080 --pos 1024x0 --rotate normal --output HDMI-A-1 --off
--output DVI-D-0 --primary --mode 1920x1080 --pos 1024x0 --rotate normal --output HDMI-A-1 --off
## Trackball Xinput Props ## Trackball Xinput Props
exec_always --no-startup-id ~/.config/script/kensington.sh exec_always --no-startup-id ~/.config/script/kensington.sh
@ -65,7 +64,7 @@ exec --no-startup-id nitrogen --restore
exec_always --no-startup-id ~/.config/i3/polybar.sh & exec_always --no-startup-id ~/.config/i3/polybar.sh &
## Transmission ## Transmission
exec --no-startup-id transmission-daemon # exec --no-startup-id transmission-daemon
## Hide mouse cursor when idle ## Hide mouse cursor when idle
exec --no-startup-id mousetrap -t 5 exec --no-startup-id mousetrap -t 5
@ -73,7 +72,7 @@ exec --no-startup-id mousetrap -t 5
##### BINDINGS ###### ##### BINDINGS ######
## Calendar ## Calendar
bindsym $mod+Escape exec --no-startup-id kitty -1 ikhal bindsym $mod+Escape exec --no-startup-id kitty ikhal
## Play/Pause music ## Play/Pause music
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
@ -86,9 +85,11 @@ bindsym XF86AudioPrev exec --no-startup-id playerctl previous
bindsym XF86AudioNext exec --no-startup-id playerctl next bindsym XF86AudioNext exec --no-startup-id playerctl next
## MPD Volume control ## MPD Volume control
bindsym XF86AudioRaiseVolume exec polybar-msg action "#mpdvol.hook.1" && polybar-msg action "#mpdvol.hook.0" bindsym XF86AudioRaiseVolume exec --no-startup-id polybar-msg action "#mpdvol.hook.1" && polybar-msg action "#mpdvol.hook.0"
bindsym XF86AudioLowerVolume exec polybar-msg action "#mpdvol.hook.2" && polybar-msg action "#mpdvol.hook.0" bindsym XF86AudioLowerVolume exec --no-startup-id polybar-msg action "#mpdvol.hook.2" && polybar-msg action "#mpdvol.hook.0"
bindsym XF86Tools exec polybar-msg action "#mpdvol.hook.3" && polybar-msg action "#mpdvol.hook.0" bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id polybar-msg action "#mpdvol.hook.4" && polybar-msg action "#mpdvol.hook.0"
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id polybar-msg action "#mpdvol.hook.5" && polybar-msg action "#mpdvol.hook.0"
bindsym XF86Tools exec --no-startup-id polybar-msg action "#mpdvol.hook.3" && polybar-msg action "#mpdvol.hook.0"
## Toggle keyboard layout ## Toggle keyboard layout
bindsym $mod+space exec --no-startup-id xkb-switch --next bindsym $mod+space exec --no-startup-id xkb-switch --next
@ -120,6 +121,8 @@ set $refresh_i3status killall -SIGUSR1 i3status
bindsym $mod+F12 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status bindsym $mod+F12 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
bindsym $mod+F11 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status bindsym $mod+F11 exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
bindsym $mod+F10 exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym $mod+F10 exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym $mod+Shift+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
bindsym $mod+Shift+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status
bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1% && $refresh_i3status bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1% && $refresh_i3status
bindsym $mod+XF86Tools exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym $mod+XF86Tools exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
@ -129,7 +132,7 @@ bindsym $mod+XF86Tools exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ t
floating_modifier $mod floating_modifier $mod
## start a terminal ## start a terminal
bindsym $mod+Return exec --no-startup-id kitty -1 bindsym $mod+Return exec --no-startup-id kitty
## kill focused window ## kill focused window
bindsym $mod+q kill bindsym $mod+q kill
@ -262,6 +265,7 @@ set $ws10 "10:"
set $ws11 "11:﯋" set $ws11 "11:﯋"
set $ws12 "12:" set $ws12 "12:"
set $ws13 "13:󰞏" set $ws13 "13:󰞏"
set $ws14 "14:󰓏"
# set $ws1 "﯋" # set $ws1 "﯋"
# set $ws2 "" # set $ws2 ""
@ -287,9 +291,10 @@ bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8 bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9 bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10 bindsym $mod+0 workspace $ws10
bindsym Mod1+F1 workspace $ws11 bindsym $mod+F1 workspace $ws11
bindsym Mod1+F2 workspace $ws12 bindsym $mod+F2 workspace $ws12
bindsym Mod1+F3 workspace $ws13 bindsym $mod+F3 workspace $ws13
bindsym $mod+F4 workspace $ws14
## move focused container to workspace ## move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1 bindsym $mod+Shift+1 move container to workspace $ws1
@ -302,8 +307,10 @@ bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8 bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9 bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10 bindsym $mod+Shift+0 move container to workspace $ws10
bindsym Mod1+Shift+F1 move container to workspace $ws11 bindsym $mod+Shift+F1 move container to workspace $ws11
bindsym Mod1+Shift+F2 move container to workspace $ws12 bindsym $mod+Shift+F2 move container to workspace $ws12
bindsym $mod+Shift+F3 move container to workspace $ws13
bindsym $mod+Shift+F4 move container to workspace $ws14
bindsym $mod+Tab workspace next bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev bindsym $mod+Shift+Tab workspace prev
@ -328,6 +335,7 @@ workspace $ws10 output $monitor1
workspace $ws11 output $monitor2 workspace $ws11 output $monitor2
workspace $ws12 output $monitor2 workspace $ws12 output $monitor2
workspace $ws13 output $monitor2 workspace $ws13 output $monitor2
workspace $ws14 output $monitor2
### Locker ### ### Locker ###

View File

@ -207,13 +207,14 @@ interval = 900
[module/updates] [module/updates]
type = custom/script type = custom/script
exec = ~/.config/polybar/scripts/updates.sh exec = ~/.config/polybar/scripts/updates.sh
interval = 3600 interval = 600
[module/uptime] [module/uptime]
type = custom/script type = custom/script
format-prefix = "󰅔 " format-prefix = "󰅔 "
# exec = echo 󰅔 $(uptime | sed 's/.*up //g;s/,.*user.*//g' ) # exec = echo 󰅔 $(uptime | sed 's/.*up //g;s/,.*user.*//g' )
exec = uptime | sed 's/.*up //g;s/,.*user.*//g' # exec = uptime | sed 's/.*up //g;s/,.*user.*//g'
exec = uptime | sed 's/.*up //;s/,.*user.*//' | tr ' ' ' '
interval = 60 interval = 60
[module/mpdvol] [module/mpdvol]
@ -225,6 +226,8 @@ hook-0 = echo  $(mpc --host=192.168.0.186 status %volume%)
hook-1 = mpc --host=192.168.0.186 volume +1 > /dev/null hook-1 = mpc --host=192.168.0.186 volume +1 > /dev/null
hook-2 = mpc --host=192.168.0.186 volume -1 > /dev/null hook-2 = mpc --host=192.168.0.186 volume -1 > /dev/null
hook-3 = mpc --host=192.168.0.186 toggleoutput 1 > /dev/null hook-3 = mpc --host=192.168.0.186 toggleoutput 1 > /dev/null
hook-4 = mpc --host=192.168.0.186 volume +5 > /dev/null
hook-5 = mpc --host=192.168.0.186 volume -5 > /dev/null
# exec = echo  $(mpc --host=192.168.0.186 status %volume%) # exec = echo  $(mpc --host=192.168.0.186 status %volume%)
# scroll-up = mpc --host=192.168.0.186 volume +5 # scroll-up = mpc --host=192.168.0.186 volume +5
@ -253,7 +256,7 @@ label-open = 
[module/openvpn] [module/openvpn]
type = custom/script type = custom/script
exec = hostname -i | sed 's#.*10\.8#10\.8#' exec = hostname -i | sed 's#.*10\.8#10\.8#' | sed 's# 10.66.66.2*##'
exec-if = pgrep -x openvpn exec-if = pgrep -x openvpn
tail = true tail = true
interval = 5 interval = 5
@ -366,7 +369,7 @@ label-song = %artist% - %title:0:100%
label-time = %elapsed% / %total% label-time = %elapsed% / %total%
label-offline = mpd is offline label-offline = 󰝚 mpd is offline
icon-play = icon-play =
icon-pause = icon-pause =
@ -423,7 +426,7 @@ label-muted-foreground = ${colors.disabled}
use-ui-max = false use-ui-max = false
; Right and Middle click ; Right and Middle click
click-right = kitty -1 pulsemixer click-right = kitty pulsemixer
; click-middle = ; click-middle =
; Only applies if <ramp-volume> is used ; Only applies if <ramp-volume> is used
@ -547,6 +550,6 @@ date-alt = %H:%M:%S
label =  %date% label =  %date%
label-foreground = ${colors.primary} label-foreground = ${colors.primary}
right-click = kitty -1 ikhal right-click = kitty ikhal
; vim:ft=dosini ; vim:ft=dosini

View File

@ -509,11 +509,12 @@ top-bar-text="#FDF6E3"
# The color of the bar at the bottom # The color of the bar at the bottom
# default=xrdb:color5 # default=xrdb:color5
status-bar-background="#657B83" status-bar-background="#FDF6E3"
# The color of the text in the bar at the bottom. # The color of the text in the bar at the bottom.
# default=xrdb:foreground # default=xrdb:foreground
status-bar-text="#FDF6E3" # status-bar-text="#FDF6E3"
status-bar-text="#657B83"
# The color of the bar at the bottom in view mode. # The color of the bar at the bottom in view mode.
# default=xrdb:color4 # default=xrdb:color4
@ -531,6 +532,19 @@ list-selected-background="#900000"
# default=xrdb:background # default=xrdb:background
list-selected-text="xrdb:background" list-selected-text="xrdb:background"
#2F343A #2F343A
autocomplete-background="#FDF6E3"
autocomplete-text="#657B83"
# The background color for selected value in drop-downs and autocompletions
# default=""
# autocomplete-selected-background="#657B83"
autocomplete-selected-background="#FDF6E3"
# The text color for selected value in drop-downs and autocompletions
# default=""
# autocomplete-selected-text="#FDF6E3"
autocomplete-selected-text="#657B83"
# # The xrdb prefix used for colors in .Xresources. # # The xrdb prefix used for colors in .Xresources.
# # default="guess" # # default="guess"