Hyprland & Tmux configs June 2026

This commit is contained in:
2026-06-12 18:54:46 +01:00
parent d4604eac01
commit 722bea8ea4
14 changed files with 314 additions and 266 deletions
Binary file not shown.
+131 -139
View File
@@ -3,160 +3,152 @@
"name": "main",
"layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 30, // Waybar height (to be removed for auto height)
"height": 26, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// "gtk-layer-shell": "false",
// Choose the order of the modules
"modules-left": ["custom/menu","hyprland/window"],
"modules-center": ["hyprland/workspaces"],
"modules-right": ["custom/zypper","hyprland/language", "network", "pulseaudio", "custom/layout", "clock"],
"hyprland/workspaces": {
"format": "{icon}",
"format-icons": {
"default": "",
"active": ""
"modules-left": ["hyprland/window"],
"modules-center": [],
"modules-right": ["hyprland/workspaces","custom/hostname","battery","clock"],
"custom/workspaces": {
"format": "{}",
"exec": "hyprctl activeworkspace -j | jq '.id'",
"interval": 1
},
"disable-scroll": true,
"all-outputs": true,
"show-special": true
"custom/hostname": {
"exec": "hostname",
"format": "{}",
"interval": 10000
},
"hyprland/window": {
"custom/zypper": {
"format": "{} ",
"interval": 3600,
"exec": "zypper lu | grep 'v \\+|' | wc -l; echo 'packages to update'",
"exec-if": "exit 0",
"on-click": "exec alacritty -e sudo sh -c 'zypper ref; zypper dup; pkill -SIGRTMIN+8 waybar'",
"signal": 8
},
"custom/menu": {
"format": "",
"on-click": "fuzzel"
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
"format": "{:%Y-%m-%d %I:%M:%S}",
"format-alt": "{:%a %d %b w:%V %H:%M}",
"actions": {
"on-click-right" : "mode",
"on-scroll-up" : "shift_up",
"on-scroll-down" : "shift_down"
},
"interval": 1
},
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
"memory": {
"format": "{}% "
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", ""]
},
"battery": {
"format": "{capacity}%"
},
"battery#bat2": {
"bat": "BAT2"
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "WiFi",
"format-ethernet": "Eth",
"format-linked": "Connected",
"format-disconnected": "Disconnected",
"format-alt": "{ifname} {essid} ({signalStrength}%)"
},
"pulseaudio": {
"format": "{icon}",
"format-alt": "{volume} {icon}",
"format-alt-click": "click-middle",
"format-muted": "",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"scroll-step": 10,
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pavucontrol",
"tooltip": true
},
"custom/scratchpad": {
"format-text": "{}",
"return-type": "json",
"interval": 3,
"exec": "/usr/share/openSUSEway/helpers/scratchpad-indicator.sh 2> /dev/null",
"exec-if": "exit 0",
"on-click": "swaymsg 'scratchpad show'",
"on-click-right": "swaymsg 'move scratchpad'"
},
"custom/layout": {
"tooltip": false,
"exec": "swaymsg -mrt subscribe '[\"input\"]' | jq -r --unbuffered \"select(.change == \\\"xkb_layout\\\") | .input | select(.type == \\\"keyboard\\\") | .xkb_active_layout_name | .[0:2]\""
},
"custom/zypper": {
"format": "{} ",
"interval": 3600,
"exec": "zypper lu | grep 'v \\+|' | wc -l; echo 'packages to update'",
"exec-if": "exit 0",
"on-click": "exec alacritty -e sudo sh -c 'zypper ref; zypper dup; pkill -SIGRTMIN+8 waybar'",
"signal": 8
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
"format": " {:%Y-%m-%d %H:%M:%S}",
"format-alt": "{:%a %d %b w:%V %H:%M}",
"tooltip-format": "<span color='#eee8d5'><tt><small>{calendar}</small></tt></span>",
"calendar": {
"mode-mon-col" : 4,
"weeks-pos" : "left",
"on-scroll" : 1,
"on-click-right" : "mode",
"format": {
"months": "<span color='#dc322f'><b>{}</b></span>",
"weeks": "<span color='#d33682'><b>{}</b></span>",
"weekdays": "<span color='#268bd2'><b>{}</b></span>",
"today": "<span color='#2aa198'><b><u>{}</u></b></span>"
}
},
"actions": {
"on-click-right" : "mode",
"on-scroll-up" : "shift_up",
"on-scroll-down" : "shift_down"
},
"interval": 1
},
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
"memory": {
"format": "{}% "
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", ""]
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon}",
"format-charging": "",
"format-plugged": "",
"format-alt": "{capacity}% {time}",
"format-icons": ["", "", "", "", ""]
},
"battery#bat2": {
"bat": "BAT2"
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "",
"format-ethernet": "",
"format-linked": "",
"format-disconnected": "⚠",
"format-alt": "{ifname} {essid} ({signalStrength}%)"
},
"pulseaudio": {
"format": "{icon}",
"format-alt": "{volume} {icon}",
"format-alt-click": "click-middle",
"format-muted": "",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"scroll-step": 10,
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pavucontrol",
"tooltip": true
},
"custom/scratchpad": {
"format-text": "{}",
"return-type": "json",
"interval": 3,
"exec": "/usr/share/openSUSEway/helpers/scratchpad-indicator.sh 2> /dev/null",
"exec-if": "exit 0",
"on-click": "swaymsg 'scratchpad show'",
"on-click-right": "swaymsg 'move scratchpad'"
},
"hyprland/language": {
"format": "{}",
"on-click": "hyprctl switchxkblayout current next",
"keyboard-name": "current"
},
"custom/notification": {
"mpd": {
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
"interval": 2,
"consume-icons": {
"on": " " // Icon shows only when "consume" is on
},
"random-icons": {
"off": "<span color=\"#f53c3c\"></span> ", // Icon grayed out when "random" is off
"on": " "
},
"repeat-icons": {
"on": " "
},
"single-icons": {
"on": "1 "
},
"state-icons": {
"paused": "",
"playing": ""
},
"tooltip-format": "MPD (connected)",
"tooltip-format-disconnected": "MPD (disconnected)"
},
"custom/notification": {
"tooltip": true,
"format": "{icon}",
"format-icons": {
"notification": "<span foreground='red'><small><sup>⬤</sup></small></span>",
"none": " ",
"dnd-notification": "<span foreground='red'><small><sup>⬤</sup></small></span>",
"dnd-none": " "
"notification": "<span foreground='red'><small><sup>⬤</sup></small></span>",
"none": " ",
"dnd-notification": "<span foreground='red'><small><sup>⬤</sup></small></span>",
"dnd-none": " "
},
"return-type": "json",
"exec-if": "which swaync-client",
+23 -90
View File
@@ -1,107 +1,40 @@
* {
border: none;
border-radius: 0;
font-family: "Source Sans Pro", "FontAwesome 6 Free";
font-size: 15px;
box-shadow: none;
text-shadow: none;
transition-duration: 0s;
border: none;
border-radius: 0;
font-family: "Victor Mono";
font-size: 12px;
box-shadow: none;
text-shadow: none;
transition-duration: 0s;
}
window.main {
color: rgb(101,123,131);
background-color: rgb(0,43,54);
border-bottom: 1px solid rgb(88,110,117);
color: #1c1c1c;
background-color: #839496;
}
#workspaces {
margin-right: 5px;
#battery,
#custom-workspaces,
#workspaces button,
#custom-hostname,
#clock,
#window {
color: #1c1c1c;
background-color: #839496;
padding-right: 5px;
padding-left: 5px;
}
#custom-scratchpad {
margin-right: 5px;
padding: 0px 5px;
}
/* Modules center */
#workspaces {
background: #073642;
border-radius: 10px;
margin: 6px 5px;
padding: 0px 6px;
}
#workspaces button {
color: #586e75;
background: transparent;
padding: 4px 4px;
transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}
#workspaces button.occupied {
color: #d33682;
}
#workspaces button.active {
color: #2aa198;
text-shadow: 0 0 4px #ABE9B3;
}
#workspaces button:hover {
color: #6c71c4;
}
#workspaces button.active:hover {}
#mode,
#network,
#pulseaudio,
#idle_inhibitor,
#temperature,
#custom-layout,
#hyprland-languages,
#custom-menu,
#hyprland-window,
#custom-zypper {
margin: 0px 6px 0px 10px;
/* min-width: 30px;*/
}
#clock {
margin: 0px 6px 0px 10px;
}
#battery.warning {
color: rgba(255, 210, 4, 1);
}
#battery.critical {
color: rgba(238, 46, 36, 1);
}
#battery.charging {
color: rgba(217, 216, 216, 1);
}
#bluetooth.disabled {
color: rgba(128, 128, 128, 1);
}
#bluetooth.off {
color: rgba(128, 128, 128, 1);
color: #585858;
}
#bluetooth.connected {
color: rgba(115, 186, 37, 1);
}
tooltip {
color: #eee8d5;
background-color: #073642;
text-shadow: none;
color: rgba(115, 186, 37, 1);
}
tooltip * {
background-color: #073642;
color: #eee8d5;
background-color: #839496;
color: #1c1c1c;
text-shadow: none;
}