feat: some stuff
This commit is contained in:
parent
66585f6d20
commit
b0ea071f7c
1
configs/waybar/.gitignore
vendored
Normal file
1
configs/waybar/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
media.log
|
File diff suppressed because it is too large
Load Diff
@ -5,6 +5,7 @@ window {
|
||||
}
|
||||
|
||||
#input {
|
||||
height: 0;
|
||||
border: none;
|
||||
border-radius: 0px;
|
||||
background-color: white;
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user