From fdc18f40bc6d4c8b1a2b34a97960ed80372f4b75 Mon Sep 17 00:00:00 2001 From: "Matthieu Fortin [CPC/CCP]" Date: Wed, 16 Oct 2024 09:41:12 -0400 Subject: [PATCH] new hyprland config in hypr --- hypr/.config/hypr/README.md | 1 + hypr/.config/hypr/hypridle.conf | 27 +++ hypr/.config/hypr/hyprland.conf | 343 +++++++++++++++++++++++++++++++ hypr/.config/hypr/hyprlock.conf | 75 +++++++ hypr/.config/tofi/configA | 18 ++ hypr/.config/tofi/configV | 19 ++ hypr/.config/waybar/config.jsonc | 159 ++++++++++++++ hypr/.config/waybar/style.css | 123 +++++++++++ hypr/.config/wlogout/layout | 37 ++++ hypr/.config/wlogout/style.css | 88 ++++++++ 10 files changed, 890 insertions(+) create mode 100644 hypr/.config/hypr/README.md create mode 100644 hypr/.config/hypr/hypridle.conf create mode 100644 hypr/.config/hypr/hyprland.conf create mode 100644 hypr/.config/hypr/hyprlock.conf create mode 100644 hypr/.config/tofi/configA create mode 100644 hypr/.config/tofi/configV create mode 100644 hypr/.config/waybar/config.jsonc create mode 100644 hypr/.config/waybar/style.css create mode 100644 hypr/.config/wlogout/layout create mode 100644 hypr/.config/wlogout/style.css diff --git a/hypr/.config/hypr/README.md b/hypr/.config/hypr/README.md new file mode 100644 index 0000000..ad4dc0d --- /dev/null +++ b/hypr/.config/hypr/README.md @@ -0,0 +1 @@ +https://github.com/gaurav210233/simple-hyprland/ diff --git a/hypr/.config/hypr/hypridle.conf b/hypr/.config/hypr/hypridle.conf new file mode 100644 index 0000000..44ef46b --- /dev/null +++ b/hypr/.config/hypr/hypridle.conf @@ -0,0 +1,27 @@ +general { + lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. + before_sleep_cmd = loginctl lock-session # lock before suspend. + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. +} + +listener { + timeout = 60 # 1min. + on-timeout = brightnessctl -s set 5 # set monitor backlight to minimum, avoid 0 on OLED monitor. + on-resume = brightnessctl -r # monitor backlight restore. +} + +listener { + timeout = 300 # 5min + on-timeout = loginctl lock-session # lock screen when timeout has passed +} + +listener { + timeout = 600 # 10min + on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed + on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired. +} + +#listener { +# timeout = 900 # 30min +# on-timeout = systemctl suspend # suspend pc +#} diff --git a/hypr/.config/hypr/hyprland.conf b/hypr/.config/hypr/hyprland.conf new file mode 100644 index 0000000..2e5a132 --- /dev/null +++ b/hypr/.config/hypr/hyprland.conf @@ -0,0 +1,343 @@ + +# ####################################################################################### +# AUTOGENERATED HYPR CONFIG. +# PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT, +# OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS. +# ####################################################################################### + +# autogenerated = 1 # remove this line to remove the warning + +# This is an example Hyprland config file. +# Refer to the wiki for more information. +# https://wiki.hyprland.org/Configuring/Configuring-Hyprland/ + +# Please note not all available settings / options are set here. +# For a full list, see the wiki + +# You can split this configuration into multiple files +# Create your files separately and then link them to this file like this: +# source = ~/.config/hypr/myColors.conf + + +################ +### MONITORS ### +################ + +# See https://wiki.hyprland.org/Configuring/Monitors/ +monitor=,preferred,auto,1 + + +################### +### MY PROGRAMS ### +################### + +# See https://wiki.hyprland.org/Configuring/Keywords/ + +# Set programs that you use +$terminal = kitty +$fileManager = dolphin +#$menu = wofi --show drun +$menu = tofi-drun -c ~/.config/tofi/configA --drun-launch=true +$browser = librewolf +$editor = code +$editor-alt = nvim +$colorPicker = hyprpicker + + +################# +### AUTOSTART ### +################# + +# Autostart necessary processes (like notifications daemons, status bars, etc.) +# Or execute your favorite apps at launch like this: + +# exec-once = $terminal +# exec-once = nm-applet & +# exec-once = waybar & hyprpaper & firefox + +exec-once=wl-paste --type text --watch cliphist store # clipboard +exec-once=wl-paste --type image --watch cliphist store +exec-once=swaync +##exec-once=systemctl --user start plasma-polkit-agent +exec-once=/usr/lib/polkit-kde-authentication-agent-1 +exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP +exec-once=hypridle +exec-once=waybar + +############################# +### ENVIRONMENT VARIABLES ### +############################# + +# See https://wiki.hyprland.org/Configuring/Environment-variables/ + +env = XCURSOR_SIZE,24 +env = HYPRCURSOR_SIZE,24 + +# Firefox +# env = MOZ_ENABLE_WAYLAND,1 + +# Nvidia +env = LIBVA_DRIVER_NAME,nvidia +env = XDG_SESSION_TYPE,wayland +env = GBM_BACKEND,nvidia-drm +env = __GLX_VENDOR_LIBRARY_NAME,nvidia # remove if firefox crashes +env = NVD_BACKEND,direct +env = ELECTRON_OZONE_PLATFORM_HINT,auto + +# QT +env = QT_QPA_PLATFORM,wayland +env = QT_QPA_PLATFORMTHEME,qt5ct +env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 +env = QT_AUTO_SCREEN_SCALE_FACTOR,1 +env = QT_STYLE_OVERRIDE,kvantum + +# Toolkit Backend Variables +env = GDK_BACKEND,wayland,x11,* +env = SDL_VIDEODRIVER,wayland +env = CLUTTER_BACKEND,wayland + +# XDG Specifications +env = XDG_CURRENT_DESKTOP,Hyprland +env = XDG_SESSION_TYPE,wayland +env = XDG_SESSION_DESKTOP,Hyprland + +##################### +### LOOK AND FEEL ### +##################### + +# Refer to https://wiki.hyprland.org/Configuring/Variables/ + +# https://wiki.hyprland.org/Configuring/Variables/#general +general { + gaps_in = 5 + gaps_out = 5 + + border_size = 2 + + # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors + col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg + col.inactive_border = rgba(595959aa) + + # Set to true enable resizing windows by clicking and dragging on borders and gaps + resize_on_border = true + + # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on + allow_tearing = false + + layout = dwindle +} + +# https://wiki.hyprland.org/Configuring/Variables/#decoration +decoration { + rounding = 10 + + # Change transparency of focused and unfocused windows + active_opacity = 1.0 + inactive_opacity = 1.0 + + drop_shadow = true + shadow_range = 4 + shadow_render_power = 3 + col.shadow = rgba(1a1a1aee) + + # https://wiki.hyprland.org/Configuring/Variables/#blur + blur { + enabled = true + size = 3 + passes = 3 + new_optimizations = true + vibrancy = 0.1696 + ignore_opacity = true + } +} + +# https://wiki.hyprland.org/Configuring/Variables/#animations +animations { + enabled = true + + # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more + + bezier = myBezier, 0.05, 0.9, 0.1, 1.05 + + animation = windows, 1, 7, myBezier + animation = windowsOut, 1, 7, default, popin 80% + animation = border, 1, 10, default + animation = borderangle, 1, 8, default + animation = fade, 1, 7, default + animation = workspaces, 1, 6, default +} + +# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more +dwindle { + pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below + preserve_split = true # You probably want this +} + +# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more +master { + new_status = master +} + +# https://wiki.hyprland.org/Configuring/Variables/#misc +misc { + force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers + disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :( +} + + +############# +### INPUT ### +############# + +# https://wiki.hyprland.org/Configuring/Variables/#input +input { + kb_layout = us + kb_variant = + kb_model = + kb_options = + kb_rules = + + follow_mouse = 1 + + sensitivity = 0 # -1.0 - 1.0, 0 means no modification. + + touchpad { + natural_scroll = false + } +} + +# https://wiki.hyprland.org/Configuring/Variables/#gestures +gestures { + workspace_swipe = false +} + +# Example per-device config +# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more +device { + name = epic-mouse-v1 + sensitivity = -0.5 +} + + +################### +### KEYBINDINGS ### +################### + +# See https://wiki.hyprland.org/Configuring/Keywords/ +$mainMod = SUPER # Sets "Windows" key as main modifier + +# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more +bindd = $mainMod, return, Launch a terminal, exec, $terminal +bindd = $mainMod, B, Launch the default browser, exec, $browser +bindd = $mainMod, C, Launch Visual Studio Code, exec, $editor +bindd = $mainMod, N, Launch Neovim, exec, $editor-alt +bindd = $mainMod, Q, Kill active window, killactive, +bindd = $mainMod, M, Exit Hyprland, exit, +bindd = $mainMod, E, Launch the file manager, exec, $fileManager +bindd = $mainMod, W, Toggle floating, togglefloating, +bindd = $mainMod, space, Launch menu, exec, $menu +bind = $mainMod, P, pseudo, # dwindle +bind = $mainMod, J, togglesplit, # dwindle + +bindd = $mainMod, period, Launch the Emoji Picker, exec, jome -d | wl-copy #Emojipicker + clipboard copy + +bindd = $mainMod, V, Clipboard History, exec, cliphist list | tofi -c ~/.config/tofi/configV | cliphist decode | wl-copy + +# Move focus with mainMod + arrow keys +bind = $mainMod, left, movefocus, l +bind = $mainMod, right, movefocus, r +bind = $mainMod, up, movefocus, u +bind = $mainMod, down, movefocus, d + +# Switch workspaces with mainMod + [0-9] +bind = $mainMod, 1, workspace, 1 +bind = $mainMod, 2, workspace, 2 +bind = $mainMod, 3, workspace, 3 +bind = $mainMod, 4, workspace, 4 +bind = $mainMod, 5, workspace, 5 +bind = $mainMod, 6, workspace, 6 +bind = $mainMod, 7, workspace, 7 +bind = $mainMod, 8, workspace, 8 +bind = $mainMod, 9, workspace, 9 +bind = $mainMod, 0, workspace, 10 + +# Move active window to a workspace with mainMod + SHIFT + [0-9] +bind = $mainMod SHIFT, 1, movetoworkspace, 1 +bind = $mainMod SHIFT, 2, movetoworkspace, 2 +bind = $mainMod SHIFT, 3, movetoworkspace, 3 +bind = $mainMod SHIFT, 4, movetoworkspace, 4 +bind = $mainMod SHIFT, 5, movetoworkspace, 5 +bind = $mainMod SHIFT, 6, movetoworkspace, 6 +bind = $mainMod SHIFT, 7, movetoworkspace, 7 +bind = $mainMod SHIFT, 8, movetoworkspace, 8 +bind = $mainMod SHIFT, 9, movetoworkspace, 9 +bind = $mainMod SHIFT, 0, movetoworkspace, 10 + +# Example special workspace (scratchpad) +#bind = $mainMod, S, togglespecialworkspace, magic +bind = $mainMod SHIFT, S, movetoworkspace, special:magic + +# Scroll through existing workspaces with mainMod + scroll +bind = $mainMod, mouse_down, workspace, e+1 +bind = $mainMod, mouse_up, workspace, e-1 + +# Move/resize windows with mainMod + LMB/RMB and dragging +bindm = $mainMod, mouse:272, movewindow +bindm = $mainMod, mouse:273, resizewindow + +# Color picker +bindd = $mainMod, P, Color Picker, exec, $colorPicker | wl-copy + +# Screen locking +bindd = $mainMod, L, Lock the screen, exec, hyprlock + +# Logout +bindd = $mainMod, Escape, Session logout, exec, wlogout + +# Waybar +bindd = CTRL, Escape, Toggle waybar, exec, killall waybar || waybar + +# Screenshot + +bindd = , Print, Screenshot entire screen, exec, grimblast --notify copysave screen +bindd = $mainMod, Print, Screenshot active window, exec, grimblast --notify copysave active +bindd = $mainMod Alt, Print, Screenshot selected area, exec, grimblast --notify copysave area + +# Laptop multimedia keys for volume and LCD brightness +bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ +bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- +bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle +bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle +#bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+ +#bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%- + +# Requires playerctl +bindl = , XF86AudioNext, exec, playerctl next +bindl = , XF86AudioPause, exec, playerctl play-pause +bindl = , XF86AudioPlay, exec, playerctl play-pause +bindl = , XF86AudioPrev, exec, playerctl previous + +############################## +### WINDOWS AND WORKSPACES ### +############################## + +# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more +# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules + +# Example windowrule v1 +# windowrule = float, ^(kitty)$ + +# Example windowrule v2 +# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ + +# Ignore maximize requests from apps. You'll probably like this. +windowrulev2 = suppressevent maximize, class:.* + +# Fix some dragging issues with XWayland +windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 + +windowrule = float,^(jome)$ + +layerrule = ignorezero,wofi +layerrule = ignorezero,swaync +layerrule = blur,swaync diff --git a/hypr/.config/hypr/hyprlock.conf b/hypr/.config/hypr/hyprlock.conf new file mode 100644 index 0000000..407ab6a --- /dev/null +++ b/hypr/.config/hypr/hyprlock.conf @@ -0,0 +1,75 @@ +background { + monitor = + path = ~/.config/assets/backgrounds/cat_leaves_blurred.png # only png supported for now +} + +input-field { + monitor = + size = 200, 50 + outline_thickness = 3 + dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8 + dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0 + dots_center = true + dots_rounding = -1 # -1 default circle, -2 follow input-field rounding + outer_color = rgb(a6adc8) + inner_color = rgb(11111b) + font_color = rgb(a6adc8) + fade_on_empty = true + fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered. + placeholder_text = Input Password... # Text rendered in the input box when it's empty. + hide_input = false + rounding = -1 # -1 means complete rounding (circle/oval) + check_color = rgb(204, 136, 34) + fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color + fail_text = $FAIL ($ATTEMPTS) # can be set to empty + fail_transition = 100 # transition time in ms between normal outer_color and fail_color + capslock_color = -1 + numlock_color = -1 + bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above) + invert_numlock = false # change color if numlock is off + swap_font_color = false # see below + position = 0, -20 + halign = center + valign = center +} + +label { + monitor = + text = cmd[update:1000] echo "$TIME" + color = rgba(a6adc8) + font_size = 55 + font_family = Fira Semibold + position = -100, 40 + halign = right + valign = bottom + shadow_passes = 5 + shadow_size = 10 +} + +label { + monitor = + text = Hello + color = rgba(a6adc8) + font_size = 20 + font_family = Fira Semibold + position = -100, 160 + halign = right + valign = bottom + shadow_passes = 5 + shadow_size = 10 +} + +image { + monitor = + path = ~/.config/assets/backgrounds/cat_pacman.png + size = 280 # lesser side if not 1:1 ratio + rounding = -1 # negative values mean circle + border_size = 4 + border_color = rgb(a6adc8) + rotate = 0 # degrees, counter-clockwise + reload_time = -1 # seconds between reloading, 0 to reload with SIGUSR2 +# reload_cmd = # command to get new path. if empty, old path will be used. don't run "follow" commands like tail -F + position = 0, 200 + halign = center + valign = center +} diff --git a/hypr/.config/tofi/configA b/hypr/.config/tofi/configA new file mode 100644 index 0000000..bdff994 --- /dev/null +++ b/hypr/.config/tofi/configA @@ -0,0 +1,18 @@ +width = 100% +height = 100% +border-width = 0 +outline-width = 0 +padding-left = 33% +padding-top = 33% +result-spacing = 25 +num-results = 5 + +font = JetBrainsMono Nerd Font +font-size = 24 + +text-color = #4e4e5f + +prompt-text = " : " + +background-color = #11111bd9 +selection-color = #83A4E7 diff --git a/hypr/.config/tofi/configV b/hypr/.config/tofi/configV new file mode 100644 index 0000000..1cbc22d --- /dev/null +++ b/hypr/.config/tofi/configV @@ -0,0 +1,19 @@ +width = 100% +height = 100% +border-width = 0 +outline-width = 0 +padding-top = 33% +padding-left = 10% +padding-right = 10% +result-spacing = 25 +num-results = 5 + +font = JetBrainsMono Nerd Font +font-size = 24 + +text-color = #4e4e5f + +prompt-text = " : " + +background-color = #11111bd9 +selection-color = #83A4E7 diff --git a/hypr/.config/waybar/config.jsonc b/hypr/.config/waybar/config.jsonc new file mode 100644 index 0000000..abf284a --- /dev/null +++ b/hypr/.config/waybar/config.jsonc @@ -0,0 +1,159 @@ +{ + "layer": "top", + "position": "top", + "mode": "dock", + "exclusive": true, + "passthrough": false, + "gtk-layer-shell": true, + "height": 0, + "modules-left": [ + "clock", + "hyprland/workspaces" + ], + "modules-center": ["hyprland/window"], + "modules-right": [ + "tray", + "memory", + "cpu", + "network", +// "battery", +// "backlight", + "pulseaudio", + "pulseaudio#microphone" +// "wireplumber", +// "wireplumber#microphone" + ], + + "hyprland/window": { + "format": "󰣇 {}" + }, + + "hyprland/workspaces": { + "disable-scroll": true, + "all-outputs": true, + "on-click": "activate" + //"format": "{icon}", + }, + + "tray": { + "icon-size": 13, + "spacing": 10 + }, + + "clock": { + "format": "{:%A  %Y-%m-%d  %H:%M:%S %p}", + "interval": 1, + "rotate": 0, + "tooltip-format": "{calendar}", + "calendar": { + "mode": "month", + "mode-mon-col": 3, + "on-scroll": 1, + "on-click-right": "mode", + "format": { + "months": "{}", + "weekdays": "{}", + "today": "{}", + "days": "{}" + } + } + }, + +// "backlight": { +// "device": "intel_backlight", +// "format": "{icon} {percent}%", +// "format-icons": ["󰃞", "󰃟", "󰃠"], +// "on-scroll-up": "brightnessctl set 1%+", +// "on-scroll-down": "brightnessctl set 1%-", +// "min-length": 6 +// }, + +// "battery": { +// "states": { +// "good": 95, +// "warning": 30, +// "critical": 20 +// }, +// "format": "{icon} {capacity}%", +// "format-charging": " {capacity}%", +// "format-plugged": " {capacity}%", +// "format-alt": "{time} {icon}", +// "format-icons": ["󰂃", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"] +// }, + + "pulseaudio": { + "format": "{icon} {volume}%", + "tooltip": false, + "format-muted": " Muted", + "on-click": "pamixer -t", + "on-scroll-up": "pamixer -i 5", + "on-scroll-down": "pamixer -d 5", + "scroll-step": 5, + "max-volume": 100, + "format-icons": { + "headphone": "", + "hands-free": "", + "headset": "", + "phone": "", + "portable": "", + "car": "", + "default": ["","", "", ""] + } + }, + + "pulseaudio#microphone": { + "format": "{format_source}", + "format-source": " {volume}%", + "format-source-muted": " Muted", + "on-click": "pamixer --default-source -t", + "on-scroll-up": "pamixer --default-source -i 5", + "on-scroll-down": "pamixer --default-source -d 5", + "scroll-step": 5, + "max-volume": 100, + }, + + "memory": { + "states": { + "c": 90, // critical + "h": 60, // high + "m": 30 // medium + }, + "interval": 10, + "format": "󰾆 {used}GB", + "format-m": "󰾅 {used}GB", + "format-h": "󰓅 {used}GB", + "format-c": " {used}GB", + "format-alt": "󰾆 {percentage}%", + "max-length": 10, + "tooltip": true, + "tooltip-format": "󰾆 {percentage}%\n {used:0.1f}GB/{total:0.1f}GB" + }, + + "cpu": { + "interval": 1, + "format": "󰍛 {usage}%", + "format-alt": "{icon0}{icon1}{icon2}{icon3}{icon4}{icon5}{icon6}{icon7}", + "format-icons": [ + "", // green + "", // blue + "", // white + "", // white + "", // yellow + "", // yellow + "", // orange + "" // red + ] + }, + + "network": { + "tooltip": true, + "format-wifi": " {essid}", + "format-ethernet": "󰈀 ", + "tooltip-format": "Network: {essid}\nSignal strength: {signaldBm}dBm ({signalStrength}%)\nFrequency: {frequency}MHz\nInterface: {ifname}\nIP: {ipaddr}/{cidr}\nGateway: {gwaddr}\nNetmask: {netmask}", + "format-linked": "󰈀 {ifname} (No IP)", + "format-disconnected": "󰖪 ", + "tooltip-format-disconnected": "Disconnected", + "format-alt": " {bandwidthDownBytes}  {bandwidthUpBytes}", + "interval": 2 + } +} diff --git a/hypr/.config/waybar/style.css b/hypr/.config/waybar/style.css new file mode 100644 index 0000000..39b92f2 --- /dev/null +++ b/hypr/.config/waybar/style.css @@ -0,0 +1,123 @@ +* { + border: none; + border-radius: 0; + font-family: JetBrainsMono Nerd Font, monospace; + font-weight: bold; + font-size: 14px; + min-height: 0; +} + +window#waybar { + background: rgba(21, 18, 27, 0); + color: #cdd6f4; +} + +#workspaces button { + padding: 5px; + color: #555869; + margin-right: 5px; +} + +#workspaces button.active { + color: #a6adc8; +} + +#workspaces button.focused { + color: #a6adc8; + background: #eba0ac; + border-radius: 10px; +} + +#workspaces button.urgent { + color: #11111b; + background: #a6e3a1; + border-radius: 10px; +} + +#workspaces button:hover { + background: #cdd6f4; + color: #11111b; + border-radius: 10px; +} + +#window, +#clock, +#battery, +#pulseaudio, +#network, +#cpu, +#memory, +#workspaces, +#tray, +#backlight { + background: #1e1e2e; + padding: 0px 10px; + margin: 3px 0px; + margin-top: 5px; + /* border: 1px solid #181825; */ +} + +#backlight { + border-radius: 10px 0px 0px 10px; +} + +#tray { + border-radius: 10px; + margin-right: 10px; +} + +#workspaces { + background: #1e1e2e; + border-radius: 10px; + margin-left: 10px; + padding-right: 0px; + padding-left: 5px; +} + +#cpu { + border-radius: 0px 10px 10px 0px; + margin-right: 10px; +} + +#memory { + border-radius: 10px 0px 0px 10px; +} + +#window { + border-radius: 10px; + margin-left: 60px; + margin-right: 60px; +} + +#clock { + color: #a6adc8; + border-radius: 10px 10px 10px 10px; + margin-left: 5px; + border-right: 0px; +} + +#network { + color: #a6adc8; + border-radius: 10px 0px 0px 10px; + +} + +#pulseaudio { + color: #a6adc8; + border-left: 0px; + border-right: 0px; +} + +#pulseaudio.microphone { + color: #a6adc8; + border-radius: 0px 10px 10px 0px; + border-left: 0px; + border-right: 0px; + margin-right: 5px; +} + +#battery { + color:#a6adc8; + border-radius: 0px 10px 10px 0px; + margin-right: 10px; +} diff --git a/hypr/.config/wlogout/layout b/hypr/.config/wlogout/layout new file mode 100644 index 0000000..e59af32 --- /dev/null +++ b/hypr/.config/wlogout/layout @@ -0,0 +1,37 @@ +{ + "label" : "exit", + "action" : "", + "text" : "Exit", + "keybind" : "h" +} +{ + "label" : "shutdown", + "action" : "systemctl poweroff", + "text" : "Shutdown", + "keybind" : "s" +} + +{ + "label" : "suspend", + "action" : "systemctl suspend-then-hibernate", + "text" : "Suspend", + "keybind" : "u" +} +{ + "label" : "lock", + "action" : "hyprlock", + "text" : "Lock", + "keybind" : "l" +} +{ + "label" : "logout", + "action" : "hyprctl dispatch exit", + "text" : "Logout", + "keybind" : "e" +} +{ + "label" : "reboot", + "action" : "systemctl reboot", + "text" : "Reboot", + "keybind" : "r" +} diff --git a/hypr/.config/wlogout/style.css b/hypr/.config/wlogout/style.css new file mode 100644 index 0000000..9c851fb --- /dev/null +++ b/hypr/.config/wlogout/style.css @@ -0,0 +1,88 @@ +* { + font-family: JetBrains Mono, Symbols Nerd Font; + font-size: 24px; + transition-property: background-color; + transition-duration: 0.7s; +} + +window { + background-color: #11111b; + /* border-radius: 10px; */ +} + +button { + background-color: #11111b; + border-style: solid; + /* border-width: 2px; */ + border-radius: 50px; + background-repeat: no-repeat; + background-position: center; + background-size: 15%; + margin: 15px; +} + +button:active, +button:hover { + background-color: #cdd6f4; +} + +button:focus { + background-color: #cdd6f4; +} + +#lock { + background-image: image(url("/home/mfortin/.config/assets/wlogout/assets/lock.png"), url("/usr/share/wlogout/icons/lock.png")); +} + +#lock:hover { + background-image: image(url("/home/mfortin/.config/assets/wlogout/assets/lock-hover.png"), url("/usr/share/wlogout/icons/lock.png")); + color: #11111b; +} + +#logout { + background-image: image(url("/home/mfortin/.config/assets/wlogout/assets/logout.png"), url("/usr/share/wlogout/icons/logout.png")); +} + +#logout:hover { + background-image: image(url("/home/mfortin/.config/assets/wlogout/assets/logout-hover.png"), url("/usr/share/wlogout/icons/logout.png")); + color: #11111b; +} + +#suspend { + background-image: image(url("/home/mfortin/.config/assets/wlogout/assets/sleep.png"), url("/usr/share/wlogout/icons/suspend.png")); +} + +#suspend:hover { + background-image: image(url("/home/mfortin/.config/assets/wlogout/assets/sleep-hover.png"), url("/usr/share/wlogout/icons/suspend.png")); + color: #11111b; +} + +#shutdown { + background-image: image(url("/home/mfortin/.config/assets/logout/assets/power.png"), url("/usr/share/wlogout/icons/shutdown.png")); +} + +#shutdown:hover { + background-image: image(url("/home/mfortin/.config/assets/wlogout/assets/power-hover.png"), url("/usr/share/wlogout/icons/shutdown.png")); + color: #11111b; +} + +#reboot { + background-image: image(url("/home/mfortin/.config/assets/wlogout/assets/restart.png"), url("/usr/share/wlogout/icons/reboot.png")); +} + +#reboot:hover { + background-image: image(url("/home/mfortin/.config/assets/wlogout/assets/restart-hover.png"), url("/usr/share/wlogout/icons/reboot.png")); + color: #11111b; +} + +#exit { + background-image: image(url("/home/mfortin/.config/assets/wlogout/assets/restart.png"), url("/usr/share/wlogout/icons/reboot.png")); + background-color: #11111b; + +} + +#exit:hover { + background-image: image(url("/home/mfortin/.config/assets/wlogout/assets/restart-hover.png"), url("/usr/share/wlogout/icons/reboot.png")); + color: #11111b; + background-color: #cdd6f4; +} \ No newline at end of file