updated waybar and uswm for hyprland
This commit is contained in:
@@ -50,10 +50,10 @@ $menu = fuzzel
|
|||||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||||
# Or execute your favorite apps at launch like this:
|
# Or execute your favorite apps at launch like this:
|
||||||
|
|
||||||
exec-once = systemctl --user start hyprpolkitagent
|
exec-once = uwsm app -- waybar
|
||||||
exec-once = waybar & hyprpaper &
|
exec-once = uwsm app -- nm-applet
|
||||||
exec-once = nm-applet &
|
exec-once = uwsm app -- nextcloud --background
|
||||||
exec-once = nextcloud --background &
|
exec-once = uwsm app -- rclone mount google_drive: ~/gdrive
|
||||||
|
|
||||||
|
|
||||||
#############################
|
#############################
|
||||||
@@ -68,6 +68,7 @@ env = XCURSOR_SIZE,24
|
|||||||
env = XCURSOR_THEME,Bibata-Modern-Classic
|
env = XCURSOR_THEME,Bibata-Modern-Classic
|
||||||
env = XDG_CURRENT_DESKTOP,Hyprland
|
env = XDG_CURRENT_DESKTOP,Hyprland
|
||||||
env = debug:full_cm_proto=true
|
env = debug:full_cm_proto=true
|
||||||
|
env = QT_QPA_PLATFORMTHEME=qt6ct
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -236,6 +237,7 @@ gestures {
|
|||||||
# See https://wiki.hyprland.org/Configuring/Keywords/
|
# See https://wiki.hyprland.org/Configuring/Keywords/
|
||||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
$mainMod = SUPER # Sets "Windows" key as main modifier
|
||||||
|
|
||||||
|
bind = , PRINT, exec, gscreenshot -c -s
|
||||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||||
bind = $mainMod, RETURN, exec, $terminal
|
bind = $mainMod, RETURN, exec, $terminal
|
||||||
bind = $mainMod SHIFT, Q, killactive,
|
bind = $mainMod SHIFT, Q, killactive,
|
||||||
@@ -247,7 +249,6 @@ bind = $mainMod, F, fullscreen,
|
|||||||
bindr = $mainMod, SPACE, exec, $menu
|
bindr = $mainMod, SPACE, exec, $menu
|
||||||
bind = $mainMod, P, exec, ~/.config/hypr/scripts/powermenu.sh &
|
bind = $mainMod, P, exec, ~/.config/hypr/scripts/powermenu.sh &
|
||||||
# bind = $mainMod, J, togglesplit, # dwindle
|
# bind = $mainMod, J, togglesplit, # dwindle
|
||||||
bind = , PRINT, exec, gscreenshot -c -s
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
# Move focus with mainMod + arrow keys
|
||||||
bind = $mainMod, h, movefocus, l
|
bind = $mainMod, h, movefocus, l
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
preload = ~/Pictures/wallpaper.png
|
preload = ~/Pictures/red_moon-mocha.jpg
|
||||||
wallpaper = ,~/Pictures/wallpaper.png
|
wallpaper = ,~/Pictures/red_moon-mocha.jpg
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
[Default Applications]
|
[Default Applications]
|
||||||
application/pdf=org.pwmt.zathura-pdf-poppler.desktop
|
application/pdf=org.pwmt.zathura-pdf-poppler.desktop
|
||||||
|
image/jpeg=feh.desktop
|
||||||
|
|
||||||
[Added Associations]
|
[Added Associations]
|
||||||
application/pdf=org.pwmt.zathura-pdf-poppler.desktop;
|
application/pdf=org.pwmt.zathura-pdf-poppler.desktop;
|
||||||
|
image/jpeg=feh.desktop;
|
||||||
|
@@ -4,8 +4,8 @@
|
|||||||
"position": "top",
|
"position": "top",
|
||||||
"height": 35,
|
"height": 35,
|
||||||
"modules-left": ["hyprland/workspaces", "hyprland/window"],
|
"modules-left": ["hyprland/workspaces", "hyprland/window"],
|
||||||
"modules-center": ["clock"],
|
"modules-center": [],
|
||||||
"modules-right": ["tray", "pulseaudio", "network", "cpu", "memory", "custom/tlp", "battery", "custom/power"],
|
"modules-right": ["tray", "wireplumber", "network", "cpu", "memory", "custom/tlp", "battery", "clock", "custom/power"],
|
||||||
|
|
||||||
"hyprland/workspaces": {
|
"hyprland/workspaces": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
@@ -28,11 +28,25 @@
|
|||||||
"format": "MEM: {}%"
|
"format": "MEM: {}%"
|
||||||
},
|
},
|
||||||
"network": {
|
"network": {
|
||||||
"format-wifi": "{essid} ({signalStrength}): {ipaddr}",
|
"format-wifi": "{essid} ({signalStrength}%): {ipaddr}",
|
||||||
"format-ethernet": "{ifname}: {ipaddr}",
|
"format-ethernet": "{ifname}: {ipaddr}",
|
||||||
"format-disconnected": "Disconnected",
|
"format-disconnected": "Disconnected",
|
||||||
"tooltip-format": "{ifname} via {gwaddr}",
|
"tooltip-format": "{ifname} via {gwaddr}",
|
||||||
},
|
},
|
||||||
|
"wireplumber": {
|
||||||
|
"format": "{icon} {volume}%",
|
||||||
|
"format-bluetooth": "",
|
||||||
|
"nospacing": 1,
|
||||||
|
"tooltip-format": "Volume : {volume}%",
|
||||||
|
"format-muted": "",
|
||||||
|
"format-icons": {
|
||||||
|
"headphone": "",
|
||||||
|
"default": ["","",""]
|
||||||
|
},
|
||||||
|
"on-click": "pamixer -t",
|
||||||
|
"scroll-step": 1
|
||||||
|
},
|
||||||
|
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"format": "{icon} {volume}%",
|
"format": "{icon} {volume}%",
|
||||||
"format-muted": " Muted",
|
"format-muted": " Muted",
|
||||||
|
103
waybar/style.css
103
waybar/style.css
@@ -1,46 +1,87 @@
|
|||||||
|
|
||||||
/* ~/.config/waybar/style.css */
|
/* ~/.config/waybar/style.css */
|
||||||
@import "./catppuccin-waybar/themes/mocha.css";
|
@import "./catppuccin-waybar/themes/mocha.css";
|
||||||
|
|
||||||
* {
|
* {
|
||||||
font-family: "0xProto Nerd Font", FontAwesome, sans-serif;
|
border: none;
|
||||||
font-size: 14px;
|
border-radius: 0;
|
||||||
padding: 0 5px;
|
min-height: 0;
|
||||||
|
font-family: JetBrainsMono Nerd Font;
|
||||||
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
background-color: alpha(@base, 0.9);
|
background-color: alpha(@base, 0.6);
|
||||||
border-bottom: 3px solid @mauve;
|
margin-right: 10px;
|
||||||
|
transition-property: background-color;
|
||||||
|
transition-duration: 0.5s;
|
||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window#waybar.hidden {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
#workspaces {
|
#workspaces {
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 0 5px;
|
all: initial;
|
||||||
background-color: transparent;
|
/* Remove GTK theme values (waybar #1351) */
|
||||||
color: @surface2;
|
min-width: 0;
|
||||||
|
/* Fix weird spacing in materia (waybar #450) */
|
||||||
|
box-shadow: inset 0 -3px transparent;
|
||||||
|
/* Use box-shadow instead of border so the text isn't offset */
|
||||||
|
padding: 6px 18px;
|
||||||
|
margin: 6px 3px;
|
||||||
|
border-radius: 3px;
|
||||||
|
background-color: alpha(@base, 0.9);
|
||||||
|
color: @text;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.active {
|
#workspaces button.active {
|
||||||
color: @mauve;
|
color: @base;
|
||||||
border-bottom: 3px solid @pink;
|
background-color: @green;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button:hover {
|
#workspaces button:hover {
|
||||||
background: @surface0;
|
|
||||||
box-shadow: inherit;
|
box-shadow: inherit;
|
||||||
text-shadow: inherit;
|
text-shadow: inherit;
|
||||||
|
background-color: @teal;
|
||||||
|
color: @base;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.urgent {
|
||||||
|
background-color: @red;
|
||||||
|
color: @base;
|
||||||
|
}
|
||||||
|
|
||||||
|
#memory,
|
||||||
|
#cpu,
|
||||||
|
#custom-power,
|
||||||
|
#custom-tlp,
|
||||||
|
#battery,
|
||||||
|
#backlight,
|
||||||
|
#wireplumber,
|
||||||
|
#network,
|
||||||
|
#clock,
|
||||||
|
#tray {
|
||||||
|
border-radius: 4px;
|
||||||
|
margin: 6px 3px;
|
||||||
|
padding: 6px 12px;
|
||||||
|
background-color: @base;
|
||||||
|
color: @text;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-power {
|
#custom-power {
|
||||||
|
margin-right: 6px;
|
||||||
color: @red;
|
color: @red;
|
||||||
padding: 0 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-tlp {
|
#custom-tlp {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
|
padding-right: 5px;
|
||||||
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-tlp.ac {
|
#custom-tlp.ac {
|
||||||
@@ -55,6 +96,7 @@ window#waybar {
|
|||||||
color: @text;
|
color: @text;
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.charging, #battery.plugged {
|
#battery.charging, #battery.plugged {
|
||||||
@@ -79,3 +121,38 @@ window#waybar {
|
|||||||
color: @text;
|
color: @text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#memory,
|
||||||
|
#cpu {
|
||||||
|
color: @maroon;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#backlight {
|
||||||
|
color: @mauve;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wireplumber {
|
||||||
|
color: @mauve;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network {
|
||||||
|
color: @mauve;
|
||||||
|
padding-right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock {
|
||||||
|
font-family: JetBrainsMono Nerd Font;
|
||||||
|
color: @mauve;
|
||||||
|
}
|
||||||
|
|
||||||
|
tooltip {
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 15px;
|
||||||
|
background-color: @base;
|
||||||
|
}
|
||||||
|
|
||||||
|
tooltip label {
|
||||||
|
padding: 5px;
|
||||||
|
background-color: @base;
|
||||||
|
}
|
||||||
|
81
waybar/style.css.bak
Normal file
81
waybar/style.css.bak
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
/* ~/.config/waybar/style.css */
|
||||||
|
@import "./catppuccin-waybar/themes/mocha.css";
|
||||||
|
|
||||||
|
* {
|
||||||
|
font-family: "0xProto Nerd Font", FontAwesome, sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
window#waybar {
|
||||||
|
background-color: alpha(@base, 0.9);
|
||||||
|
border-bottom: 3px solid @mauve;
|
||||||
|
color: @text;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces {
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
padding: 0 5px;
|
||||||
|
background-color: transparent;
|
||||||
|
color: @surface2;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.active {
|
||||||
|
color: @mauve;
|
||||||
|
border-bottom: 3px solid @pink;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button:hover {
|
||||||
|
background: @surface0;
|
||||||
|
box-shadow: inherit;
|
||||||
|
text-shadow: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-power {
|
||||||
|
color: @red;
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-tlp {
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-tlp.ac {
|
||||||
|
color: @green; /* Catppuccin Green for AC power */
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-tlp.bat {
|
||||||
|
color: @yellow; /* Catppuccin Yellow for Battery power */
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery {
|
||||||
|
color: @text;
|
||||||
|
padding: 0 10px;
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.charging, #battery.plugged {
|
||||||
|
color: @green;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.warning {
|
||||||
|
color: @yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.critical {
|
||||||
|
color: @red;
|
||||||
|
animation-name: blink;
|
||||||
|
animation-duration: 0.8s;
|
||||||
|
animation-timing-function: linear;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
animation-direction: alternate;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes blink {
|
||||||
|
to {
|
||||||
|
color: @text;
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user