From 3be23e7c70e8ef597ade361b8d92a2d546e3b1e6 Mon Sep 17 00:00:00 2001 From: Luna Date: Tue, 1 Apr 2025 03:39:25 +0200 Subject: [PATCH] Hyprland --- .config/hypr/autostart.conf | 14 ++ .config/hypr/environment.conf | 6 + .config/hypr/hyprland.conf | 33 +++++ .config/hypr/input.conf | 29 +++++ .config/hypr/keybinds.conf | 80 ++++++++++++ .config/hypr/lookAndFeel.conf | 104 +++++++++++++++ .config/hypr/monitors.conf | 7 + .config/hypr/themes/catppuccin-mocha.conf | 77 +++++++++++ .config/hypr/themes/rose-pine-moon.conf | 19 +++ .config/hypr/variables.conf | 15 +++ .config/hypr/windowRules.conf | 17 +++ .config/hypr/workspaces.conf | 10 ++ .config/kitty/kitty.conf | 2 +- .config/waybar/config.jsonc | 105 +++++++++++++++ .config/waybar/modules.jsonc | 84 ++++++++++++ .config/waybar/power_menu.xml | 33 +++++ .config/waybar/style.css | 151 ++++++++++++++++++++++ .config/waybar/themes/rose-pine-moon.css | 23 ++++ .zshrc | 5 + Scripts/screenshot.sh | 20 +++ 20 files changed, 833 insertions(+), 1 deletion(-) create mode 100644 .config/hypr/autostart.conf create mode 100644 .config/hypr/environment.conf create mode 100644 .config/hypr/hyprland.conf create mode 100644 .config/hypr/input.conf create mode 100644 .config/hypr/keybinds.conf create mode 100644 .config/hypr/lookAndFeel.conf create mode 100644 .config/hypr/monitors.conf create mode 100644 .config/hypr/themes/catppuccin-mocha.conf create mode 100644 .config/hypr/themes/rose-pine-moon.conf create mode 100644 .config/hypr/variables.conf create mode 100644 .config/hypr/windowRules.conf create mode 100644 .config/hypr/workspaces.conf create mode 100644 .config/waybar/config.jsonc create mode 100644 .config/waybar/modules.jsonc create mode 100644 .config/waybar/power_menu.xml create mode 100644 .config/waybar/style.css create mode 100644 .config/waybar/themes/rose-pine-moon.css create mode 100755 Scripts/screenshot.sh diff --git a/.config/hypr/autostart.conf b/.config/hypr/autostart.conf new file mode 100644 index 0000000..bafd0d7 --- /dev/null +++ b/.config/hypr/autostart.conf @@ -0,0 +1,14 @@ +# Autostart necessary processes (like notifications daemons, status bars, etc.) +# Or execute your favorite apps at launch like this: + +exec-once = waybar +exec-once = swaync +exec-once = ulauncher +exec-once = systemctl --user start hyprpolkitagent + +exec-once = vesktop +exec-once = steam + +# exec-once = $terminal +# exec-once = nm-applet & +# exec-once = waybar & hyprpaper & firefox \ No newline at end of file diff --git a/.config/hypr/environment.conf b/.config/hypr/environment.conf new file mode 100644 index 0000000..0864892 --- /dev/null +++ b/.config/hypr/environment.conf @@ -0,0 +1,6 @@ +# See https://wiki.hyprland.org/Configuring/Environment-variables/ + +env = XCURSOR_THEME,RosePine +env = XCURSOR_SIZE,24 +env = HYPRCURSOR_THEME,RosePine +env = HYPRCURSOR_SIZE,24 \ No newline at end of file diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf new file mode 100644 index 0000000..7b45044 --- /dev/null +++ b/.config/hypr/hyprland.conf @@ -0,0 +1,33 @@ +# This is an example Hyprland config file. +# Refer to the wiki for more information. +# https://wiki.hyprland.org/Configuring/ + +# 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 + +#source = ~/.config/hypr/themes/catppuccin-mocha.conf +source = ~/.config/hypr/themes/rose-pine-moon.conf + +source = ~/.config/hypr/variables.conf + +source = ~/.config/hypr/monitors.conf + +source = ~/.config/hypr/workspaces.conf + +source = ~/.config/hypr/windowRules.conf + +source = ~/.config/hypr/autostart.conf + +source = ~/.config/hypr/environment.conf + +source = ~/.config/hypr/lookAndFeel.conf + +source = ~/.config/hypr/input.conf + +source = ~/.config/hypr/keybinds.conf + + diff --git a/.config/hypr/input.conf b/.config/hypr/input.conf new file mode 100644 index 0000000..13cb1b4 --- /dev/null +++ b/.config/hypr/input.conf @@ -0,0 +1,29 @@ +# https://wiki.hyprland.org/Configuring/Variables/#input +input { + kb_layout = us,se + kb_variant = + kb_model = + kb_options = grp:alt_space_toggle + kb_rules = + + follow_mouse = 1 + + sensitivity = 0 # -1.0 - 1.0, 0 means no modification. + numlock_by_default = true + + 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 +} \ No newline at end of file diff --git a/.config/hypr/keybinds.conf b/.config/hypr/keybinds.conf new file mode 100644 index 0000000..ac57a97 --- /dev/null +++ b/.config/hypr/keybinds.conf @@ -0,0 +1,80 @@ +# See https://wiki.hyprland.org/Configuring/Keywords/ + +bind = , Print, exec, ~/Scripts/screenshot.sh + +# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more +bind = $mod, return, exec, $terminal +bind = $mod, Q, killactive, +# bind = $mod, M, exit, +bind = $mod, E, exec, $fileManager +bind = $mod, space, togglefloating, +bind = $mod, D, exec, $menu +bind = $mod, P, pseudo, # dwindle +bind = $mod, J, togglesplit, # dwindle +bind = $mod SHIFT, R, exec, killall waybar && waybar & + +# Move focus with mod + arrow keys +bind = $mod, left, movefocus, l +bind = $mod, right, movefocus, r +bind = $mod, up, movefocus, u +bind = $mod, down, movefocus, d + +# Move window with mod + arrow keys +bind = $mod SHIFT, left, movewindow, l +bind = $mod SHIFT, right, movewindow, r +bind = $mod SHIFT, up, movewindow, u +bind = $mod SHIFT, down, movewindow, d + +# Switch workspaces with mod + [0-9] +bind = $mod, 1, workspace, 1 +bind = $mod, 2, workspace, 2 +bind = $mod, 3, workspace, 3 +bind = $mod, 4, workspace, 4 +bind = $mod, 5, workspace, 5 +bind = $mod, 6, workspace, 6 +bind = $mod, 7, workspace, 7 +bind = $mod, 8, workspace, 8 +bind = $mod, 9, workspace, 9 +bind = $mod, 0, workspace, 10 + +# Move active window to a workspace with mod + SHIFT + [0-9] +bind = $mod SHIFT, 1, movetoworkspace, 1 +bind = $mod SHIFT, 2, movetoworkspace, 2 +bind = $mod SHIFT, 3, movetoworkspace, 3 +bind = $mod SHIFT, 4, movetoworkspace, 4 +bind = $mod SHIFT, 5, movetoworkspace, 5 +bind = $mod SHIFT, 6, movetoworkspace, 6 +bind = $mod SHIFT, 7, movetoworkspace, 7 +bind = $mod SHIFT, 8, movetoworkspace, 8 +bind = $mod SHIFT, 9, movetoworkspace, 9 +bind = $mod SHIFT, 0, movetoworkspace, 10 + + + + + +# Example special workspace (scratchpad) +bind = $mod, S, togglespecialworkspace, magic +bind = $mod SHIFT, S, movetoworkspace, special:magic + +# Scroll through existing workspaces with mod + scroll +bind = $mod, mouse_down, workspace, e+1 +bind = $mod, mouse_up, workspace, e-1 + +# Move/resize windows with mod + LMB/RMB and dragging +bindm = $mod, mouse:272, movewindow +bindm = $mod, mouse:273, resizewindow + +# Laptop multimedia keys for volume and LCD brightness +bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @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 \ No newline at end of file diff --git a/.config/hypr/lookAndFeel.conf b/.config/hypr/lookAndFeel.conf new file mode 100644 index 0000000..6f4e132 --- /dev/null +++ b/.config/hypr/lookAndFeel.conf @@ -0,0 +1,104 @@ +# Refer to https://wiki.hyprland.org/Configuring/Variables/ + +# https://wiki.hyprland.org/Configuring/Variables/#general +general { + gaps_in = 4 + gaps_out = 10 + + border_size = 2 + + # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors + col.active_border = $rose $pine $love $iris 90deg + col.inactive_border = $muted + + # Set to true enable resizing windows by clicking and dragging on borders and gaps + resize_on_border = false + + # 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 + rounding_power = 2 + + # Change transparency of focused and unfocused windows + active_opacity = 1.0 + inactive_opacity = 1.0 + + shadow { + enabled = true + range = 4 + render_power = 3 + color = rgba(1a1a1aee) + } + + # https://wiki.hyprland.org/Configuring/Variables/#blur + blur { + enabled = true + size = 3 + passes = 1 + + vibrancy = 0.1696 + } +} + +# https://wiki.hyprland.org/Configuring/Variables/#animations +animations { + enabled = yes, please :) + + # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more + + bezier = easeOutQuint,0.23,1,0.32,1 + bezier = easeInOutCubic,0.65,0.05,0.36,1 + bezier = linear,0,0,1,1 + bezier = almostLinear,0.5,0.5,0.75,1.0 + bezier = quick,0.15,0,0.1,1 + + animation = global, 1, 10, default + animation = border, 1, 5.39, easeOutQuint + animation = windows, 1, 4.79, easeOutQuint + animation = windowsIn, 1, 4.1, easeOutQuint, popin 87% + animation = windowsOut, 1, 1.49, linear, popin 87% + animation = fadeIn, 1, 1.73, almostLinear + animation = fadeOut, 1, 1.46, almostLinear + animation = fade, 1, 3.03, quick + animation = layers, 1, 3.81, easeOutQuint + animation = layersIn, 1, 4, easeOutQuint, fade + animation = layersOut, 1, 1.5, linear, fade + animation = fadeLayersIn, 1, 1.79, almostLinear + animation = fadeLayersOut, 1, 1.39, almostLinear + animation = workspaces, 1, 1.94, almostLinear, fade + animation = workspacesIn, 1, 1.21, almostLinear, fade + animation = workspacesOut, 1, 1.94, almostLinear, fade +} + +# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/ +# "Smart gaps" / "No gaps when only" +# uncomment all if you wish to use that. +# workspace = w[tv1], gapsout:0, gapsin:0 +# workspace = f[1], gapsout:0, gapsin:0 +# windowrule = bordersize 0, floating:0, onworkspace:w[tv1] +# windowrule = rounding 0, floating:0, onworkspace:w[tv1] +# windowrule = bordersize 0, floating:0, onworkspace:f[1] +# windowrule = rounding 0, floating:0, onworkspace:f[1] + +# 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. :( +} \ No newline at end of file diff --git a/.config/hypr/monitors.conf b/.config/hypr/monitors.conf new file mode 100644 index 0000000..758d145 --- /dev/null +++ b/.config/hypr/monitors.conf @@ -0,0 +1,7 @@ +# See https://wiki.hyprland.org/Configuring/Monitors/ +#monitor=,preferred,auto,auto +monitor = $vr, disable +monitor = $tv, 1920x1080, 166x0, 1 +monitor = $leftMon, 2560x1440@144, 0x1080, 1 +monitor = $middleMon, 2560x1440@188, 2560x1080, 1 +monitor = $rightMon, 2560x1440@60, 5120x1080, 1 \ No newline at end of file diff --git a/.config/hypr/themes/catppuccin-mocha.conf b/.config/hypr/themes/catppuccin-mocha.conf new file mode 100644 index 0000000..84a9392 --- /dev/null +++ b/.config/hypr/themes/catppuccin-mocha.conf @@ -0,0 +1,77 @@ +$rosewater = rgb(f5e0dc) +$rosewaterAlpha = f5e0dc + +$flamingo = rgb(f2cdcd) +$flamingoAlpha = f2cdcd + +$pink = rgb(f5c2e7) +$pinkAlpha = f5c2e7 + +$mauve = rgb(cba6f7) +$mauveAlpha = cba6f7 + +$red = rgb(f38ba8) +$redAlpha = f38ba8 + +$maroon = rgb(eba0ac) +$maroonAlpha = eba0ac + +$peach = rgb(fab387) +$peachAlpha = fab387 + +$yellow = rgb(f9e2af) +$yellowAlpha = f9e2af + +$green = rgb(a6e3a1) +$greenAlpha = a6e3a1 + +$teal = rgb(94e2d5) +$tealAlpha = 94e2d5 + +$sky = rgb(89dceb) +$skyAlpha = 89dceb + +$sapphire = rgb(74c7ec) +$sapphireAlpha = 74c7ec + +$blue = rgb(89b4fa) +$blueAlpha = 89b4fa + +$lavender = rgb(b4befe) +$lavenderAlpha = b4befe + +$text = rgb(cdd6f4) +$textAlpha = cdd6f4 + +$subtext1 = rgb(bac2de) +$subtext1Alpha = bac2de + +$subtext0 = rgb(a6adc8) +$subtext0Alpha = a6adc8 + +$overlay2 = rgb(9399b2) +$overlay2Alpha = 9399b2 + +$overlay1 = rgb(7f849c) +$overlay1Alpha = 7f849c + +$overlay0 = rgb(6c7086) +$overlay0Alpha = 6c7086 + +$surface2 = rgb(585b70) +$surface2Alpha = 585b70 + +$surface1 = rgb(45475a) +$surface1Alpha = 45475a + +$surface0 = rgb(313244) +$surface0Alpha = 313244 + +$base = rgb(1e1e2e) +$baseAlpha = 1e1e2e + +$mantle = rgb(181825) +$mantleAlpha = 181825 + +$crust = rgb(11111b) +$crustAlpha = 11111b \ No newline at end of file diff --git a/.config/hypr/themes/rose-pine-moon.conf b/.config/hypr/themes/rose-pine-moon.conf new file mode 100644 index 0000000..ed2267a --- /dev/null +++ b/.config/hypr/themes/rose-pine-moon.conf @@ -0,0 +1,19 @@ +# name: Rosé Pine Moon +# author: jishnurajendran +# upstream: https://github.com/jishnurajendran/hyprland-rosepine/blob/main/rose-pine-moon.conf +# All natural pine, faux fur and a bit of soho vibes for the classy minimalist +$base = 0xff232136 +$surface = 0xff2a273f +$overlay = 0xff393552 +$muted = 0xff6e6a86 +$subtle = 0xff908caa +$text = 0xffe0def4 +$love = 0xffeb6f92 +$gold = 0xfff6c177 +$rose = 0xffea9a97 +$pine = 0xff3e8fb0 +$foam = 0xff9ccfd8 +$iris = 0xffc4a7e7 +$highlightLow = 0xff2a283e +$highlightMed = 0xff44415a +$highlightHigh = 0xff56526e \ No newline at end of file diff --git a/.config/hypr/variables.conf b/.config/hypr/variables.conf new file mode 100644 index 0000000..bdf9a37 --- /dev/null +++ b/.config/hypr/variables.conf @@ -0,0 +1,15 @@ +# See https://wiki.hyprland.org/Configuring/Keywords/ + +$mod = SUPER # Sets "Windows" key as main modifier + +# Set programs that you use +$terminal = kitty +$fileManager = dolphin +# $menu = wofi --show drun +$menu = ulauncher + +$vr = DP-2 +$tv = HDMI-A-3 +$leftMon = HDMI-A-2 +$middleMon = DP-1 +$rightMon = HDMI-A-1 \ No newline at end of file diff --git a/.config/hypr/windowRules.conf b/.config/hypr/windowRules.conf new file mode 100644 index 0000000..f1e7899 --- /dev/null +++ b/.config/hypr/windowRules.conf @@ -0,0 +1,17 @@ +# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more +# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules + +windowrule = workspace 8, class:vesktop +windowrule = float, class:vesktop +windowrule = size 43% 1380, class:vesktop +windowrule = move 100%-w-10, class:vesktop +windowrule = noinitialfocus, class:vesktop + +windowrule = workspace 4, class:steam +windowrule = noinitialfocus, class:steam + +# Ignore maximize requests from apps. You'll probably like this. +windowrule = suppressevent maximize, class:.* + +# Fix some dragging issues with XWayland +windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0 diff --git a/.config/hypr/workspaces.conf b/.config/hypr/workspaces.conf new file mode 100644 index 0000000..b8a1bfc --- /dev/null +++ b/.config/hypr/workspaces.conf @@ -0,0 +1,10 @@ +workspace = 1, monitor:$middleMon, persistent:true, default:true +workspace = 2, monitor:$middleMon, persistent:true +workspace = 3, monitor:$middleMon, persistent:true +workspace = 4, monitor:$middleMon, persistent:true +workspace = 5, monitor:$rightMon, persistent:true, default:true +workspace = 6, monitor:$rightMon, persistent:true +workspace = 7, monitor:$rightMon, persistent:true +workspace = 8, monitor:$leftMon, persistent:true, default:true +workspace = 9, monitor:$leftMon, persistent:true +workspace = 10, monitor:$tv, persistent:true, default:true \ No newline at end of file diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index 2bf48ef..75e283f 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -1,4 +1,4 @@ -include ./themes/ayu.conf +include ./themes/rose-pine-moon.conf background_opacity 0.95 diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc new file mode 100644 index 0000000..427f9eb --- /dev/null +++ b/.config/waybar/config.jsonc @@ -0,0 +1,105 @@ +{ + "layer": "top", + + "modules-left": ["hyprland/workspaces"], + + "modules-center": ["hyprland/window"], + + "modules-right": [ + "tray", + "cpu", + "memory", + "clock", + "pulseaudio", + "hyprland/language", + "custom/power" + ], + + "hyprland/workspaces": { + "format": "{}", + "active-only": false, + "sort-by-number": true, + "on-click": "activate", + "all-outputs": false + }, + + "hyprland/window": { + "format": "{title}", + "max-length": 333, + "seperate-outputs": true + }, + + "hyprland/language": { + "format": " {}", + "format-en": "Merica", + "format-se": "Swedish" + }, + + "tray": { + "format": "{icon}", + "icon-size": 14, + "spacing": 5 + }, + + "clock": { + "format": " {:%I:%M %a %d}", + "tooltip-format": "{calendar}", + "calendar": { + "mode": "month", + "mode-mon-col": 3, + "on-scroll": 1, + "on-click-right": "mode", + "format": { + "months": "{}", + "days": "{}", + "weeks": "{%W}", + "weekdays": "{}", + "today": "{}" + } + }, + "actions": { + "on-click-middle": "mode", + "on-click-right": "shift_up", + "on-click": "shift_down" + } + /*"format-alt": "{:%H:%M}"*/ + }, + + "cpu": { + "format": " {usage}%" + }, + + "memory": { + "format": " {}%", + "interval": 1 + }, + + "pulseaudio": { + "format": "{icon} {volume}% {format_source}", + "format-muted": "󰖁 {format_source}", + "format-source": " {volume}%", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "phone": "", + "portable": "", + "default": ["", "", ""] + }, + "on-click-left": "pavucontrol", + "input": true + }, + + "custom/power": { + "format": "", + "tooltip": false, + "menu": "on-click", + "menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder + "menu-actions": { + "logout": "hyprctl dispatch exit", + "shutdown": "shutdown", + "reboot": "reboot", + "suspend": "systemctl suspend", + "hibernate": "systemctl hibernate" + } + } +} diff --git a/.config/waybar/modules.jsonc b/.config/waybar/modules.jsonc new file mode 100644 index 0000000..d5e26b4 --- /dev/null +++ b/.config/waybar/modules.jsonc @@ -0,0 +1,84 @@ +{ + "hyprland/workspaces": { + "format": "{}", + "active-only": false, + "sort-by-number": true, + "on-click": "activate", + "all-outputs": false + }, + + "hyprland/window": { + "format": "{title}", + "max-length": 333, + "seperate-outputs": true + }, + + "tray": { + "format": "{icon}", + "icon-size": 14, + "spacing": 5 + }, + + "clock": { + "format": "{:%I:%M %a %d}", + "tooltip-format": "{calendar}", + "calendar": { + "mode": "month", + "mode-mon-col": 3, + "on-scroll": 1, + "on-click-right": "mode", + "format": { + "months": "{}", + "days": "{}", + "weeks": "{%W}", + "weekdays": "{}", + "today": "{}" + } + }, + "actions": { + "on-click-middle": "mode", + "on-click-right": "shift_up", + "on-click": "shift_down" + } + /*"format-alt": "{:%H:%M}"*/ + }, + + "cpu": { + "format": " {usage}%" + }, + + "memory": { + "format": " {}%", + "interval": 1 + }, + + "pulseaudio": { + "format": "{icon} {volume}% {format_source}", + "format-bluetooth": "{icon} {volume}% {format_source}", + "format-bluetooth-muted": "󰖁 {format_source}", + "format-muted": "󰖁 {format_source}", + "format-source": " {volume}%", + "format-source-muted": "", + "format-icons": { + "headphone": "", + "phone": "", + "portable": "", + "default": ["", "", ""] + }, + "on-click-left": "pavucontrol", + "input": true + }, + + "custom/power": { + "format": "⏻ ", + "tooltip": false, + "menu": "on-click", + "menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder + "menu-actions": { + "shutdown": "shutdown", + "reboot": "reboot", + "suspend": "systemctl suspend", + "hibernate": "systemctl hibernate" + } + } +} diff --git a/.config/waybar/power_menu.xml b/.config/waybar/power_menu.xml new file mode 100644 index 0000000..3b7c695 --- /dev/null +++ b/.config/waybar/power_menu.xml @@ -0,0 +1,33 @@ + + + + + + Suspend + + + + + Logout + + + + + Hibernate + + + + + Shutdown + + + + + + + + Reboot + + + + \ No newline at end of file diff --git a/.config/waybar/style.css b/.config/waybar/style.css new file mode 100644 index 0000000..8f358e7 --- /dev/null +++ b/.config/waybar/style.css @@ -0,0 +1,151 @@ +@import "./themes/rose-pine-moon.css"; + +* { + min-height: 0; + margin: 0; + padding: 0; + border-radius: 7px; + font-family: "JetBrains Mono Nerd Font"; + font-size: 10pt; + font-weight: 700; + padding-bottom: 0px; +} + +tooltip { + background: @base; + border-radius: 7px; + border: 2px solid @overlay; +} + +#window { + margin: 5px 5px 2px 5px; + padding-left: 10px; + padding-right: 7px; + border-radius: 3px; + border-bottom: 2px solid @overlay; + border-right: 2px solid @overlay; + border-color: @overlay; + background-color: @base; + color: @foam; +} + +window#waybar.empty #window { + background-color: transparent; + border-bottom: none; + border-right: none; +} + +window#waybar { + background-color: transparent; + color: @iris; +} + +/* Workspaces */ +@keyframes button_activate { + from { + opacity: 0.3; + } + to { + opacity: 1; + } +} + +#workspaces { + margin: 5px 5px 2px 5px; + border-radius: 3px; + padding: 1px; + background-color: @base; + color: @text; +} + +#workspaces button { + margin: 5px 2px 5px 2px; + border-radius: 3px; + padding-left: 9px; + padding-right: 9px; + background-color: @base; + color: @iris; +} + +#workspaces button.active { + background-color: @rose; + color: @base; + /*color: @bg;*/ +} + +#workspaces button.urgent { + color: @love; +} + +#workspaces button:hover { + border: solid transparent; + background-color: @highlightMed; +} + +#tray { + margin: 5px 5px 2px 5px; + border-radius: 3px; + padding-left: 10px; + padding-right: 10px; + background-color: @base; + color: @foam; +} + +#cpu, +#memory { + margin: 5px 5px 2px 5px; + padding-left: 10px; + padding-right: 10px; + border-radius: 3px; + background-color: @base; + color: @rose; +} + +#pulseaudio { + margin-top: 5px; + margin-bottom: 2px; + border-top-right-radius: 0px; + border-bottom-right-radius: 0px; + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; + background-color: @base; + color: @iris; +} + +#pulseaudio { + margin-right: 0px; + margin-left: 5px; + padding-left: 10px; + padding-right: 7.5px; + border-top-right-radius: 0px; + border-bottom-right-radius: 0px; + border-top-left-radius: 3px; + border-bottom-left-radius: 3px; +} + +#clock { + margin: 5px 5px 2px 5px; + padding-left: 10px; + padding-right: 10px; + border-radius: 3px; + background-color: @base; + color: @gold; +} + +#custom-power { + margin: 5px 5px 2px 5px; + padding-left: 10px; + padding-right: 10px; + border-radius: 3px; + background-color: @base; + color: @text; +} + +#language { + margin: 5px 5px 2px 5px; + padding-left: 10px; + padding-right: 10px; + border-radius: 3px; + background-color: @base; + color: @foam; +} diff --git a/.config/waybar/themes/rose-pine-moon.css b/.config/waybar/themes/rose-pine-moon.css new file mode 100644 index 0000000..9cf8d2a --- /dev/null +++ b/.config/waybar/themes/rose-pine-moon.css @@ -0,0 +1,23 @@ +/* +* Variant: Rosé Pine Moon +* Maintainer: DankChoir +*/ + +@define-color base #232136; +@define-color surface #2a273f; +@define-color overlay #393552; + +@define-color muted #6e6a86; +@define-color subtle #908caa; +@define-color text #e0def4; + +@define-color love #eb6f92; +@define-color gold #f6c177; +@define-color rose #ea9a97; +@define-color pine #3e8fb0; +@define-color foam #9ccfd8; +@define-color iris #c4a7e7; + +@define-color highlightLow #2a283e; +@define-color highlightMed #44415a; +@define-color highlightHigh #56526e; diff --git a/.zshrc b/.zshrc index 051ca9a..3e4d9d5 100644 --- a/.zshrc +++ b/.zshrc @@ -84,16 +84,21 @@ alias npm='pnpm' alias npx='pnpm dlx' alias zed='zeditor' +#alias cd='cd ~/myHome' + alias chall='~/Scripts/challenges.sh' alias backup='~/Scripts/backup.sh' alias brew='echo "Remeber what happened last time. You do not want to do that."' +alias ustow='export CURRENT_PATH=$(pwd) && cd ~/myHome/Dotfiles && stow -t /home/luna . && cd $CURRENT_PATH' + # Paths PATH="$HOME/.npm-packages/bin:$PATH" PATH="$HOME/.bun/bin:$PATH" PATH="$HOME/.local/bin:$PATH" PATH="/usr/local/go/bin:$PATH" +PATH="$HOME/go/bin:$PATH" # pnpm export PNPM_HOME="/home/luna/.local/share/pnpm" diff --git a/Scripts/screenshot.sh b/Scripts/screenshot.sh new file mode 100755 index 0000000..2b60ba8 --- /dev/null +++ b/Scripts/screenshot.sh @@ -0,0 +1,20 @@ +screenshotName="$(date +%Y%m%d_%H%m%s)" +screenshotDir="$HOME/myHome/Pictures/Screenshots" + +hyprctl keyword animation "fadeOut, 0, 0, default" + +grimblast --freeze save area "${screenshotDir}/$screenshotName.png" + +swappy -f "${screenshotDir}/$screenshotName.png" -o "${screenshotDir}/$screenshotName-Swappy.png" + +hyprctl keyword animation "fadeOut, 1, 4, default" + + +# WITHOUT SWAPPY +# screenshotName="$(date +%Y%m%d_%H%m%s)" + +# hyprctl keyword animation "fadeOut, 0, 0, default" + +# grimblast --freeze copysave area "${screenshotDir}/$screenshotName.png" + +# hyprctl keyword animation "fadeOut, 1, 4, default" \ No newline at end of file