update smol

This commit is contained in:
cheesus_crust 2023-02-14 21:49:46 +03:00
parent af9f4acb51
commit bc01152a44
5 changed files with 3853 additions and 27 deletions

View File

@ -58,6 +58,7 @@ exec --no-startup-id feh --bg-fill ~/pics/wp/2b16x9.png
exec_always --no-startup-id ~/.config/i3/polybar.sh &
# exec --no-startup-id betterlockscreen -q -l blur
exec --no-startup-id mousetrap -t 5
##### BINDINGS ######
@ -100,7 +101,8 @@ bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 5
## Screenshot
bindsym --release Print exec --no-startup-id scrot
bindsym --release Shift+Print exec --no-startup-id scrot -s --delay 2
bindsym --release Ctrl+Print exec --no-startup-id scrot -s --delay 2
bindsym --release Shift+Print exec --no-startup-id scrot --focused
## Notifications show
bindsym $mod+equal exec --no-startup-id dunstctl history-pop
@ -129,8 +131,8 @@ bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOU
floating_modifier $mod
## start a terminal
bindsym $mod+Return exec --no-startup-id alacritty
bindsym Mod1+Return exec --no-startup-id alacritty
bindsym $mod+Return exec --no-startup-id kitty -1
bindsym Mod1+Return exec --no-startup-id kitty -1
## kill focused window
bindsym $mod+q kill
@ -316,30 +318,30 @@ client.background #ffffff
## Start i3bar to display a workspace bar (plus the system information i3status
## finds out, if available)
bar {
# status_command i3status
strip_workspace_numbers yes
workspace_buttons yes
status_command i3status-rs
position bottom
separator_symbol |
i3bar_command i3bar --transparency
colors {
# background #fdf6e3
background #fdf6e3cc
statusline #657b83
separator #657b83
focused_workspace #fdf6e3 #657b83 #fdf6e3
active_workspace #fdf6e3 #5f676a #ffffff
inactive_workspace #fdf6e3 #fdf6e3 #657b83
urgent_workspace #fdf6e3 #9a847c #ffffff
binding_mode #fdf6e3 #9a847c #ffffff
}
tray_padding 2
strip_workspace_numbers yes
}
# bar {
# # status_command i3status
# strip_workspace_numbers yes
# workspace_buttons yes
# status_command i3status-rs
# position bottom
# separator_symbol |
# i3bar_command i3bar --transparency
# colors {
# # background #fdf6e3
# background #fdf6e3cc
# statusline #657b83
# separator #657b83
#
# focused_workspace #fdf6e3 #657b83 #fdf6e3
# active_workspace #fdf6e3 #5f676a #ffffff
# inactive_workspace #fdf6e3 #fdf6e3 #657b83
# urgent_workspace #fdf6e3 #9a847c #ffffff
# binding_mode #fdf6e3 #9a847c #ffffff
#
# }
# tray_padding 2
# strip_workspace_numbers yes
# }
##### Windows #####

11
smol/i3/polybar.sh Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env sh
# Terminate already running bar instances
killall -q polybar
# Wait until the processes have been shut down
while pgrep -x polybar >/dev/null; do sleep 1; done
# Launch polybar
polybar top 2>> /home/username/.logs/polybar_top.log &
polybar bottom 2>> /home/username/.logs/polybar_bot.log &

2331
smol/kitty/kitty.conf Normal file

File diff suppressed because it is too large Load Diff

View File

@ -72,6 +72,45 @@ enable-ipc = true
# override-redirect = true
[bar/bottom]
bottom = true
width = 100%
height = 15pt
radius = 0
# dpi = 135
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3pt
border-size = 0pt
border-color = #00000000
padding-left = 0
padding-right = 1
module-margin = 1
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
modules-left = i3
modules-right = mpd mpdvol weather updates
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
tray-position = right
[module/xworkspaces]
type = internal/xworkspaces
@ -91,6 +130,106 @@ label-empty = %name%
label-empty-foreground = ${colors.disabled}
label-empty-padding = 1
[module/i3]
type = internal/i3
pin-workspaces = true
enable-scroll = true
show-urgent = true
strip-wsnumbers = true
label-focused = %name%
label-focused-background = ${colors.background-alt}
label-focused-underline= ${colors.primary}
label-focused-padding = 1
label-unfocused = %name%
label-unfocused-padding = 1
label-visible = %name%
label-visible-padding = 1
label-urgent = %name%
label-urgent-foreground = #fdf6e3
label-urgent-background = #9a847c
label-urgent-underline = #9a847c
label-urgent-padding = 1
[module/mpd]
type = internal/mpd
; Host where mpd is running (either ip or domain name)
; Can also be the full path to a unix socket where mpd is running.
host = 192.168.0.186
port = 6600
; password = mysecretpassword
; Seconds to sleep between progressbar/song timer sync
; Default: 1
interval = 1
; Available tags:
; <label-song> (default)
; <label-time>
; <bar-progress>
; <toggle> - gets replaced with <icon-(pause|play)>
; <toggle-stop> - gets replaced with <icon-(stop|play)>
; <icon-random>
; <icon-repeat>
; <icon-repeatone> (deprecated)
; <icon-single> - Toggle playing only a single song. Replaces <icon-repeatone>
; <icon-consume>
; <icon-prev>
; <icon-stop>
; <icon-play>
; <icon-pause>
; <icon-next>
; <icon-seekb>
; <icon-seekf>
format-online = <icon-prev> <icon-stop> <toggle> <icon-next> | <label-time> | Now playing: <label-song>
format-playing = ${self.format-online}
format-paused = ${self.format-online}
format-stopped = Press! -> <toggle> <-
; Available tags:
; <label-offline>
; Default: ""
format-offline = <label-offline>
; Available tokens:
; %artist%
; %album-artist%
; %album%
; %date%
; %title%
; Default: %artist% - %title%
label-song = %artist% - %title%
label-time = %elapsed% / %total%
label-offline = mpd is offline
icon-play =
icon-pause =
icon-stop =
icon-prev =
icon-next =
[module/weather]
type = custom/script
exec = ~/.config/polybar/scripts/weather-plugin.sh
tail = false
interval = 960
[module/updates]
type = custom/script
exec = ~/.config/polybar/scripts/updates.sh
interval = 3600
[module/mpdvol]
type = custom/script
exec = echo  $(mpc --host=192.168.0.186 status %volume%)
interval = 5
[module/xwindow]
type = internal/xwindow
label =  %title%

1343
smol/tut/config.toml Normal file

File diff suppressed because it is too large Load Diff