From 91f6bfde2d3e3d2f4198526c0f3673710db6e52d Mon Sep 17 00:00:00 2001 From: pasha Date: Sun, 14 May 2023 00:13:28 +0300 Subject: [PATCH] final smol --- smol/i3/config | 49 +++------------------ smol/kitty/kitty.conf | 46 -------------------- smol/polybar/config.ini | 95 ++++++++++++----------------------------- 3 files changed, 34 insertions(+), 156 deletions(-) diff --git a/smol/i3/config b/smol/i3/config index f4c2909..7a255d1 100644 --- a/smol/i3/config +++ b/smol/i3/config @@ -22,9 +22,6 @@ exec --no-startup-id dex --autostart --environment i3 ## Xgamma exec --no-startup-id xgamma -b 0.9 -## Compose-key -# exec --no-startup-id setxkbmap -layout us -option compose:menu - ## Redshift exec --no-startup-id redshift -l 59:30 @@ -59,9 +56,12 @@ exec --no-startup-id feh --bg-fill ~/pics/wp/2b16x9.png # exec --no-startup-id xfce4-panel --disable-wm-check exec_always --no-startup-id ~/.config/i3/polybar.sh & -# exec --no-startup-id betterlockscreen -q -l blur +## Hide mouse exec --no-startup-id mousetrap -t 5 +## MPD Notifications +exec --no-startup-id /usr/bin/musnify-mpd + ##### BINDINGS ###### ## Toggle keyboard layout @@ -70,23 +70,10 @@ bindsym $mod+space exec --no-startup-id xkb-switch --next ## Touchpad toggle bindsym XF86TouchpadToggle exec --no-startup-id bash ~/.config/script/tpad.sh -## Toggle connect to bt-headphones -# bindsym XF86Mail exec --no-startup-id playerctl play-pause - -## Play/Stop music -bindsym XF86WWW exec --no-startup-id bash ~/.config/script/musicctrl.sh - -## Next/Prev music -bindsym $mod+shift+z exec --no-startup-id playerctl previous -bindsym $mod+shift+x exec --no-startup-id playerctl next - -## Volume control -bindsym $mod+shift+a exec --no-startup-id playerctl volume 0.05- -bindsym $mod+shift+s exec --no-startup-id playerctl volume 0.05+ - +## Play/Pause MPD +bindsym XF86Mail exec --no-startup-id mpc toggle ## Lock Screen -# bindsym XF86ScreenSaver exec --no-startup-id i3lock --image=/home/username/pics/wp/2b16x9.png bindsym XF86ScreenSaver exec --no-startup-id betterlockscreen -q -l blur ### Brightness ### @@ -134,7 +121,6 @@ floating_modifier $mod ## start a terminal bindsym $mod+Return exec --no-startup-id kitty -bindsym Mod1+Return exec --no-startup-id kitty ## kill focused window bindsym $mod+q kill @@ -301,8 +287,6 @@ mode "$mode_system" { bindsym l exec --no-startup-id $Locker, mode "default" bindsym e exec --no-startup-id i3-msg exit, mode "default" bindsym s exec --no-startup-id systemctl suspend, mode "default" - bindsym w exec --no-startup-id $Locker && sudo rtcwake -m mem --date \ - $(/home/username/.config/script/rtcdate.sh), mode "default" bindsym r exec --no-startup-id systemctl reboot, mode "default" bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default" bindsym h exec --no-startup-id systemctl hibernate, mode "default" @@ -312,22 +296,6 @@ mode "$mode_system" { bindsym Escape mode "default" } - -# set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown -# mode "$mode_system" { -# bindsym l exec --no-startup-id $Locker, mode "default" -# bindsym e exec --no-startup-id i3-msg exit, mode "default" -# bindsym s exec --no-startup-id systemctl suspend, mode "default" -# bindsym h exec --no-startup-id systemctl hibernate, mode "default" -# bindsym r exec --no-startup-id systemctl reboot, mode "default" -# bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default" -# -# ## exit: Enter or Escape -# bindsym Return mode "default" -# bindsym Escape mode "default" - - - ##### Colors ###### ## class border backgr. text indicator child_border @@ -371,10 +339,7 @@ client.background #ffffff ##### Windows ##### default_border pixel 5 -# hide_edge_borders both - -# assign [class="^mpv$"] $ws6 assign [class="qutebrowser"] $ws1 for_window [class="mpv"] floating enable @@ -386,8 +351,6 @@ for_window [class="imv"] floating enable for_window [class="QjackCtl"] floating enable workspace_auto_back_and_forth yes -# for_window [class="Alacritty" instance="cava"] border pixel 0 - ##### GAPS ##### gaps inner 9 diff --git a/smol/kitty/kitty.conf b/smol/kitty/kitty.conf index 7aa4e45..e44083e 100644 --- a/smol/kitty/kitty.conf +++ b/smol/kitty/kitty.conf @@ -6,11 +6,6 @@ #: individual font faces and even specify special fonts for particular #: characters. -# font_family Mononoki Nerd Font Complete -# bold_font Mononoki Nerd Font Complete Bold -# italic_font Mononoki Nerd Font Complete Italic -# bold_italic_font Mononoki Nerd Font Complete Bold Italic - font_family Fira Mono Medium bold_font Fira Mono Bold italic_font auto @@ -1136,47 +1131,6 @@ color14 #70c0b1 color7 #c5c8c6 color15 #eaeaea - -# color0 #000000 -# color8 #767676 -# -# #: black -# -# color1 #cc0403 -# color9 #f2201f -# -# #: red -# -# color2 #19cb00 -# color10 #23fd00 -# -# #: green -# -# color3 #cecb00 -# color11 #fffd00 -# -# #: yellow -# -# color4 #0d73cc -# color12 #1a8fff -# -# #: blue -# -# color5 #cb1ed1 -# color13 #fd28ff -# -# #: magenta -# -# color6 #0dcdcd -# color14 #14ffff -# -# #: cyan -# -# color7 #dddddd -# color15 #ffffff -# -# #: white - mark1_foreground black #: Color for marks of type 1 diff --git a/smol/polybar/config.ini b/smol/polybar/config.ini index 6cee7b3..9f3076c 100644 --- a/smol/polybar/config.ini +++ b/smol/polybar/config.ini @@ -26,14 +26,10 @@ alert = #A54242 disabled = #707880 [bar/top] -#bottom = false -#dock = false width = 100% height = 15pt radius = 0 -# dpi = 135 - background = ${colors.background} foreground = ${colors.foreground} @@ -47,7 +43,7 @@ padding-right = 1 module-margin = 1 -separator = | +separator = separator-foreground = ${colors.disabled} font-0 = Fira Mono:style=Medium:pixelsize=8;1 @@ -64,22 +60,12 @@ cursor-scroll = ns-resize enable-ipc = true -# tray-position = right - -# wm-restack = generic -# wm-restack = bspwm -# wm-restack = i3 - -# override-redirect = true - [bar/bottom] bottom = true width = 100% height = 15pt radius = 0 -# dpi = 135 - background = ${colors.background} foreground = ${colors.foreground} @@ -93,12 +79,11 @@ padding-right = 1 module-margin = 1 -separator = | +separator = separator-foreground = ${colors.disabled} font-0 = Fira Mono:style=Medium:pixelsize=8;1 font-1 = PowerlineSymbols:size=10;1 -# font-2 = SymbolsNerdFont:size=10;1 font-2 = Symbols Nerd Font:style=Regular:size=10;1 @@ -112,24 +97,34 @@ enable-ipc = true tray-position = right -[module/xworkspaces] -type = internal/xworkspaces +########## +# CUSTOM # +########## -label-active = %name% -label-active-background = ${colors.background-alt} -label-active-underline= ${colors.primary} -label-active-padding = 1 +[module/weather] +type = custom/script +exec = ANSIWEATHERRC=~/.config/ansiweather/config_for_bar ansiweather | sed 's#.*Sa.*rg: ##' | tr -d ':,-' +tail = false +interval = 1800 -label-occupied = %name% -label-occupied-padding = 1 +[module/updates] +type = custom/script +exec = ~/.config/polybar/scripts/updates.sh +interval = 3600 -label-urgent = %name% -label-urgent-background = ${colors.alert} -label-urgent-padding = 1 +[module/uptime] +type = custom/script +exec = echo 󰅔 $(uptime | sed 's/.*up //g;s/,.*user.*//g' ) +interval = 600 -label-empty = %name% -label-empty-foreground = ${colors.disabled} -label-empty-padding = 1 +[module/mpdvol] +type = custom/script +exec = echo 󰴸 $(mpc --host=192.168.0.186 status %volume%) +interval = 5 + +############ +# INTERNAL # +############ [module/i3] type = internal/i3 @@ -156,7 +151,6 @@ label-urgent-background = #9a847c label-urgent-underline = #9a847c label-urgent-padding = 1 - [module/mpd] type = internal/mpd @@ -188,7 +182,7 @@ interval = 1 ; ; # format-online = | | Now playing: -format-online = 󰝚 Now playing: | | +format-online = 󰝚 Now playing: format-playing = ${self.format-online} format-paused = ${self.format-online} format-stopped = Press! -> <- @@ -222,27 +216,6 @@ icon-next =  # tail = false # interval = 960 -[module/weather] -type = custom/script -exec = ANSIWEATHERRC=~/.config/ansiweather/config_for_bar ansiweather | sed 's#.*Sa.*rg: ##' | tr ':' ' ' -tail = false -interval = 960 - -[module/updates] -type = custom/script -exec = ~/.config/polybar/scripts/updates.sh -interval = 3600 - -[module/uptime] -type = custom/script -exec = echo 󰅔 $(uptime | sed 's/.*up //g;s/,.*user.*//g' ) -interval = 600 - - -[module/mpdvol] -type = custom/script -exec = echo 󰴸 $(mpc --host=192.168.0.186 status %volume%) -interval = 5 [module/xwindow] type = internal/xwindow @@ -338,9 +311,8 @@ label-indicator-background = ${colors.secondary} [module/memory] type = internal/memory interval = 2 -# format-prefix = " " format-prefix-foreground = ${colors.primary} -label = 󰍛 %gb_used% | 󰋊 %swap_used% +label = 󰍛 %gb_used% 󰋊 %swap_used% [module/cpu] type = internal/cpu @@ -349,15 +321,6 @@ format-prefix = "󰻠 " format-prefix-foreground = ${colors.primary} label = %percentage:2%% -# [module/freq] -# type = custom/script -# format =