aboutsummaryrefslogtreecommitdiffstats
path: root/config/waybar
diff options
context:
space:
mode:
authorJa.KooLit <jimmielovejay@gmail.com>2023-10-28 09:50:32 +0900
committerGitHub <noreply@github.com>2023-10-28 09:50:32 +0900
commit12d7511b2eb890b2664fb37680d346a69b58030b (patch)
treed032bde6947c2b0727f76f2e2682a94348f6332f /config/waybar
parent3bc9ac45014b0c57895f220421014ac79865ffc6 (diff)
parent933a0ce37e8d41b25732d76aff548e349405abd2 (diff)
Merge pull request #2 from JaKooLit/development
waybar simple 2 layout addition and cleaned up helpfile
Diffstat (limited to 'config/waybar')
-rw-r--r--config/waybar/configs/config-left19
-rw-r--r--config/waybar/configs/config-right3
-rw-r--r--config/waybar/configs/config-simple227
-rw-r--r--config/waybar/modules82
-rw-r--r--config/waybar/style/style-simple.css83
5 files changed, 85 insertions, 129 deletions
diff --git a/config/waybar/configs/config-left b/config/waybar/configs/config-left
index bb718a06..b7bac1f6 100644
--- a/config/waybar/configs/config-left
+++ b/config/waybar/configs/config-left
@@ -14,20 +14,21 @@
//"gtk-layer-shell": true,
"modules-left": [
- "clock#vertical",
- "custom/light_dark",
+ "clock#vertical",
+ "custom/light_dark",
],
"modules-center": [
- "hyprland/workspaces",
+ "hyprland/workspaces",
],
"modules-right": [
- "tray",
- "backlight#vertical",
- "pulseaudio#microphone_vertical",
- "pulseaudio#vertical",
- "custom/power_vertical",
- "custom/menu",
+ "tray",
+ "network",
+ "backlight#vertical",
+ "pulseaudio#microphone_vertical",
+ "pulseaudio",
+ "custom/power_vertical",
+ "custom/menu",
],
}
diff --git a/config/waybar/configs/config-right b/config/waybar/configs/config-right
index 8a23eaa5..64a2c606 100644
--- a/config/waybar/configs/config-right
+++ b/config/waybar/configs/config-right
@@ -24,9 +24,10 @@
"modules-right": [
"tray",
+ "network",
"backlight#vertical",
"pulseaudio#microphone_vertical",
- "pulseaudio#vertical",
+ "pulseaudio",
"custom/power_vertical",
"custom/menu",
],
diff --git a/config/waybar/configs/config-simple2 b/config/waybar/configs/config-simple2
new file mode 100644
index 00000000..ca62a5af
--- /dev/null
+++ b/config/waybar/configs/config-simple2
@@ -0,0 +1,27 @@
+{
+"include": "~/.config/waybar/modules",
+"layer": "top",
+"position": "top",
+"width": 1050,
+"margin-bottom": 5,
+"margin-top": 5,
+
+"modules-left": [
+ "clock",
+ "custom/weather",
+ ],
+
+"modules-center": [
+ "hyprland/workspaces#2"
+ ],
+
+"modules-right": [
+ "custom/menu",
+ "tray",
+ "network",
+ "bluetooth",
+ "backlight",
+ "pulseaudio",
+ "battery",
+ "custom/power"],
+}
diff --git a/config/waybar/modules b/config/waybar/modules
index 99cb60d0..7ec2b2a3 100644
--- a/config/waybar/modules
+++ b/config/waybar/modules
@@ -3,8 +3,11 @@
"interval": 2,
"align": 0,
"rotate": 0,
- "format": "{icon} {percent}%",
- "format-icons": ["󰃞", "󰃟", "󰃠"],
+ //"format": "{icon} {percent}%",
+ //"format-icons": ["󰃞", "󰃟", "󰃠"],
+ "format": "{icon}",
+ "format-icons": ["󰛩", "󱩎", "󱩏", "󱩑", "󱩒", "󱩓", "󱩔", "󱩕", "󰛨"],
+ "tooltip-format": "{percent}%",
"icon-size": 10,
"on-click": "",
"on-click-middle": "",
@@ -75,8 +78,9 @@
},
"clock": {
+ "interval": 1,
//"format": " {:%I:%M %p}",
- "format": " {:%H:%M}",
+ "format": " {:%H:%M:%S}",
"format-alt": " {:%H:%M  %Y, %d %B, %A}",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
@@ -164,7 +168,20 @@
"on-scroll-up": "hyprctl dispatch workspace e+1",
"on-scroll-down": "hyprctl dispatch workspace e-1",
},
-
+
+"hyprland/workspaces#2": {
+ "format": "{icon}",
+ "on-click": "activate",
+ "on-scroll-up": "hyprctl dispatch workspace e+1",
+ "on-scroll-down": "hyprctl dispatch workspace e-1",
+ "format-icons": {
+ "active": "",
+ "default": "",
+ },
+ "active-only": false,
+ "all-outputs": true
+},
+
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
@@ -198,21 +215,22 @@
"network": {
"format": "{ifname}",
- "format-wifi": " {signalStrength}%",
- "format-ethernet": "󰈁 Wired",
- "format-disconnected": "", //An empty format will hide the module.
+ "format-wifi": "{icon}",
+ "format-ethernet": "󰌘",
+ "format-disconnected": "󰌙",
"tooltip-format": "{ipaddr}  {bandwidthUpBytes}  {bandwidthDownBytes}",
"format-linked": "󰈁 {ifname} (No IP)",
- "tooltip-format-wifi": "{essid}  ({signalStrength}%)",
- "tooltip-format-ethernet": "{ifname} 󰈁",
- "tooltip-format-disconnected": "󰈂 Disconnected",
+ "tooltip-format-wifi": "{essid} {icon} {signalStrength}%",
+ "tooltip-format-ethernet": "{ifname} 󰌘",
+ "tooltip-format-disconnected": "󰌙 Disconnected",
"max-length": 50,
+ "format-icons": ["󰤯","󰤟","󰤢","󰤥","󰤨"]
},
"pulseaudio": {
- "format": "{icon} {volume} %",
+ "format": "{icon}",
"format-bluetooth": "{icon}  {volume} %",
- "format-muted": "",
+ "format-muted": "󰖁",
"format-icons": {
"headphone": "",
"hands-free": "",
@@ -233,7 +251,7 @@
"pulseaudio#microphone": {
"format": "{format_source}",
- "format-source": " {volume} %",
+ "format-source": " {volume}%",
"format-source-muted": "",
"on-click": "~/.config/hypr/scripts/Volume.sh --toggle-mic",
"on-click-right": "pavucontrol -t 4",
@@ -315,6 +333,16 @@
"on-click-right": "$HOME/.config/hypr/scripts/ChangeLayoutMenu.sh",
"on-click-middle": "~/.config/hypr/scripts/Wallpaper.sh swaybg",
},
+
+"custom/playerctl": {
+ "format": "<span>{}</span>",
+ "return-type": "json",
+ "max-length": 35,
+ "exec": "playerctl -a metadata --format '{\"text\": \"{{artist}} ~ {{markup_escape(title)}}\", \"tooltip\": \"{{playerName}} : {{markup_escape(title)}}\", \"alt\": \"{{status}}\", \"class\": \"{{status}}\"}' -F",
+ "on-click-middle": "playerctl play-pause",
+ "on-click": "playerctl previous",
+ "on-click-right": "playerctl next"
+},
"custom/power": {
"format": "⏻ ",
@@ -372,7 +400,10 @@
"align": 0,
"rotate": 0,
"format": "{icon}",
- "format-icons": ["󰃞", "󰃟", "󰃠"],
+ "format-icons": ["󰛩", "󱩎", "󱩏", "󱩑", "󱩒", "󱩓", "󱩔", "󱩕", "󰛨"],
+ "tooltip-format": "{percent}%",
+ "icon-size": 10,
+ "on-update": "",
"icon-size": 10,
"on-click": "",
"on-click-middle": "",
@@ -384,7 +415,7 @@
},
"clock#vertical": {
- "format": "{:\n%H\n%M\n\n \n%d\n%m\n%y}",
+ "format": "{:\n%H\n%M\n%S\n\n \n%d\n%m\n%y}",
"interval": 1,
//"format": "{:\n%I\n%M\n%p\n\n \n%d\n%m\n%y}",
"tooltip": true,
@@ -413,27 +444,6 @@
"on-click-right": "foot --title btop sh -c 'btop'",
},
-"pulseaudio#vertical": {
- "format": "{icon}",
- "format-bluetooth": "\n{icon}",
- "format-bluetooth-muted": "\n󰖁",
- "format-muted": "󰖁",
- "format-icons": {
- "headphone": "󰋋",
- "hands-free": "󰋋",
- "headset": "󰋋",
- "phone": "",
- "portable": "",
- "car": "",
- "default": ["", "", "󰕾", ""],
- },
- "on-click-right": "pavucontrol",
- "on-click": "~/.config/hypr/scripts/Volume.sh --toggle",
- "on-scroll-up": "~/.config/hypr/scripts/Volume.sh --inc",
- "on-scroll-down": "~/.config/hypr/scripts/Volume.sh --dec",
- "tooltip": true,
-},
-
"pulseaudio#microphone_vertical": {
"format": "{format_source}",
"format-source": "󰍬",
diff --git a/config/waybar/style/style-simple.css b/config/waybar/style/style-simple.css
deleted file mode 100644
index 80c6441b..00000000
--- a/config/waybar/style/style-simple.css
+++ /dev/null
@@ -1,83 +0,0 @@
-*{
-font-family: "JetBrainsMono Nerd Font";
-font-weight: bold;
-min-height: 0;
-/* set font-size to 100% if font scaling is set to 1.00 using nwg-look */
-font-size: 98%;
-font-feature-settings: '"zero", "ss01", "ss02", "ss03", "ss04", "ss05", "cv31"';
-padding: 0px;
-margin-top: 1px;
-margin-bottom: 1px;
-}
-
-window#waybar {
- background: rgba(0, 0, 0, 0.7);
- border-radius: 10px;
-}
-window#waybar.empty {
- background-color: transparent;
-}
-window#waybar.empty #window {
- padding: 0px;
- margin: 0px;
- border: 0px;
- /* background-color: rgba(66,66,66,0.5); */ /* transparent */
- background-color: transparent;
-}
-
-#custom-menu, #workspaces {
- border-radius: 10px;
- /*background-color: #11111b;*/
- color: #b4befe;
- margin-right: 15px;
- padding-left: 10px;
- padding-right: 10px;
-}
-
-#workspaces button {
- /*background: #11111b;*/
- color: #b4befe;
-}
-
-
-#clock, #backlight, #pulseaudio, #bluetooth, #network, #battery {
- border-radius: 10px;
- /*background-color: #11111b;*/
- color: #cdd6f4;
- padding-left: 10px;
- padding-right: 10px;
- margin-right: 15px;
-}
-
-#backlight, #bluetooth {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- padding-right: 5px;
- margin-right: 0
-}
-
-#pulseaudio, #network {
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- padding-left: 5px;
-}
-
-#clock, #custom-light_dark {
- margin-right: 0;
-}
-
-@keyframes blink {
- to {
- color: #000000;
- }
-}
-
-#battery.critical:not(.charging) {
- background-color: #f38ba8;
- color: #f38ba8;
- animation-name: blink;
- animation-duration: 0.5s;
- animation-timing-function: linear;
- animation-iteration-count: infinite;
- animation-direction: alternate;
-} \ No newline at end of file
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage