custom waybar

This commit is contained in:
Thomas
2024-08-01 13:48:26 +02:00
parent af35d24bdd
commit 7c0c865811
5 changed files with 66 additions and 15 deletions
+9 -3
View File
@@ -32,7 +32,7 @@ monitor=DP-3,3440x1440@144,auto,auto
# See https://wiki.hyprland.org/Configuring/Keywords/ # See https://wiki.hyprland.org/Configuring/Keywords/
# Set programs that you use # Set programs that you use
$terminal = gnome-terminal $terminal = kitty
$fileManager = nautilus $fileManager = nautilus
$menu = wofi --show drun $menu = wofi --show drun
@@ -48,6 +48,7 @@ $menu = wofi --show drun
# exec-once = nm-applet & # exec-once = nm-applet &
# exec-once = waybar & hyprpaper & firefox # exec-once = waybar & hyprpaper & firefox
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = flatpak run com.core447.StreamController exec-once = flatpak run com.core447.StreamController
exec-once = waybar & discord & ulauncher-toggle & openfortigui exec-once = waybar & discord & ulauncher-toggle & openfortigui
@@ -197,7 +198,8 @@ device {
# 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 = CTRL ALT, T, exec, kitty bind = CTRL ALT, T, exec, $terminal
bind = ALT, TAB, exec, rofi -show window -theme ~/.config/rofi/launchers/type-2/style-15.rasi
bind = , XF86Calculator, exec, gnome-calculator bind = , XF86Calculator, exec, gnome-calculator
bind = SUPER, space, exec, ~/.config/rofi/launchers/type-2/launcher.sh bind = SUPER, space, exec, ~/.config/rofi/launchers/type-2/launcher.sh
binde =, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ binde =, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
@@ -274,6 +276,10 @@ bindm = $mainMod, mouse:273, resizewindow
# windowrule = float, ^(kitty)$ # windowrule = float, ^(kitty)$
# Example windowrule v2 # Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ # windowrulev2 = float,class:(kitty),title:(kitty)
windowrulev2 = float,class:(org.gnome.Nautilus)
windowrulev2 = center, class:.*
windowrulev2 = size 1000 1000, class:.*
windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. windowrulev2 = suppressevent maximize, class:.* # You'll probably like this.
+1 -1
View File
@@ -27,7 +27,7 @@ window {
anchor: North East; anchor: North East;
fullscreen: false; fullscreen: false;
width: 120px; width: 120px;
x-offset: -240px; x-offset: -170px;
y-offset: 10px; y-offset: 10px;
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
+1 -1
View File
@@ -29,7 +29,7 @@ window {
fullscreen: false; fullscreen: false;
width: 115px; width: 115px;
x-offset: -20px; x-offset: -20px;
y-offset: 20px; y-offset: 10px;
/* properties for all widgets */ /* properties for all widgets */
enabled: true; enabled: true;
+32 -5
View File
@@ -3,9 +3,9 @@
"position": "top", // Waybar position (top|bottom|left|right) "position": "top", // Waybar position (top|bottom|left|right)
// "width": 1280, // Waybar width // "width": 1280, // Waybar width
// Choose the order of the modules // Choose the order of the modules
"modules-left": ["hyprland/workspaces"], "modules-left": ["hyprland/workspaces", "custom/music", "privacy"],
"modules-center": ["custom/music"], "modules-center": ["clock#date", "clock"],
"modules-right": ["pulseaudio", "custom/tomato", "clock", "tray", "custom/lock", "custom/power"], "modules-right": ["load", "custom/tomato", "pulseaudio", "tray", "custom/lock", "custom/power"],
"hyprland/workspaces": { "hyprland/workspaces": {
"disable-scroll": true, "disable-scroll": true,
"sort-by-name": true, "sort-by-name": true,
@@ -27,12 +27,39 @@
"on-click": "playerctl play-pause", "on-click": "playerctl play-pause",
"max-length": 50 "max-length": 50
}, },
"privacy": {
"icon-spacing": 4,
"icon-size": 18,
"transition-duration": 250,
"modules": [
{
"type": "screenshare",
"tooltip": false,
"tooltip-icon-size": 24
},
{
"type": "audio-in",
"tooltip": false,
"tooltip-icon-size": 24
}
]
},
"load": {
"interval": 1,
"format": " {load5}"
},
"clock": { "clock": {
"timezone": "Europe/Paris", "timezone": "Europe/Paris",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", "tooltip": false,
"format-alt": " {:%d/%m/%Y}",
"format": " {:%H:%M}" "format": " {:%H:%M}"
}, },
"clock#date": {
"timezone": "Europe/Paris",
"locale": "fr_FR.UTF-8",
"tooltip": false,
"format": "󰃭 {:L%A %d/%m/%Y}",
"on-click": "gnome-calendar"
},
"pulseaudio": { "pulseaudio": {
// "scroll-step": 1, // %, can be a float // "scroll-step": 1, // %, can be a float
"format": "{icon} {volume}%", "format": "{icon} {volume}%",
+23 -5
View File
@@ -7,7 +7,7 @@
} }
#waybar { #waybar {
background: transparent; background: @base;
color: @text; color: @text;
margin: 5px 5px; margin: 5px 5px;
} }
@@ -15,7 +15,7 @@
#workspaces { #workspaces {
border-radius: 1rem; border-radius: 1rem;
margin: 5px; margin: 5px;
background-color: @surface0; background-color: @mantle;
margin-left: 1rem; margin-left: 1rem;
padding-right: 0.2rem; padding-right: 0.2rem;
} }
@@ -36,15 +36,18 @@
border-radius: 1rem; border-radius: 1rem;
} }
#load,
#privacy,
#custom-music, #custom-music,
#tray, #tray,
#backlight, #backlight,
#clock, #clock,
#clock.date,
#custom-tomato, #custom-tomato,
#pulseaudio, #pulseaudio,
#custom-lock, #custom-lock,
#custom-power { #custom-power {
background-color: @surface0; background-color: @mantle;
padding: 0.5rem 1rem; padding: 0.5rem 1rem;
margin: 5px 0; margin: 5px 0;
} }
@@ -55,19 +58,34 @@
margin-right: 1rem; margin-right: 1rem;
} }
#clock.date {
border-radius: 1rem 0px 0px 1rem;
}
#load {
color: @peach;
border-radius: 1rem 0px 0px 1rem;
}
#privacy {
color: @mauve;
border-radius: 1rem;
}
#custom-tomato { #custom-tomato {
color: @yellow; color: @yellow;
} }
#pulseaudio { #pulseaudio {
color: @maroon; color: @maroon;
border-radius: 1rem 0px 0px 1rem; border-radius: 0px 1rem 1rem 0px;
margin-left: 1rem; margin-right: 1rem;
} }
#custom-music { #custom-music {
color: @green; color: @green;
border-radius: 1rem; border-radius: 1rem;
margin-right: 1rem;
} }
#custom-lock { #custom-lock {