aboutsummaryrefslogtreecommitdiff
path: root/.config/waybar
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2023-04-05 16:42:00 +0000
committerLuca Matei Pintilie <lucafulger@gmail.com>2023-04-05 16:42:00 +0000
commitd40df46b6c003ff2d574d5efc36cecebafe39f6e (patch)
tree9c869a996ee2ce416b3e05d4f366dd0a3bf65818 /.config/waybar
parent15bee43293bdc042a6af44a787088722f36df027 (diff)
downloaddotfiles-d40df46b6c003ff2d574d5efc36cecebafe39f6e.tar
dotfiles-d40df46b6c003ff2d574d5efc36cecebafe39f6e.tar.gz
dotfiles-d40df46b6c003ff2d574d5efc36cecebafe39f6e.tar.bz2
dotfiles-d40df46b6c003ff2d574d5efc36cecebafe39f6e.tar.lz
dotfiles-d40df46b6c003ff2d574d5efc36cecebafe39f6e.tar.xz
dotfiles-d40df46b6c003ff2d574d5efc36cecebafe39f6e.tar.zst
dotfiles-d40df46b6c003ff2d574d5efc36cecebafe39f6e.zip
Better hyprland config
Diffstat (limited to '')
-rw-r--r--.config/waybar/config26
-rw-r--r--.config/waybar/style.css5
2 files changed, 29 insertions, 2 deletions
diff --git a/.config/waybar/config b/.config/waybar/config
index 63f64e2..27b972c 100644
--- a/.config/waybar/config
+++ b/.config/waybar/config
@@ -1,16 +1,18 @@
// vi: ft=jsonc
{
- // "layer": "top", // Waybar at top layer
+ "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 40, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
//"spacing": 4, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": [
+ "wlr/workspaces",
"sway/workspaces"
//"sway/mode"
],
"modules-center": [
+ "wlr/window",
"sway/window"
],
"modules-right": [
@@ -38,7 +40,22 @@
"urgent": "",
"focused": "",
"default": ""
- }
+ },
+ "on-click": "activate"
+ },
+ "wlr/workspaces": {
+ "max-width": 100,
+ "disable-scroll": false,
+ "all-outputs": false,
+ "format": "{name} {icon}",
+ "format-icons": {
+ "urgent": "",
+ "focused": "",
+ "default": ""
+ },
+ "on-scroll-up": "hyprctl dispatch workspace e+1",
+ "on-scroll-down": "hyprctl dispatch workspace e-1",
+ "on-click": "activate"
},
"keyboard-state": {
"numlock": true,
@@ -53,6 +70,11 @@
"format": "{short} {variant}",
"on-click": "swaymsg input type:keyboard xkb_switch_layout next"
},
+ "wlr/mode": {
+ "format": "<span style=\"italic\">{}</span>",
+ "max-length": 50,
+ "tooltip": true
+ },
"sway/mode": {
"format": "<span style=\"italic\">{}</span>",
"max-length": 50,
diff --git a/.config/waybar/style.css b/.config/waybar/style.css
index 9580d35..08861e3 100644
--- a/.config/waybar/style.css
+++ b/.config/waybar/style.css
@@ -63,6 +63,11 @@ window#waybar.chromium {
box-shadow: inset 0 -3px #ffffff;
}
+#workspaces button.active {
+ background-color: #64727D;
+ box-shadow: inset 0 -3px #ffffff;
+}
+
#workspaces button.focused {
background-color: #64727D;
box-shadow: inset 0 -3px #ffffff;