1
0

waybar config move

This commit is contained in:
2024-04-15 15:46:32 +02:00
parent 1e08d39299
commit e1125b19cb
5 changed files with 103 additions and 93 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ $Mod = SUPER
# $launcher = rofi -show drun # $launcher = rofi -show drun
$launcher = bemenu-run $launcher = bemenu-run
$record = wf-recorder -c libx264 -g "$(slurp)" -f ~/screenshots/mov-$(date +"%Y-%m-%d--%H-%M-%S.mp4") $record = wf-recorder -c libx264 -g "$(slurp)" -f ~/screenshots/mov-$(date +"%Y-%m-%d--%H-%M-%S.mp4")
$bar = waybar -c ~/.config/waybar/hypr-config $bar = waybar
$wallpaper = swaybg -m fill -i ~/.cache/wallpaper.jpeg $wallpaper = swaybg -m fill -i ~/.cache/wallpaper.jpeg
$term = kitty $term = kitty
+68 -28
View File
@@ -1,30 +1,70 @@
{ {
"layer": "bottom", "layer": "top",
"position": "top", "position": "top",
"modules-left": [], "spacing": 0,
"modules-center": ["sway/workspaces", "sway/mode"], "modules-left": ["hyprland/workspaces"],
"modules-right": ["clock", "idle_inhibitor", "tray"], "modules-center": ["clock"],
"sway/workspaces": { "modules-right": ["custom/recording", "cpu", "disk", "disk#sda", "idle_inhibitor", "tray", "custom/transmission", "network"],
"disable-scroll": true, "hyprland/workspaces": {
"all-outputs": false, "format": "{name}",
"format": "{name}" "all-outputs": false,
}, "on-click": "activate",
"sway/mode": { "sort-by-number": true
"format": "<span style=\"italic\">{}</span>" },
}, "custom/recording": {
"idle_inhibitor": { "format": "●",
"format": "{icon}", "exec": "pgrep wf-recorder",
"format-icons": { "format-icons": ["", "O"],
"deactivated": "💤", "exec-if": "pgrep wf-recorder",
"activated": "🦉", "interval": 1
"default": "" },
} "network": {
}, "interface": "moz0",
"tray": { "format": "🕵️",
"icon-size": 24, "format-disconnected": ""
"spacing": 16 },
}, "custom/gpu": {
"clock": { "exec": "cat /sys/class/hwmon/hwmon2/device/gpu_busy_percent",
"format": "{:%m-%d %H:%M}", "format": "{icon}",
} "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
"interval": 1
},
"custom/transmission": {
"exec": "/home/mark/.scripts/transmission",
"format": "{icon}",
"format-icons": ["", ""],
"interval": 5
},
"cpu": {
"interval": 1,
"format": "{icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}{icon8}{icon9}{icon10}{icon11}{icon12}{icon13}{icon14}{icon15}",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
},
"disk": {
"path": "/",
"format": "{free}",
"tooltip-format": "{free} available on {path}"
},
"disk#sda": {
"path": "/home/mark/Files",
"format": "{free}",
"interval": 5,
"tooltip-format": "{free} available on {path}"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"deactivated": "💤",
"activated": "🦉",
"default": ""
}
},
"tray": {
"icon-size": 26,
"spacing": 8
},
"clock": {
"format": "{:%H:%M}",
"tooltip-format": "{:%d %m}"
}
} }
+30
View File
@@ -0,0 +1,30 @@
{
"layer": "bottom",
"position": "top",
"modules-left": [],
"modules-center": ["sway/workspaces", "sway/mode"],
"modules-right": ["clock", "idle_inhibitor", "tray"],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}"
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"deactivated": "💤",
"activated": "🦉",
"default": ""
}
},
"tray": {
"icon-size": 24,
"spacing": 16
},
"clock": {
"format": "{:%m-%d %H:%M}",
}
}
-64
View File
@@ -1,64 +0,0 @@
{
"layer": "top",
"position": "top",
"spacing": 0,
"modules-left": ["hyprland/workspaces"],
"modules-center": ["clock"],
"modules-right": ["custom/recording", "custom/gpu", "cpu", "disk", "disk#sda", "idle_inhibitor", "tray", "network"],
"hyprland/workspaces": {
"format": "{name}",
"all-outputs": false,
"on-click": "activate",
"sort-by-number": true
},
"custom/recording": {
"format": "●",
"exec": "pgrep wf-recorder",
"format-icons": ["", "O"],
"exec-if": "pgrep wf-recorder",
"interval": 1
},
"network": {
"interface": "moz0",
"format": "🕵️",
"format-disconnected": ""
},
"custom/gpu": {
"exec": "cat /sys/class/hwmon/hwmon2/device/gpu_busy_percent",
"format": "{icon}",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
"interval": 1
},
"cpu": {
"interval": 1,
"format": "{icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}{icon8}{icon9}{icon10}{icon11}{icon12}{icon13}{icon14}{icon15}",
"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
},
"disk": {
"path": "/",
"format": "{free}",
"tooltip-format": "{free} available on {path}"
},
"disk#sda": {
"path": "/home/mark/Files",
"format": "{free}",
"interval": 5,
"tooltip-format": "{free} available on {path}"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"deactivated": "💤",
"activated": "🦉",
"default": ""
}
},
"tray": {
"icon-size": 26,
"spacing": 8
},
"clock": {
"format": "{:%H:%M}",
"tooltip-format": "{:%d %m}"
}
}
+4
View File
@@ -49,6 +49,7 @@ window {
#disk, #disk,
#idle_inhibitor, #idle_inhibitor,
#custom-gpu, #custom-gpu,
#custom-transmission,
#custom-recording, #custom-recording,
#network, #network,
#wireplumber #wireplumber
@@ -60,6 +61,9 @@ window {
#custom-recording { #custom-recording {
color: red; color: red;
} }
#custom-transmission {
color:#FEE;
}
#clock { #clock {
background-color: alpha(@background, 0.8); background-color: alpha(@background, 0.8);