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 {
|
#input {
|
||||||
|
height: 0;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user