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 {
height: 0;
border: none;
border-radius: 0px;
background-color: white;

View File

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