feat: some stuff

This commit is contained in:
max_richter 2021-11-28 16:27:03 +01:00
parent 66585f6d20
commit b0ea071f7c
4 changed files with 4 additions and 1686 deletions

1
configs/waybar/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
media.log

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,7 @@ window {
} }
#input { #input {
height: 0;
border: none; border: none;
border-radius: 0px; border-radius: 0px;
background-color: white; background-color: white;

View File

@ -2,7 +2,7 @@
swaymsg -t get_tree | jq -r ' swaymsg -t get_tree | jq -r '
# descend to workspace or scratchpad # descend to workspace or scratchpad
.nodes[].nodes[] .nodes[].nodes[].nodes[]
# save workspace name as .w # save workspace name as .w
| {"w": .name} + ( | {"w": .name} + (
if .nodes then # workspace if .nodes then # workspace
@ -19,7 +19,7 @@ swaymsg -t get_tree | jq -r '
# remove markup and index from workspace name, replace scratch with "[S]" # remove markup and index from workspace name, replace scratch with "[S]"
+ (.w | gsub("^[^:]*:|<[^>]*>"; "") | sub("__i3_scratch"; "[S]")) + (.w | gsub("^[^:]*:|<[^>]*>"; "") | sub("__i3_scratch"; "[S]"))
+ "\t " + .name) + "\t " + .name)
' | wofi --show dmenu -Ddynamic-lines=true --prompt=0 | { ' | wofi --show dmenu| {
read -r id name read -r id name
swaymsg "[con_id=$id]" focus swaymsg "[con_id=$id]" focus
} }