diff --git a/hyprland.conf b/hyprland.conf index d3f4c0b..e518d5e 100644 --- a/hyprland.conf +++ b/hyprland.conf @@ -189,6 +189,7 @@ bind = $mainMod, X, fullscreen bind = $mainMod, L, exec, hyprlock bind = $mainMod, O, togglesplit, # Toggle split direction bind = $mainMod, P, exec, poweroff +bind = $mainMod, RETURN, exec, wlogout # App launcher bind = $mainMod, R, exec, $menu diff --git a/waybar/config b/waybar/config index fb5c70d..3326db7 100644 --- a/waybar/config +++ b/waybar/config @@ -5,7 +5,7 @@ "reload_style_on_change": true, "modules-left": ["hyprland/workspaces"], "modules-center": ["clock"], - "modules-right": ["group/expand","pulseaudio","bluetooth","network","custom/power-profile","battery"], + "modules-right": ["group/expand","pulseaudio","bluetooth","network","custom/power-profile","battery","custom/wlogout"], "hyprland/workspaces": { "format": "{name}", @@ -112,5 +112,10 @@ "temperature": { "critical-threshold": 80, "format": "" + }, + "custom/wlogout": { + "format": "⏻", + "tooltip": false, + "on-click": "wlogout" } } diff --git a/waybar/style.css b/waybar/style.css index ad3b7aa..fde3ba1 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -33,7 +33,7 @@ tooltip { background:@background; color: @color7; } -#pulseaudio:hover, #bluetooth:hover, #network:hover, #custom-power-profile:hover, #battery:hover, #cpu:hover, #memory:hover, #temperature:hover{ +#pulseaudio:hover, #bluetooth:hover, #network:hover, #custom-power-profile:hover, #battery:hover, #cpu:hover, #memory:hover, #temperature:hover, #custom-wlogout:hover{ transition: all .3s ease; color:@color9; } @@ -156,3 +156,10 @@ tooltip { text-shadow: 0px 0px 1.5px rgba(0, 0, 0, 1); } +#custom-wlogout{ + padding: 0px 3px; + margin-left: -2px; + font-size: 21px; + transition: all .3s ease; + color:@color7; +}