final. maybe

This commit is contained in:
паша душный 2023-05-13 23:33:27 +03:00
parent 734440f693
commit 8b8cbcf075
2 changed files with 28 additions and 65 deletions

View File

@ -21,7 +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 --output DVI-D-0 --primary --mode 1920x1080 --pos 1024x0 --rotate normal --output HDMI-A-1 --off exec --no-startup-id xrandr --output HDMI-A-0 --mode 1024x768 --pos 0x110 --rotate normal --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
@ -55,42 +55,37 @@ exec_always --no-startup-id xset s off
exec_always --no-startup-id xset -dpms exec_always --no-startup-id xset -dpms
## Wallpaper ## Wallpaper
# exec --no-startup-id feh --bg-fill ~/pics/wp/2b16x9.jpg ~/pics/wp/2b4x3.png
# exec --no-startup-id nitrogen --restore
exec --no-startup-id xwallpaper --output HDMI-A-0 --center ~/pics/wp/2b4x3.png --output DVI-D-0 --center ~/pics/wp/2b16x9.jpg exec --no-startup-id xwallpaper --output HDMI-A-0 --center ~/pics/wp/2b4x3.png --output DVI-D-0 --center ~/pics/wp/2b16x9.jpg
## Panels ## Panels
exec_always --no-startup-id ~/.config/i3/polybar.sh & exec_always --no-startup-id ~/.config/i3/polybar.sh &
## Transmission
# 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
##### SOME SETTINGS ###### ## MPD Notifications
# tiling_drag off exec --no-startup-id /usr/bin/musnify-mpd
##### BINDINGS ###### ##### BINDINGS ######
## Calendar ## Fast calendar
bindsym $mod+Escape exec --no-startup-id kitty ikhal bindsym $mod+Escape exec --no-startup-id kitty ikhal
## Play/Pause music ## Play/Pause MPD
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause bindsym XF86AudioPlay exec --no-startup-id mpc toggle
## Stop music ## Stop MPD
bindsym XF86AudioStop exec --no-startup-id playerctl stop bindsym XF86AudioStop exec --no-startup-id mpc stop
## Next/Prev music ## Next/Prev MPD
bindsym XF86AudioPrev exec --no-startup-id playerctl previous bindsym XF86AudioPrev exec --no-startup-id mpc prev
bindsym XF86AudioNext exec --no-startup-id playerctl next bindsym XF86AudioNext exec --no-startup-id mpc next
## MPD Volume control ## MPD Volume control
bindsym XF86AudioRaiseVolume exec --no-startup-id polybar-msg action "#mpdvol.hook.1" && polybar-msg action "#mpdvol.hook.0" bindsym XF86AudioRaiseVolume exec --no-startup-id polybar-msg action "#mpdvol.hook.4" && 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 XF86AudioLowerVolume exec --no-startup-id polybar-msg action "#mpdvol.hook.5" && 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 Ctrl+XF86AudioRaiseVolume exec --no-startup-id polybar-msg action "#mpdvol.hook.1" && 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 Ctrl+XF86AudioLowerVolume exec --no-startup-id polybar-msg action "#mpdvol.hook.2" && polybar-msg action "#mpdvol.hook.0"
bindsym XF86Tools exec --no-startup-id polybar-msg action "#mpdvol.hook.3" && 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
@ -123,10 +118,10 @@ 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+Ctrl+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1% && $refresh_i3status
bindsym $mod+Shift+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status bindsym $mod+Ctrl+XF86AudioRaiseVolume 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+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $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@ +5% && $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
# bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status # bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status

View File

