Update personal config

This commit is contained in:
Hydroxycarbamide 2024-08-15 16:30:44 +02:00
parent a29790fbdd
commit 45f5f41399
9 changed files with 74 additions and 30 deletions

View file

@ -1,6 +1,6 @@
{
"output": ["DP-1", "HDMI-A-1"],
"layer": "bottom",
"layer": "top",
"position": "top",
"height": 32,
"modules-left": [
@ -95,12 +95,12 @@
"7": " ",
"8": " ",
"default": ""
},
"persistent-workspaces": {
"*": 4,
"DP-1": [1, 2, 3, 4],
"HDMI-A-1": [5, 6, 7, 8]
}
// "persistent-workspaces": {
// "*": 4,
// "DP-1": [1, 2, 3, 4],
// "HDMI-A-1": [5, 6, 7, 8]
// }
},
"sway/workspaces#sway": {
"current-only": false,

View file

@ -0,0 +1,18 @@
#!/usr/bin/nu
let out = {
text: "",
tooltip: ""
}
loop {
sleep 1sec
let fw = niri msg -j focused-window | from json
print (
$out
| try { update text $fw.title | update tooltip $"($fw.title) | ($fw.app_id)" }
| to json -r
)
}

View file

@ -0,0 +1,15 @@
#!/usr/bin/nu
def main [output_name] {
loop {
sleep 1sec
print (
niri msg -j workspaces
| from json
| where output == $output_name
| each {|ws| if $ws.is_active { '󰪥' } else { '󰄰' } }
| str join " "
)
}
}

View file

@ -151,7 +151,7 @@ widget>label {
#taskbar button.maximized,
#taskbar button.fullscreen {
border-bottom: 3px solid #8aadf4;
border-top: 3px solid #8aadf4;
}
#taskbar button.active {