Update some stuff from arachnidsGrip
This commit is contained in:
1084
.config/kitty/kitty-scratch.conf
Normal file
1084
.config/kitty/kitty-scratch.conf
Normal file
File diff suppressed because it is too large
Load Diff
@@ -491,7 +491,7 @@ color15 #fdf6e3
|
||||
|
||||
#: The foreground and background colors
|
||||
|
||||
background_opacity 0.8
|
||||
background_opacity 1.0
|
||||
|
||||
#: The opacity of the background. A number between 0 and 1, where 1 is
|
||||
#: opaque and 0 is fully transparent. This will only work if
|
||||
|
||||
@@ -288,13 +288,16 @@ for_window [class="Spotify"] opacity 0.8
|
||||
for_window [app_id="boop-gtk"] floating enable
|
||||
|
||||
#exec redshift -O 4500 -m wayland
|
||||
exec nm-applet --indicator
|
||||
exec wlanthy -i pass
|
||||
|
||||
# exec ~/.local/start-jack.sh
|
||||
|
||||
exec ~/.config/sway/workspace-rename.sh
|
||||
exec ~/.config/sway/workspace_rename.py > ~/.cache/workspace_rename.log 2> ~/.cache/workspace_rename_error.log
|
||||
|
||||
for_window [app_id="kitty-scratch|pavucontrol"] {
|
||||
move to scratchpad
|
||||
scratchpad show
|
||||
}
|
||||
for_window [class="Tor Browser"] floating enable
|
||||
|
||||
workspace 1 output eDP-1
|
||||
|
||||
@@ -9,7 +9,7 @@ good_bg = "#859900ff"
|
||||
warning_bg = "#b58900ff"
|
||||
critical_bg = "#dc322fff"
|
||||
alternating_tint_bg = "#00000000"
|
||||
separator = "<span font='12'>\ue0b2</span>"
|
||||
separator = "<span font='14'>\ue0b2</span>"
|
||||
#separator = ""
|
||||
|
||||
#[[block]]
|
||||
@@ -19,10 +19,7 @@ separator = "<span font='12'>\ue0b2</span>"
|
||||
[[block]]
|
||||
block = "music"
|
||||
player = "spotify"
|
||||
buttons = ["play", "next"]
|
||||
on_collapsed_click = "spotify"
|
||||
max_width = 21
|
||||
marquee = true
|
||||
format = "$prev $play $next|"
|
||||
|
||||
[[block]]
|
||||
block = "sound"
|
||||
@@ -30,18 +27,25 @@ driver = "auto"
|
||||
show_volume_when_muted = true
|
||||
headphones_indicator = true
|
||||
step_width = 3
|
||||
[[block.click]]
|
||||
button = "left"
|
||||
cmd = "pavucontrol"
|
||||
|
||||
[[block]]
|
||||
block = "memory"
|
||||
display_type = "memory"
|
||||
format_mem = "{mem_used;M}"
|
||||
format_mem = "$mem_used.eng(3,B,M)"
|
||||
clickable = false
|
||||
on_click = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf btop"
|
||||
[[block.click]]
|
||||
button = "left"
|
||||
cmd = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf btop"
|
||||
|
||||
[[block]]
|
||||
block = "cpu"
|
||||
interval = 1
|
||||
on_click = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf btop"
|
||||
[[block.click]]
|
||||
button = "left"
|
||||
cmd = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf btop"
|
||||
|
||||
#[[block]]
|
||||
#block = "sound"
|
||||
@@ -53,19 +57,22 @@ interval = 10
|
||||
[[block]]
|
||||
block = "pacman"
|
||||
interval = 600
|
||||
format = "{both} updates available"
|
||||
format_singular = "{both} update available"
|
||||
format = "$both updates available"
|
||||
format_singular = "$both update available"
|
||||
format_up_to_date = "up to date"
|
||||
hide_when_uptodate = true
|
||||
critical_updates_regex = "(^(linux-|sway|wl)|pipewire)"
|
||||
aur_command = "yay -Qua"
|
||||
on_click = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf zsh -i -c update"
|
||||
[[block.click]]
|
||||
button = "left"
|
||||
cmd = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf zsh -i -c update"
|
||||
|
||||
[[block]]
|
||||
block = "networkmanager"
|
||||
on_click = "networkmanager_dmenu"
|
||||
device_format = "{icon}{ap}"
|
||||
interface_name_exclude = ["br\\-[0-9a-f]{12}", "docker\\d+"]
|
||||
block = "net"
|
||||
format = "$device{| $ssid}"
|
||||
[[block.click]]
|
||||
button = "left"
|
||||
cmd = "kitty --class kitty-scratch -c ~/.config/kitty/kitty-scratch.conf nmtui"
|
||||
|
||||
[[block]]
|
||||
block = "time"
|
||||
|
||||
61
.config/sway/workspace_rename.py
Executable file
61
.config/sway/workspace_rename.py
Executable file
@@ -0,0 +1,61 @@
|
||||
#!/bin/python3
|
||||
|
||||
import asyncio
|
||||
|
||||
from i3ipc import Event
|
||||
from i3ipc.aio import Connection
|
||||
|
||||
|
||||
async def main():
|
||||
sway = await Connection().connect()
|
||||
|
||||
@sway.on(Event.WINDOW_NEW)
|
||||
@sway.on(Event.WINDOW_CLOSE)
|
||||
@sway.on(Event.WINDOW_MOVE)
|
||||
@sway.on(Event.WINDOW_TITLE)
|
||||
async def on_window_change(sway, _):
|
||||
for w in (await sway.get_tree()).workspaces():
|
||||
new_name = f'{w.num}:'
|
||||
|
||||
first_descendant = True
|
||||
for d in w.descendants():
|
||||
app_name = d.app_id
|
||||
if not app_name:
|
||||
app_name = d.window_instance
|
||||
|
||||
if app_name:
|
||||
if not first_descendant:
|
||||
new_name += ' '
|
||||
first_descendant = False
|
||||
|
||||
if 'kitty' in app_name:
|
||||
if 'vim' in d.name:
|
||||
new_name += '<span font=\'12\' rise=\'-2500\'>\ue6c5</span>'
|
||||
else:
|
||||
new_name += ''
|
||||
elif app_name in ['Chromium', 'google-chrome', 'google-chrome-unstable']:
|
||||
if 'YouTube' in d.name:
|
||||
new_name += ''
|
||||
else:
|
||||
new_name += ''
|
||||
elif app_name == 'Navigator':
|
||||
new_name += ''
|
||||
elif app_name == 'discord':
|
||||
new_name += ''
|
||||
elif app_name == 'spotify':
|
||||
new_name += '<span font=\'11\' rise=\'-400\'></span>'
|
||||
elif app_name in ['GEMOC Studio', 'code-oss']:
|
||||
new_name += ''
|
||||
elif 'okular' in app_name or 'zathura' in app_name:
|
||||
new_name += '<span font=\'FontAwesome 5 Free Solid\'></span>'
|
||||
elif app_name == 'pavucontrol':
|
||||
new_name += ''
|
||||
else:
|
||||
new_name += app_name
|
||||
|
||||
await sway.command(f'rename workspace "{w.name}" to "{new_name}"')
|
||||
|
||||
|
||||
await sway.main()
|
||||
|
||||
asyncio.run(main())
|
||||
Reference in New Issue
Block a user