@ -18,7 +18,6 @@
[colors] [colors]
background = #ccfdf6e3 background = #ccfdf6e3
; background = #00fdf6e3
background-alt = #ccfdf6e3 background-alt = #ccfdf6e3
foreground = #657b83 foreground = #657b83
primary = #657b83 primary = #657b83
@ -30,9 +29,7 @@ disabled = #707880
screenchange-reload = true screenchange-reload = true
pseudo-transparency = true pseudo-transparency = true
[bar/biggtop] [bar/biggtop]
width = 100% width = 100%
height = 15pt height = 15pt
radius = 0 radius = 0
@ -50,7 +47,7 @@ padding-right = 1
module-margin = 1 module-margin = 1
separator = | separator =
separator-foreground = ${colors.disabled} separator-foreground = ${colors.disabled}
font-0 = Fira Mono:style=Medium:pixelsize=9;2 font-0 = Fira Mono:style=Medium:pixelsize=9;2
@ -70,7 +67,6 @@ enable-ipc = true
monitor = DVI-D-0 monitor = DVI-D-0
[bar/smoltop] [bar/smoltop]
width = 100% width = 100%
height = 15pt height = 15pt
radius = 0 radius = 0
@ -88,7 +84,7 @@ padding-right = 1
module-margin = 1 module-margin = 1
separator = | separator =
separator-foreground = ${colors.disabled} separator-foreground = ${colors.disabled}
font-0 = Fira Mono:style=Medium:pixelsize=9;2 font-0 = Fira Mono:style=Medium:pixelsize=9;2
@ -108,7 +104,6 @@ enable-ipc = false
monitor = HDMI-A-0 monitor = HDMI-A-0
[bar/biggbott] [bar/biggbott]
bottom = true bottom = true
width = 100% width = 100%
@ -123,12 +118,12 @@ line-size = 3pt
border-size = 0pt border-size = 0pt
border-color = #00000000 border-color = #00000000
; padding-left = 1 # padding-left = 1
padding-right = 1 padding-right = 1
module-margin = 1 module-margin = 1
separator = | separator =
separator-foreground = ${colors.disabled} separator-foreground = ${colors.disabled}
font-0 = Fira Mono:style=Medium:pixelsize=9;2 font-0 = Fira Mono:style=Medium:pixelsize=9;2
@ -142,7 +137,6 @@ modules-right = mpd mpdvol weather updates uptime
cursor-click = pointer cursor-click = pointer
cursor-scroll = ns-resize cursor-scroll = ns-resize
; enable-ipc = false
enable-ipc = true enable-ipc = true
monitor = DVI-D-0 monitor = DVI-D-0
@ -164,12 +158,12 @@ line-size = 3pt
border-size = 0pt border-size = 0pt
border-color = #00000000 border-color = #00000000
; padding-left = 1 # padding-left = 1
padding-right = 1 padding-right = 1
module-margin = 1 module-margin = 1
separator = | separator =
separator-foreground = ${colors.disabled} separator-foreground = ${colors.disabled}
font-0 = Fira Mono:style=Medium:pixelsize=9;2 font-0 = Fira Mono:style=Medium:pixelsize=9;2
@ -178,7 +172,6 @@ font-2 = SymbolsNerdFont:size=10;2
modules-left = i3 modules-left = i3
; modules-right = filesystem
modules-right = root home storage modules-right = root home storage
cursor-click = pointer cursor-click = pointer
@ -188,22 +181,15 @@ enable-ipc = false
monitor = HDMI-A-0 monitor = HDMI-A-0
; tray-position = right
############### ###############
# CUSTOMS # # CUSTOMS #
############### ###############
[module/weather] [module/weather]
; format-background = ${colors.background-alt}
type = custom/script type = custom/script
; hook-0 = ~/.config/polybar/scripts/weather-plugin.sh exec = ANSIWEATHERRC=~/.config/ansiweather/config_for_bar ansiweather | sed 's#.*Sa.*rg: ##' | tr -d ':,-'
# exec = ~/.config/polybar/scripts/weather-plugin.sh
exec = ANSIWEATHERRC=~/.config/ansiweather/config_for_bar ansiweather | sed 's#.*Sa.*rg: ##' | tr ':' ' '
tail = false tail = false
interval = 900 interval = 1800
[module/updates] [module/updates]
type = custom/script type = custom/script
@ -213,8 +199,6 @@ 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 = uptime | sed 's/.*up //g;s/,.*user.*//g'
exec = uptime | sed 's/.*up //;s/,.*user.*//' | tr ' ' ' ' exec = uptime | sed 's/.*up //;s/,.*user.*//' | tr ' ' ' '
interval = 60 interval = 60
@ -223,7 +207,6 @@ type = custom/ipc
interval = 10 interval = 10
initial = 1 initial = 1
# hook-0 = echo  $(mpc --host=192.168.0.186 status %volume%)
hook-0 = echo 󰴸 $(mpc --host=192.168.0.186 status %volume%) 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
@ -231,11 +214,6 @@ 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-4 = mpc --host=192.168.0.186 volume +5 > /dev/null
hook-5 = 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%)
# scroll-up = mpc --host=192.168.0.186 volume +5
# scroll-down = mpc --host=192.168.0.186 volume -5
# click-left = mpc --host=192.168.0.186 toggleoutput 1
[module/ddcci] [module/ddcci]
type = custom/script type = custom/script
exec = echo `ddcutil getvcp 10` | sed 's/VCP code 0x10 (Brightness ): current value = //'| sed 's/, max value = 100//' exec = echo `ddcutil getvcp 10` | sed 's/VCP code 0x10 (Brightness ): current value = //'| sed 's/, max value = 100//'
@ -297,7 +275,6 @@ label-urgent-padding = 1
type = internal/xwindow type = internal/xwindow
label =  %title% label =  %title%
label-ellipsis = true label-ellipsis = true
; label-padding-right = 2
[module/xwin-bigg] [module/xwin-bigg]
inherit = xwindow-main inherit = xwindow-main
@ -353,7 +330,7 @@ interval = 1
; <icon-next> ; <icon-next>
; <icon-seekb> ; <icon-seekb>
; <icon-seekf> ; <icon-seekf>
format-online = 󰝚 Now playing: <label-song> | <label-time> | <icon-prev> <icon-stop> <toggle> <icon-next> format-online = 󰝚 Now playing: <label-song> <label-time> <icon-prev> <icon-stop> <toggle> <icon-next>
format-playing = ${self.format-online} format-playing = ${self.format-online}
format-paused = ${self.format-online} format-paused = ${self.format-online}
format-stopped = Press! -> <toggle> <- format-stopped = Press! -> <toggle> <-
@ -506,15 +483,6 @@ interval = 3.0
label-connected = 󰒄 %ifname% %local_ip% label-connected = 󰒄 %ifname% %local_ip%
label-disconnected = 󰒄 %local_ip% label-disconnected = 󰒄 %local_ip%
# [module/tun0]
# type = internal/network
# interface = tun0
# interface-type = wired
# interval = 3.0
# ping-interval = 5
# label-connected = 󰖂 %local_ip%
# label-disconnected =
[module/ethernet] [module/ethernet]
type = internal/network type = internal/network
interface = enp37s0 interface = enp37s0