repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

hypr: switch to nugu lua desktop setup

ad85232aa9af74f746e134f089dc148e40312d96

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (49)

enable_user_services.nu

Modified
8 8 [pueued pueued pueued.service]
9 9 [hypridle hypridle hypridle.service]
10 10 [hyprsunset hyprsunset hyprsunset.service]
11 - [hyprpolkitagent hyprpolkitagent hyprpolkitagent.service]
11 + [hyprpolkitagent /usr/lib/hyprpolkitagent/hyprpolkitagent hyprpolkitagent.service]
12 12 [mako mako mako.service]
13 + [cliphist cliphist cliphist.service]
14 + [wl-clip-persist wl-clip-persist wl-clip-persist.service]
15 + [nugu-theme nu nugu-theme.service]
16 + [ironbar ironbar ironbar.service]
15 19 $services | each { | service |
16 20 let name = $service.0
17 21 let binary = $service.1
18 22 let service_name = $service.2
19 - if (which $binary | is-not-empty) {
23 + let found = if ($binary | str starts-with "/") { $binary | path exists } else { which $binary | is-not-empty }
24 + if $found {
20 25 print $"Found program ($name). Enabling service now."
21 26 systemctl --user enable --now $service_name
22 27 null

eww/eww.scss

Deleted
deleted file mode 100644
1 -/* EWW Stylesheet */
2 -/* See: https://github.com/elkowar/eww */
3 -/* ~/.config/eww/eww.scss */
5 -$background: #2e3440;
6 -$foreground: #eceff4;
7 -$accent: #88c0d0;
8 -$inactive: #4c566a;
10 -.tray {
11 - background: $background;
12 - padding: 8px;
13 - border-radius: 8px;
14 -}
16 -.clock, .network, .wezterm, .workspaces, .window, .cpu, .memory, .disk {
17 - color: $foreground;
18 - font-family: Monaspace Neon Var;
19 - font-size: 12px;
20 - margin: 0 8px;
21 -}
23 -.wezterm {
24 - padding: 4px 8px;
25 -}
27 -.wezterm:hover, .volume:hover, .brightness:hover {
28 - background: $accent;
29 - color: $background;
30 - border-radius: 4px;
31 -}
33 -.workspaces .active {
34 - color: $accent;
35 -}

eww/eww.yuck

Deleted
deleted file mode 100644
1 -;; EWW Configuration
2 -;; See: https://github.com/elkowar/eww
3 -;; ~/.config/eww/eww.yuck
5 -(defwindow tray
6 - :monitor 0
7 - :geometry (
8 - geometry :x "8px"
9 - :y "8px"
10 - :height "32px"
11 - :anchor "top center"
12 - )
13 - :stacking "bg"
14 - :windowtype "dock"
15 - :exclusive true
16 - (box :class "tray" :orientation "h" :space-evenly false
17 - (label :class "workspaces" :text "${workspaces}")
18 - (label :class "window" :text "${window}")
19 - (label :class "cpu" :text "󰍛 ${cpu}%")
20 - (label :class "memory" :text "󰘚 ${memory}%")
21 - (label :class "disk" :text "󰋊 ${disk}%")
22 - (label :class "network" :text "󰖩 ${network}")
23 - (label :class "clock" :text "󰔛 ${time}")
24 - )
25 -)
27 -(defpoll time :interval "60s" `date +%H:%M`)
28 -(defpoll network :interval "60s" `nmcli -t -f active,ssid dev wifi | rg ^yes | cut -d: -f2 || echo "Disconnected"`)
29 -(defpoll brightness :interval "10s" `brightnessctl -m | cut -d, -f4 | tr -d '%'`)
30 -(defpoll cpu :interval "5s" `nu scripts/cpu.nu`)
31 -(defpoll memory :interval "5s" `nu scripts/memory.nu`)
32 -(defpoll disk :interval "60s" `nu scripts/disk.nu`)
33 -(defpoll workspaces :interval "1s" `nu scripts/workspaces.nu`)
34 -(defpoll window :interval "1s" `nu scripts/window.nu`)
35 -(defpoll volume :interval "1s" `nu scripts/getvol.nu`)

eww/scripts/cpu.nu

Deleted
deleted file mode 100644
1 -# ~/.config/eww/scripts/cpu.nu
2 -let cpu = (sys cpu | get load_average | parse '{load}, {a}, {b}' | get load | into float | math avg | math round)
3 -echo $cpu

eww/scripts/disk.nu

Deleted
deleted file mode 100644
2 -let root = (sys disks | where mount == '/' | get 0)
3 -let used = $root.free / $root.total * 100 | math round
4 -echo $used

eww/scripts/getvol.nu

Deleted
deleted file mode 100644
1 -# ~/.config/eww/scripts/volume.nu
2 -if (which pamixer | is-not-empty) {
3 - let is_muted = (pamixer --get-mute | str trim)
4 - if $is_muted == "true" {
5 - echo 0
6 - } else {
7 - pamixer --get-volume | str trim | into int
8 - }
9 -} else {
10 - amixer sget Master | rg "Left:" | str trim | parse --regex '\[([0-9]+)%\]' | get capture0.0 | into int
11 -}

eww/scripts/memory.nu

Deleted
deleted file mode 100644
2 -let used = (sys mem | get used) / (sys mem | get total) * 100 | math round
3 -echo $used

eww/scripts/window.nu

Deleted
deleted file mode 100644
1 -# ~/.config/eww/scripts/window.nu
2 -let title = (hyprctl activewindow -j | from json | get title)
3 -echo $title

eww/scripts/workspaces.nu

Deleted
deleted file mode 100644
1 -# ~/.config/eww/scripts/workspaces.nu
2 -let number_of_worksaces = (hyprctl workspaces -j | from json | length)
3 -let active = (hyprctl activeworkspace -j | from json | get id)
4 -let output = (1..$number_of_worksaces | each { |i|
5 - if $i == $active {
6 - $"·($i)·"
7 - } else {
8 - $"($i)"
9 - }
10 -} | str join " ")
11 -echo $output

hypr/autostart.conf

Deleted
deleted file mode 100644
1 -# Autostart Processes
2 -exec-once = eww open tray

hypr/bindings.conf

Deleted
deleted file mode 100644
1 -# Keybindings Configuration
2 -# Neovim-inspired hjkl bindings
4 -$mainMod = SUPER
6 -# Application bindings
7 -bind = $mainMod, return, exec, $terminal # Launch wezterm
8 -bind = $mainMod, space, exec, $launcher # Launch fuzzel
9 -bind = $mainMod, b, exec, $browser # Launch firefox
10 -bind = $mainMod, c, killactive # Close active window
11 -bind = $mainMod SHIFT, l, exec, $lock # Lock screen with hyprlock
12 -bind = $mainMod SHIFT, s, exec, systemctl suspend # Suspend with lock
13 -bind = $mainMod, slash, exec, nu ~/.config/hypr/scripts/show_binds.nu
14 -bind = $mainMod, tab, exec, nu ~/.config/hypr/scripts/show_clients.nu
15 -bind = $mainMod, s, exec, nu ~/.config/hypr/scripts/autoscroll.nu
17 -bind = $mainMod, escape, exec, makoctl dismiss
19 -# Laptop multimedia keys for volume and LCD brightness
20 -bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 1%+
21 -bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-
22 -bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
23 -bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
24 -bindel = ,XF86MonBrightnessUp, exec, hyprctl hyprsunset gamma +10
25 -bindel = ,XF86MonBrightnessDown, exec, hyprctl hyprsunset gamma -10
27 -# Requires playerctl
28 -bindl = ,XF86AudioNext, exec, playerctl next
29 -bindl = ,XF86AudioPause, exec, playerctl play-pause
30 -bindl = ,XF86AudioPlay, exec, playerctl play-pause
31 -bindl = ,XF86AudioPrev, exec, playerctl previous
33 -# Workspace switching
34 -bind = $mainMod, 1, workspace, 1
35 -bind = $mainMod, 2, workspace, 2
36 -bind = $mainMod, 3, workspace, 3
38 -# Move focus
39 -bind = $mainMod, h, movefocus, l
40 -bind = $mainMod, l, movefocus, r
41 -bind = $mainMod, k, movefocus, u
42 -bind = $mainMod, j, movefocus, d
44 -# Move windows with keys
45 -bind = $mainMod SHIFT, h, movewindow, l
46 -bind = $mainMod SHIFT, l, movewindow, r
47 -bind = $mainMod SHIFT, k, movewindow, u
48 -bind = $mainMod SHIFT, j, movewindow, d
50 -# Resize windows with keys
51 -bind = $mainMod CTRL, h, resizeactive, -20 0
52 -bind = $mainMod CTRL, l, resizeactive, 20 0
53 -bind = $mainMod CTRL, k, resizeactive, 0 -20
54 -bind = $mainMod CTRL, j, resizeactive, 0 20
56 -# Advanced tiling
57 -bind = $mainMod ALT, h, swapwindow, l # Swap window left
58 -bind = $mainMod ALT, l, swapwindow, r # Swap window right
59 -bind = $mainMod ALT, k, swapwindow, u # Swap window up
60 -bind = $mainMod ALT, j, swapwindow, d # Swap window down
61 -bind = $mainMod ALT CTRL, left, splitratio, -0.1 # Decrease split ratio
62 -bind = $mainMod ALT CTRL, right, splitratio, +0.1 # Increase split ratio
64 -# Window management
65 -bind = $mainMod, F11, fullscreen, 0 # Toggle fullscreen
66 -bind = $mainMod, t, togglefloating # Toggle floating
67 -bind = $mainMod, p, pseudo # Pseudo-tiling for floating windows
68 -bind = $mainMod, v, togglesplit,
70 -# Close Hyprland
71 -bind = $mainMod SHIFT, q, exit # Exit Hyprland
73 -# Reload configuration
74 -bind = $mainMod SHIFT, r, exec, hyprctl reload # Reload Hyprland config
76 -# Mouse bindings
77 -bindm = $mainMod, mouse:272, movewindow # SUPER + left click to move
78 -bindm = $mainMod, mouse:273, resizewindow # SUPER + right click to resize
80 -# Screenshots
81 -bind = , PRINT, exec, hyprshot -m region
82 -bind = SHIFT, PRINT, exec, hyprshot -m window
83 -bind = CTRL, PRINT, exec, hyprshot -m output
85 -# Color picker
86 -bind = SUPER, PRINT, exec, hyprpicker -a

hypr/clipse.conf

Deleted
deleted file mode 100644
1 -# FIXME: there are issues launching this from systemd
2 -exec-once = clipse --listen
4 -windowrule = float, class:^(clipse)$
5 -windowrule = size 642 669, class:^(clipse)$
6 -windowrule = stayfocused, class:^(clipse)$
8 -bind = SUPER, V, exec, $terminal --class clipse -e clipse

hypr/env.conf

Deleted
deleted file mode 100644
1 -# Environment Variables
2 -# See: https://wiki.hypr.land/Configuring/Variables/#general
4 -# Wayland compatibility
5 -env = XDG_SESSION_TYPE,wayland
6 -env = GDK_BACKEND,wayland
7 -env = QT_QPA_PLATFORM,wayland
8 -env = QT_STYLE_OVERRIDE,kvantum
9 -env = SDL_VIDEODRIVER,wayland
10 -env = CLUTTER_BACKEND,wayland
11 -env = MOZ_ENABLE_WAYLAND,1
12 -env = XDG_CURRENT_DESKTOP,Hyprland
13 -env = XDG_SESSION_DESKTOP,Hyprland
14 -env = ELECTRON_OZONE_PLATFORM_HINT,wayland
15 -env = OZONE_PLATFORM,wayland
17 -# Tiling WM and language support
18 -env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 # Disable Qt window decorations
19 -env = _JAVA_AWT_WM_NONREPARENTING,1 # Java apps in tiling WMs
21 -env = XCURSOR_SIZE,72 # Cursor size for Wayland
22 -env = XCURSOR_THEME,BreezeX-RosePine-Linux
23 -env = HYPRCURSOR_SIZE,72
24 -env = HYPRCURSOR_THEME,BreezeX-RosePine-Linux

hypr/hypridle.conf

Modified
1 1 general {
2 - lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
3 - before_sleep_cmd = loginctl lock-session # lock before suspend.
4 - after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
2 + lock_cmd = pidof hyprlock || hyprlock
3 + before_sleep_cmd = loginctl lock-session
4 + after_sleep_cmd = hyprctl dispatch dpms on
7 7 listener {
8 8 timeout = 600
9 - on-timeout = loginctl lock-session # lock screen when timeout has passed
9 + on-timeout = loginctl lock-session
12 12 listener {
13 13 timeout = 690
14 - on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
15 - on-resume = hyprctl dispatch dpms on # screen on when activity is detected
14 + on-timeout = hyprctl dispatch dpms off
15 + on-resume = hyprctl dispatch dpms on
18 18 listener {
19 - timeout = 4200
20 - on-timeout = systemctl suspend
19 + timeout = 4200
20 + on-timeout = systemctl suspend

hypr/hyprland.conf

Deleted
deleted file mode 100644
1 -# Hyprland Configuration for bugabinga
2 -# ~/.config/hypr/hyprland.conf
3 -# See: https://wiki.hypr.land/Configuring/
5 -# Application variables
6 -$terminal = wezterm start --always-new-process
7 -$filemanager = yazi
8 -$launcher = fuzzel
9 -$browser = firefox
10 -$editor = nvim
11 -$lock = hyprlock
12 -$tray = eww open tray
14 -# Modular configuration files
15 -source = ~/.config/hypr/monitors.conf
16 -source = ~/.config/hypr/input.conf
17 -source = ~/.config/hypr/bindings.conf
18 -source = ~/.config/hypr/autostart.conf
19 -source = ~/.config/hypr/theme.conf
20 -source = ~/.config/hypr/env.conf
21 -source = ~/.config/hypr/windows.conf
22 -source = ~/.config/hypr/clipse.conf
24 -xwayland {
25 - force_zero_scaling = true
26 -}
28 -# https://wiki.hyprland.org/Configuring/Variables/#misc
29 -misc {
30 - disable_hyprland_logo = true
31 - disable_splash_rendering = true
32 -}
34 -# Don't show update on first launch
35 -ecosystem {
36 - no_update_news = true
37 -}

hypr/hyprland.lua

Added
new file mode 100644
1 +-- bugabinga x230 Hyprland
2 +-- Lua-only compositor config. Generated app configs live beside this tree.
4 +require("modules.env")
5 +require("modules.permissions")
6 +require("modules.monitors")
7 +require("modules.input")
8 +require("modules.appearance")
9 +require("modules.animations")
10 +require("modules.workspaces")
11 +require("modules.rules")
12 +require("modules.binds")

hypr/hyprlock.conf

Modified
1 1 general {
2 - hide_cursor = true
3 - ignore_empty_input = true
4 - fail_timeout = 1500
2 + hide_cursor = true
3 + ignore_empty_input = true
4 + fail_timeout = 1500
7 7 background {
8 8 monitor =
9 - path = screenshot
10 - color = rgba(2e3440ff)
11 - blur_passes = 4
9 + path = screenshot
10 + color = rgba(121212ff)
11 + blur_passes = 3
12 + blur_size = 4
14 15 input-field {
15 - monitor = DP-1
16 - size = 600, 100
17 - position = 0, 0
16 + monitor =
17 + size = 520, 72
18 + position = 0, -24
18 19 halign = center
19 20 valign = center
21 - outer_color = rgba(88c0d0ff)
22 - inner_color = rgba(2e3440ff)
23 - outline_thickness = 4
22 + outer_color = rgba(d151d1ee)
23 + inner_color = rgba(242424ee)
24 + font_color = rgba(edededff)
25 + check_color = rgba(7ba1aaff)
26 + fail_color = rgba(e46479ff)
27 + outline_thickness = 2
25 29 font_family = Monaspace Krypton Var
26 - font_color = rgba(eceff4ff)
30 + placeholder_text = 󰌾 unlock
31 + fail_text = nope
28 - placeholder_text = 󰟵 enter password
29 - check_color = rgba(eceff4ff)
30 - fail_text = Wrong
32 - rounding = 8
33 + rounding = 7
33 34 shadow_passes = 0
34 35 fade_on_empty = false

hypr/hyprpaper.conf

Modified
1 -# ~/.config/hypr/hyprpaper.conf
2 -# See: https://wiki.hypr.land/Configuring/Hyprpaper/
1 +wallpaper {
2 + monitor =
3 + path = ~/.config/hypr/wallpapers/nugu-dark.png
4 +}
4 -preload = ~/Pictures/Wallpapers/1.jpg
5 -preload = ~/Pictures/Wallpapers/2.jpg
6 -wallpaper = DP-1,~/Pictures/Wallpapers/1.jpg
7 -wallpaper = DP-2,~/Pictures/Wallpapers/2.jpg
8 6 splash = false
7 +ipc = true

hypr/hyprsunset.conf

Modified
1 -# ~/.config/hypr/hyprsunset.conf
2 -# See: https://github.com/hyprwm/hyprsunset
4 -latitude = 52.3737
5 -longitude = 9.7366
6 -day_temp = 6500
7 -night_temp = 4500
8 -transition = yes
9 -duration = 3600 # 1-hour transition
1 +profile {
2 + time = 00:00
3 + identity = true
4 +}

hypr/hyprtoolkit.conf

Added
new file mode 100644
1 +background = 0xFF121212
2 +base = 0xFF242424
3 +alternate_base = 0xFF6f6f6f
4 +text = 0xFFededed
5 +bright_text = 0xFFf3effb
6 +accent = 0xFFd86dd8
7 +accent_secondary = 0xFFb59ae4
8 +h1_size = 20
9 +h2_size = 16
10 +h3_size = 13
11 +font_size = 11
12 +small_font_size = 10
13 +icon_theme =

hypr/input.conf

Deleted
deleted file mode 100644
1 -# Input Configuration
2 -# See: https://wiki.hypr.land/Configuring/Variables/#input
4 -input {
5 - kb_layout = us
6 - kb_variant = altgr-intl
7 - kb_model =
8 - kb_options = caps:none
9 - kb_rules =
10 - repeat_rate = 40
11 - repeat_delay = 600
12 - follow_mouse = 1
13 - natural_scroll = yes
14 - sensitivity = 0
15 -}

hypr/lib/apps.lua

Added
new file mode 100644
1 +return {
2 + terminal = "wezterm start --always-new-process",
3 + terminal_class = "wezterm start --always-new-process --class",
4 + browser = "firefox",
5 + editor = "nvim",
6 + launcher = "hyprlauncher",
7 + file_manager = "wezterm start --always-new-process --class yazi yazi",
8 + lock = "hyprlock",
9 + power = "hyprshutdown",
10 + theme_toggle = "nu ~/.config/hypr/scripts/theme.nu toggle",
11 + theme_auto = "nu ~/.config/hypr/scripts/theme.nu auto",
12 + clipboard = "bash -lc 'cliphist list | hyprlauncher --dmenu | cliphist decode | wl-copy'",
13 + screenshot_region = "hyprshot -m region -z",
14 + screenshot_window = "hyprshot -m window -z",
15 + screenshot_output = "hyprshot -m output -z",
16 + screenshot_annotate = "hyprshot -m region -z -- satty --filename",
17 + binds_help = "nu ~/.config/hypr/scripts/show_binds.nu",
18 + clients_help = "nu ~/.config/hypr/scripts/show_clients.nu",

hypr/modules/animations.lua

Added
new file mode 100644
1 +hl.config({ animations = { enabled = true } })
3 +hl.curve("nuguEase", { type = "bezier", points = { {0.16, 1.0}, {0.3, 1.0} } })
4 +hl.curve("nuguSnap", { type = "bezier", points = { {0.2, 0.0}, {0.0, 1.0} } })
5 +hl.curve("nuguSpring", { type = "spring", mass = 1, stiffness = 80, dampening = 16 })
7 +hl.animation({ leaf = "global", enabled = true, speed = 1, bezier = "default" })
8 +hl.animation({ leaf = "border", enabled = true, speed = 4.0, bezier = "nuguEase" })
9 +hl.animation({ leaf = "windows", enabled = true, speed = 3.6, spring = "nuguSpring" })
10 +hl.animation({ leaf = "windowsIn", enabled = true, speed = 3.2, spring = "nuguSpring", style = "popin 88%" })
11 +hl.animation({ leaf = "windowsOut", enabled = true, speed = 2.0, bezier = "nuguSnap", style = "popin 92%" })
12 +hl.animation({ leaf = "fade", enabled = true, speed = 2.4, bezier = "nuguEase" })
13 +hl.animation({ leaf = "layers", enabled = true, speed = 3.0, bezier = "nuguEase" })
14 +hl.animation({ leaf = "workspaces", enabled = true, speed = 2.2, bezier = "nuguEase", style = "slidefade 20%" })

hypr/modules/appearance.lua

Added
new file mode 100644
1 +local nugu = require("generated.nugu")
2 +local t = nugu.current()
3 +local rgba = nugu.rgba
5 +hl.config({
6 + general = {
7 + gaps_in = 4,
8 + gaps_out = 8,
9 + border_size = 2,
10 + col = {
11 + active_border = { colors = { rgba(t.content.accent, "ee"), rgba(t.content.important_local, "ee") }, angle = 42 },
12 + inactive_border = rgba(t.ui.unfocus, "88"),
13 + },
14 + resize_on_border = true,
15 + allow_tearing = false,
16 + layout = "dwindle",
17 + },
19 + decoration = {
20 + rounding = 7,
21 + rounding_power = 2,
22 + active_opacity = 1.0,
23 + inactive_opacity = 0.96,
24 + shadow = {
25 + enabled = true,
26 + range = 8,
27 + render_power = 2,
28 + color = rgba(t.content.backdrop, "cc"),
29 + },
30 + blur = {
31 + enabled = true,
32 + size = 4,
33 + passes = 2,
34 + vibrancy = 0.12,
35 + noise = 0.02,
36 + },
37 + },
39 + dwindle = {
40 + preserve_split = true,
41 + smart_split = true,
42 + },
44 + master = {
45 + new_status = "master",
46 + },
48 + group = {
49 + col = {
50 + border_active = rgba(t.content.accent, "ee"),
51 + border_inactive = rgba(t.ui.unfocus, "88"),
52 + },
53 + },
55 + misc = {
56 + force_default_wallpaper = 0,
57 + disable_hyprland_logo = true,
58 + disable_splash_rendering = true,
59 + vrr = 0,
60 + },
62 + ecosystem = {
63 + no_update_news = true,
64 + no_donation_nag = true,
65 + },
67 + xwayland = {
68 + force_zero_scaling = true,
69 + },
70 +})

hypr/modules/binds.lua

Added
new file mode 100644
1 +local apps = require("lib.apps")
2 +local workspaces = require("modules.workspaces")
3 +local mod = "SUPER"
5 +local function bind(key, cmd, description)
6 + hl.bind(key, hl.dsp.exec_cmd(cmd), { description = description })
7 +end
9 +bind(mod .. " + Return", apps.terminal, "terminal: wezterm")
10 +bind(mod .. " + Space", apps.launcher, "launcher: hyprlauncher")
11 +bind(mod .. " + B", apps.browser, "browser: firefox")
12 +bind(mod .. " + E", apps.file_manager, "file manager: yazi")
13 +hl.bind(mod .. " + Q", hl.dsp.window.close(), { description = "close window" })
14 +hl.bind(mod .. " + C", hl.dsp.window.close(), { description = "close window" })
15 +bind(mod .. " + V", apps.clipboard, "clipboard history")
16 +bind(mod .. " + ALT + L", apps.lock, "lock")
17 +bind(mod .. " + ALT + S", "loginctl lock-session && systemctl suspend", "lock + suspend")
18 +bind(mod .. " + SHIFT + Q", apps.power, "power menu")
19 +bind(mod .. " + SHIFT + R", "hyprctl reload", "reload hypr")
20 +bind(mod .. " + SHIFT + T", apps.theme_toggle, "toggle nugu light/dark")
21 +bind(mod .. " + CTRL + T", apps.theme_auto, "nugu auto mode now")
22 +bind(mod .. " + Slash", apps.binds_help, "show binds")
23 +bind(mod .. " + Tab", apps.clients_help, "show clients")
24 +bind(mod .. " + Escape", "makoctl dismiss --all", "dismiss notifications")
26 +hl.bind(mod .. " + H", hl.dsp.focus({ direction = "left" }), { description = "focus left" })
27 +hl.bind(mod .. " + L", hl.dsp.focus({ direction = "right" }), { description = "focus right" })
28 +hl.bind(mod .. " + K", hl.dsp.focus({ direction = "up" }), { description = "focus up" })
29 +hl.bind(mod .. " + J", hl.dsp.focus({ direction = "down" }), { description = "focus down" })
31 +hl.bind(mod .. " + SHIFT + H", hl.dsp.window.move({ direction = "left" }), { description = "move left" })
32 +hl.bind(mod .. " + SHIFT + L", hl.dsp.window.move({ direction = "right" }), { description = "move right" })
33 +hl.bind(mod .. " + SHIFT + K", hl.dsp.window.move({ direction = "up" }), { description = "move up" })
34 +hl.bind(mod .. " + SHIFT + J", hl.dsp.window.move({ direction = "down" }), { description = "move down" })
36 +hl.bind(mod .. " + CTRL + H", hl.dsp.window.resize({ x = -24, y = 0, relative = true }), { description = "resize left" })
37 +hl.bind(mod .. " + CTRL + L", hl.dsp.window.resize({ x = 24, y = 0, relative = true }), { description = "resize right" })
38 +hl.bind(mod .. " + CTRL + K", hl.dsp.window.resize({ x = 0, y = -24, relative = true }), { description = "resize up" })
39 +hl.bind(mod .. " + CTRL + J", hl.dsp.window.resize({ x = 0, y = 24, relative = true }), { description = "resize down" })
41 +hl.bind(mod .. " + F", hl.dsp.window.fullscreen({ mode = "fullscreen", action = "toggle" }), { description = "fullscreen" })
42 +hl.bind(mod .. " + T", hl.dsp.window.float({ action = "toggle" }), { description = "toggle floating" })
43 +hl.bind(mod .. " + P", hl.dsp.window.pseudo({ action = "toggle" }), { description = "pseudo tile" })
44 +hl.bind(mod .. " + G", hl.dsp.group.toggle(), { description = "toggle group" })
45 +hl.bind(mod .. " + SHIFT + G", hl.dsp.group.next(), { description = "next group tab" })
47 +for _, ws in ipairs(workspaces.list) do
48 + local target = "name:" .. ws.name
49 + hl.bind(mod .. " + " .. ws.key, hl.dsp.focus({ workspace = target }), { description = "workspace " .. ws.name })
50 + hl.bind(mod .. " + SHIFT + " .. ws.key, hl.dsp.window.move({ workspace = target }), { description = "move to " .. ws.name })
51 +end
53 +hl.bind(mod .. " + S", hl.dsp.workspace.toggle_special("scratch"), { description = "toggle scratch" })
54 +hl.bind(mod .. " + SHIFT + V", hl.dsp.window.move({ workspace = "special:scratch" }), { description = "send to scratch" })
55 +hl.bind(mod .. " + mouse_down", hl.dsp.focus({ workspace = "e+1" }))
56 +hl.bind(mod .. " + mouse_up", hl.dsp.focus({ workspace = "e-1" }))
57 +hl.bind(mod .. " + mouse:272", hl.dsp.window.drag(), { mouse = true, description = "drag window" })
58 +hl.bind(mod .. " + mouse:273", hl.dsp.window.resize(), { mouse = true, description = "resize window" })
60 +hl.bind("XF86AudioRaiseVolume", hl.dsp.exec_cmd("wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 2%+"), { locked = true, repeating = true })
61 +hl.bind("XF86AudioLowerVolume", hl.dsp.exec_cmd("wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-"), { locked = true, repeating = true })
62 +hl.bind("XF86AudioMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"), { locked = true })
63 +hl.bind("XF86AudioMicMute", hl.dsp.exec_cmd("wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"), { locked = true })
64 +hl.bind("XF86MonBrightnessUp", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%+"), { locked = true, repeating = true })
65 +hl.bind("XF86MonBrightnessDown", hl.dsp.exec_cmd("brightnessctl -e4 -n2 set 5%-"), { locked = true, repeating = true })
66 +hl.bind("XF86AudioNext", hl.dsp.exec_cmd("playerctl next"), { locked = true })
67 +hl.bind("XF86AudioPause", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
68 +hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("playerctl play-pause"), { locked = true })
69 +hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("playerctl previous"), { locked = true })
71 +bind("Print", apps.screenshot_region, "screenshot region")
72 +bind("SHIFT + Print", apps.screenshot_window, "screenshot window")
73 +bind("CTRL + Print", apps.screenshot_output, "screenshot output")
74 +bind(mod .. " + Print", apps.screenshot_annotate, "screenshot annotate")
75 +bind(mod .. " + SHIFT + Print", "hyprpicker -a", "pick color")

hypr/modules/env.lua

Added
new file mode 100644
1 +hl.env("XDG_CURRENT_DESKTOP", "Hyprland")
2 +hl.env("XDG_SESSION_DESKTOP", "Hyprland")
3 +hl.env("XDG_SESSION_TYPE", "wayland")
4 +hl.env("GDK_BACKEND", "wayland,x11")
5 +hl.env("QT_QPA_PLATFORM", "wayland;xcb")
6 +hl.env("QT_QPA_PLATFORMTHEME", "xdgdesktopportal")
7 +hl.env("QT_WAYLAND_DISABLE_WINDOWDECORATION", "1")
8 +hl.env("SDL_VIDEODRIVER", "wayland")
9 +hl.env("CLUTTER_BACKEND", "wayland")
10 +hl.env("MOZ_ENABLE_WAYLAND", "1")
11 +hl.env("ELECTRON_OZONE_PLATFORM_HINT", "wayland")
12 +hl.env("OZONE_PLATFORM", "wayland")
13 +hl.env("_JAVA_AWT_WM_NONREPARENTING", "1")
14 +hl.env("XCURSOR_SIZE", "24")
15 +hl.env("HYPRCURSOR_SIZE", "24")

hypr/modules/input.lua

Added
new file mode 100644
1 +hl.config({
2 + input = {
3 + kb_layout = "us",
4 + kb_variant = "altgr-intl",
5 + kb_model = "",
6 + kb_options = "caps:none",
7 + kb_rules = "",
8 + repeat_rate = 40,
9 + repeat_delay = 600,
10 + follow_mouse = 1,
11 + sensitivity = 0,
12 + accel_profile = "flat",
13 + touchpad = {
14 + natural_scroll = true,
15 + disable_while_typing = true,
16 + },
17 + },
18 +})
20 +hl.gesture({ fingers = 3, direction = "horizontal", action = "workspace" })

hypr/modules/permissions.lua

Added
new file mode 100644
1 +-- Explicitly allow the small trusted local tools this rice binds.
2 +-- Permission changes may require a fresh Hyprland session.
3 +hl.permission("/usr/(bin|local/bin)/grim", "screencopy", "allow")
4 +hl.permission("/usr/(bin|local/bin)/hyprshot", "screencopy", "allow")
5 +hl.permission("/usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland", "screencopy", "allow")

hypr/modules/rules.lua

Added
new file mode 100644
1 +local nugu = require("generated.nugu")
2 +local t = nugu.current()
4 +hl.window_rule({
5 + name = "suppress-maximize-events",
6 + match = { class = ".*" },
7 + suppress_event = "maximize",
8 +})
10 +hl.window_rule({
11 + name = "fix-xwayland-drags",
12 + match = {
13 + class = "^$",
14 + title = "^$",
15 + xwayland = true,
16 + float = true,
17 + fullscreen = false,
18 + pin = false,
19 + },
20 + no_focus = true,
21 +})
23 +hl.window_rule({ match = { class = "^(firefox|org.mozilla.firefox)$" }, workspace = "name:web" })
24 +hl.window_rule({ match = { class = "^(firefox|org.mozilla.firefox)$" }, opacity = "0.98 0.96" })
26 +hl.window_rule({ match = { class = "^(wezterm|org.wezfurlong.wezterm)$" }, workspace = "name:term" })
27 +hl.window_rule({ match = { class = "^yazi$" }, workspace = "name:term" })
29 +hl.window_rule({ match = { class = "^(mpv|com.github.celluloid_player.Celluloid)$" }, workspace = "name:media" })
30 +hl.window_rule({ match = { class = "^(mpv|com.github.celluloid_player.Celluloid)$" }, immediate = true })
32 +hl.window_rule({ match = { class = "^(pavucontrol|blueman-manager|nm-connection-editor)$" }, float = true, center = true })
33 +hl.window_rule({ match = { class = "^(org.gnome.Nautilus|thunar)$", title = "^(Open|Save).*" }, float = true, center = true })
34 +hl.window_rule({ match = { class = "(pinentry-)(.*)" }, stay_focused = true })
36 +hl.window_rule({ match = { float = true }, border_color = nugu.rgba(t.ui.accent, "dd") })
37 +hl.window_rule({ match = { fullscreen = true }, border_size = 0, rounding = 0 })
38 +hl.window_rule({ match = { float = false, workspace = "w[tv1]s[false]" }, border_size = 0, rounding = 0 })
39 +hl.window_rule({ match = { float = false, workspace = "f[1]s[false]" }, border_size = 0, rounding = 0 })

hypr/modules/workspaces.lua

Added
new file mode 100644
1 +local M = {}
3 +M.list = {
4 + { key = "1", name = "web" },
5 + { key = "2", name = "code" },
6 + { key = "3", name = "term" },
7 + { key = "4", name = "chat" },
8 + { key = "5", name = "media" },
9 + { key = "9", name = "misc" },
10 + { key = "0", name = "scratch" },
13 +for _, ws in ipairs(M.list) do
14 + hl.workspace_rule({ workspace = "name:" .. ws.name, monitor = "LVDS-1" })
15 +end
17 +hl.workspace_rule({ workspace = "name:web", default = true })
18 +hl.workspace_rule({ workspace = "special:scratch", on_created_empty = "wezterm start --always-new-process" })
19 +hl.workspace_rule({ workspace = "w[tv1]s[false]", gaps_out = 0, gaps_in = 0 })
20 +hl.workspace_rule({ workspace = "f[1]s[false]", gaps_out = 0, gaps_in = 0 })
22 +return M

hypr/monitors.conf

Deleted
deleted file mode 100644
1 -# Monitor Configuration
2 -# Adjust for your display (e.g., 'eDP-1' for laptop)
4 -monitor = ,preferred,auto,1

hypr/scripts/autoscroll.nu

Deleted
deleted file mode 100755
1 -# File: ~/.config/hypr/scripts/autoscroll.nu
3 -# Configuration
4 -let speed = 1000 # millis between scroll events
5 -let scroll_amount = 1 # Number of scroll ticks
6 -let pid_file = $"($env.HOME)/.config/hypr/scripts/autoscroll.pid"
8 -# Check if script is already running
9 -if ($pid_file | path exists) {
10 - let pid = (open $pid_file | into int)
11 - try {
12 - kill $pid
13 - rm $pid_file
14 - exit 0
15 - } catch {
16 - rm $pid_file # Remove stale PID file
17 - }
18 -}
20 -# Save current PID
21 -($nu.pid | into string) | save --force $pid_file
23 -# Infinite scroll loop
24 -loop {
25 - wtype -d $speed -k Down # Simulate scroll down via Down arrow key
26 - sleep 50ms
27 -}

hypr/scripts/theme.nu

Added
new file mode 100755
1 +#!/usr/bin/env nu
3 +# Nugu desktop theme switcher. Writes active runtime configs, then reloads clients.
5 +const modes = [dark light]
7 +def config-home [] { $env.XDG_CONFIG_HOME? | default ($env.HOME | path join ".config") }
8 +def cache-dir [] { $env.HOME | path join ".cache" "nugu" }
9 +def mode-file [] { cache-dir | path join "mode" }
10 +def auto-file [] { cache-dir | path join "auto" }
11 +def palette-file [] { config-home | path join "hypr" "generated" "nugu.json" }
13 +def active-mode [] {
14 + let path = (mode-file)
15 + if ($path | path exists) {
16 + let mode = (open --raw $path | str trim)
17 + if $mode in $modes { return $mode }
18 + }
19 + "dark"
22 +def auto-mode [] {
23 + let hour = (date now | format date "%H" | into int)
24 + if $hour >= 7 and $hour < 19 { "light" } else { "dark" }
27 +def hex-no-hash [color: string] { $color | str replace --all "#" "" }
28 +def argb [color: string] { $"0xFF(hex-no-hash $color)" }
30 +def palette [mode: string] {
31 + open (palette-file) | get $mode
34 +def auto-enabled [] {
35 + let path = (auto-file)
36 + if not ($path | path exists) { return true }
37 + (open --raw $path | str trim) != "0"
40 +def set-auto [enabled: bool] {
41 + (if $enabled { "1" } else { "0" }) | save --raw --force (auto-file)
44 +def write-desktop-color-scheme [mode: string] {
45 + let scheme = if $mode == "dark" { "prefer-dark" } else { "prefer-light" }
46 + try { gsettings set org.gnome.desktop.interface color-scheme $scheme | ignore }
49 +def write-hyprtoolkit [mode: string, p: record] {
50 + let out = (config-home | path join "hypr" "hyprtoolkit.conf")
51 + $"background = (argb $p.content.backdrop)
52 +base = (argb $p.ui.backdrop)
53 +alternate_base = (argb $p.ui.unfocus)
54 +text = (argb $p.content.normal)
55 +bright_text = (argb $p.ui.important_global)
56 +accent = (argb $p.ui.accent)
57 +accent_secondary = (argb $p.content.important_local)
58 +h1_size = 20
59 +h2_size = 16
60 +h3_size = 13
61 +font_size = 11
62 +small_font_size = 10
63 +icon_theme =
64 +" | save --raw --force $out
67 +def write-mako [mode: string, p: record] {
68 + mkdir (config-home | path join "mako")
69 + let out = (config-home | path join "mako" "config")
70 + $"font=Monaspace Neon Var 10
71 +background-color=($p.ui.backdrop)ee
72 +text-color=($p.ui.normal)ff
73 +border-color=($p.ui.accent)ff
74 +progress-color=over ($p.ui.focus)ff
75 +border-size=2
76 +border-radius=7
77 +padding=10
78 +margin=10
79 +anchor=top-right
80 +width=320
81 +height=120
82 +default-timeout=5000
83 +max-history=50
84 +format=%s\\n%b
85 +actions=true
86 +[urgency=high]
87 +border-color=($p.error)ff
88 +default-timeout=0
89 +" | save --raw --force $out
92 +def write-ironbar [mode: string, p: record] {
93 + mkdir (config-home | path join "ironbar")
94 + let out = (config-home | path join "ironbar" "style.css")
95 + let bg = $p.ui.backdrop
96 + let fg = $p.ui.normal
97 + let accent = $p.ui.accent
98 + let focus = $p.ui.focus
99 + let unfocus = $p.ui.unfocus
100 + let surface = if $mode == "dark" { "#2e2e2e" } else { "#d0d0d0" }
101 + let urgent = $p.error
102 + $":root {
103 + --bg: ($bg);
104 + --bg-transparent: ($bg)ee;
105 + --surface: ($surface);
106 + --fg: ($fg);
107 + --accent: ($accent);
108 + --focus: ($focus);
109 + --unfocus: ($unfocus);
110 + --border: ($accent);
111 + --radius: 7px;
112 + --font-size: 12px;
115 +* {
116 + font-family: 'IBM Plex Mono', 'Monaspace Neon Var', monospace;
117 + font-size: var\(--font-size);
118 + border: none;
119 + box-shadow: none;
120 + border-radius: 0;
123 +window, popover, popover contents {
124 + background-color: var\(--bg-transparent);
125 + color: var\(--fg);
126 + border-radius: var\(--radius);
129 +#bar {
130 + background-color: var\(--bg);
131 + padding: 0 8px;
132 + border-bottom: 2px solid var\(--accent);
135 +box, button, label {
136 + background-color: transparent;
139 +button {
140 + padding: 2px 8px;
141 + border-radius: var\(--radius);
144 +button:hover, button:active {
145 + background-color: var\(--surface);
148 +.workspaces .item {
149 + padding: 2px 8px;
150 + margin: 0 2px;
151 + border-radius: var\(--radius);
152 + color: var\(--unfocus);
155 +.workspaces .item.focused {
156 + background-color: var\(--surface);
157 + color: var\(--accent);
158 + box-shadow: inset 0 -2px var\(--accent);
161 +.workspaces .item.visible {
162 + color: var\(--fg);
165 +.workspaces .item.urgent {
166 + background-color: ($urgent);
167 + color: var\(--bg);
170 +.launcher .item {
171 + margin: 0 2px;
172 + padding: 2px 6px;
175 +.launcher .item.open {
176 + box-shadow: inset 0 -2px var\(--unfocus);
179 +.launcher .item.focused {
180 + box-shadow: inset 0 -2px var\(--accent);
183 +.popup-launcher {
184 + padding: 8px;
187 +.popup-launcher .popup-item {
188 + padding: 8px 12px;
189 + border-radius: var\(--radius);
192 +.popup-launcher .popup-item:hover {
193 + background-color: var\(--surface);
196 +.focused {
197 + color: var\(--focus);
198 + margin-left: 8px;
201 +.popup-music {
202 + padding: 12px;
205 +.popup-music .album-art {
206 + border-radius: var\(--radius);
207 + margin-right: 12px;
210 +.volume {
211 + margin: 0 4px;
214 +.popup-volume {
215 + padding: 12px;
218 +scale highlight {
219 + background-color: var\(--accent);
220 + border-radius: var\(--radius);
223 +.battery {
224 + margin: 0 4px;
225 + color: var\(--focus);
228 +.clock {
229 + font-weight: bold;
230 + margin: 0 4px;
231 + color: var\(--accent);
234 +.popup-clipboard {
235 + padding: 8px;
238 +.popup-clipboard .item {
239 + padding: 4px 8px;
240 + border-radius: var\(--radius);
243 +.popup-clipboard .item:hover {
244 + background-color: var\(--surface);
247 +.tray {
248 + margin: 0 4px;
251 +.tray popover contents {
252 + padding: 8px;
255 +.power-menu {
256 + margin-left: 4px;
259 +.popup-power-menu {
260 + padding: 12px;
263 +.popup-power-menu #header {
264 + font-size: 14px;
265 + font-weight: bold;
266 + margin-bottom: 8px;
267 + color: var\(--accent);
270 +.popup-power-menu .power-btn {
271 + background-color: var\(--surface);
272 + border: 1px solid var\(--accent);
273 + border-radius: var\(--radius);
274 + padding: 6px 12px;
275 + margin: 0 4px;
276 + font-size: 16px;
279 +.popup-power-menu .power-btn:hover {
280 + background-color: var\(--accent);
281 + color: var\(--bg);
284 +.notifications .count {
285 + font-size: 10px;
286 + background-color: var\(--accent);
287 + color: var\(--bg);
288 + border-radius: 50%;
289 + padding: 2px 5px;
292 +.sysinfo {
293 + margin: 0 4px;
296 +.sysinfo > .item + .item {
297 + margin-left: 8px;
300 +.popup {
301 + padding: 8px;
303 +" | save --raw --force $out
306 +def apply-mode [mode: string] {
307 + mkdir (cache-dir)
308 + let p = (palette $mode)
309 + $mode | save --raw --force (mode-file)
310 + write-desktop-color-scheme $mode
311 + write-hyprtoolkit $mode $p
312 + write-mako $mode $p
313 + write-ironbar $mode $p
315 + let temp = if $mode == "light" { "6500" } else { "4500" }
316 + try { hyprctl hyprsunset temperature $temp | ignore }
317 + try { hyprctl hyprpaper wallpaper $",~/.config/hypr/wallpapers/nugu-($mode).png" | ignore }
318 + try { hyprctl reload | ignore }
319 + if (($env.NUGU_NO_RESTART_MAKO? | default "") != "1") {
320 + try { systemctl --user restart mako.service | ignore }
322 + try { systemctl --user restart ironbar.service | ignore }
323 + if (($env.NUGU_NO_NOTIFY? | default "") != "1") {
324 + try { notify-send --expire-time 1500 "nugu" $"($mode) mode" | ignore }
328 +def next-mode [] { if (active-mode) == "dark" { "light" } else { "dark" } }
330 +def main [mode: string = "toggle"] {
331 + let manual = $mode in [dark light toggle]
332 + if $manual { set-auto false }
333 + if $mode == "auto" { set-auto true }
335 + let target = match $mode {
336 + "dark" => "dark",
337 + "light" => "light",
338 + "toggle" => (next-mode),
339 + "auto" => (auto-mode),
340 + "current" => (active-mode),
341 + "watch" => { watch; return },
342 + _ => { error make { msg: "mode must be dark|light|toggle|auto|current|watch" } },
344 + apply-mode $target
347 +def watch [] {
348 + loop {
349 + if (auto-enabled) {
350 + let target = (auto-mode)
351 + if $target != (active-mode) { apply-mode $target }
353 + sleep 5min

hypr/systemd/cliphist.service

Added
new file mode 100644
1 +[Unit]
2 +Description=Clipboard history daemon
3 +PartOf=graphical-session.target
4 +After=graphical-session.target
6 +[Service]
7 +ExecStart=/usr/bin/wl-paste --type text --watch cliphist store
8 +Restart=on-failure
9 +RestartSec=2
11 +[Install]
12 +WantedBy=graphical-session.target

hypr/systemd/eww.service

Deleted
deleted file mode 100644
1 -# ~/.config/systemd/user/eww.service
3 -[Unit]
4 -Description=Eww Daemon
5 -After=graphical-session.target
7 -[Service]
8 -ExecStart=/usr/bin/eww daemon
9 -Restart=always
10 -RestartSec=3
12 -[Install]
13 -WantedBy=default.target

hypr/systemd/hypridle.service

Deleted
deleted file mode 100644
1 -# ~/.config/systemd/user/hypridle.service
3 -[Unit]
4 -Description=Hypridle Idle Daemon
5 -After=graphical-session.target
6 -Requires=hyprlock.service
8 -[Service]
9 -ExecStart=/usr/bin/hypridle
10 -Restart=always
11 -RestartSec=3
13 -[Install]
14 -WantedBy=default.target

hypr/systemd/hyprpaper.service

Deleted
deleted file mode 100644
1 -# ~/.config/systemd/user/hyprpaper.service
3 -[Unit]
4 -Description=Hyprpaper Wallpaper Daemon
5 -After=graphical-session.target
7 -[Service]
8 -ExecStart=/usr/bin/hyprpaper
9 -Restart=always
10 -RestartSec=3
12 -[Install]
13 -WantedBy=default.target

hypr/systemd/hyprsunset.service

Deleted
deleted file mode 100644
1 -# ~/.config/systemd/user/hyprsunset.service
2 -[Unit]
3 -Description=Hyprsunset blue-light filter
4 -After=graphical-session.target
6 -[Service]
7 -ExecStart=/usr/bin/hyprsunset
8 -Restart=always
10 -[Install]
11 -WantedBy=graphical-session.target

hypr/systemd/ironbar.service

Added
new file mode 100644
1 +[Unit]
2 +Description=Ironbar Wayland status bar
3 +PartOf=graphical-session.target
4 +After=graphical-session.target nugu-theme.service
5 +Wants=nugu-theme.service
7 +[Service]
8 +ExecStart=/usr/bin/ironbar
9 +Restart=on-failure
10 +RestartSec=2
12 +[Install]
13 +WantedBy=graphical-session.target

hypr/systemd/mako.service

Added
new file mode 100644
1 +[Unit]
2 +Description=Mako notification daemon
3 +PartOf=graphical-session.target
4 +After=graphical-session.target
6 +[Service]
7 +Environment=NUGU_NO_RESTART_MAKO=1
8 +Environment=NUGU_NO_NOTIFY=1
9 +ExecStartPre=/usr/bin/nu %h/.config/hypr/scripts/theme.nu current
10 +ExecStart=/usr/bin/mako --config %h/.config/mako/config
11 +Restart=on-failure
12 +RestartSec=2
14 +[Install]
15 +WantedBy=graphical-session.target

hypr/systemd/nugu-theme.service

Added
new file mode 100644
1 +[Unit]
2 +Description=Nugu automatic light/dark desktop mode
3 +PartOf=graphical-session.target
4 +After=graphical-session.target hyprsunset.service hyprpaper.service
5 +Wants=hyprsunset.service hyprpaper.service
7 +[Service]
8 +ExecStart=/usr/bin/nu %h/.config/hypr/scripts/theme.nu watch
9 +Restart=on-failure
10 +RestartSec=10
12 +[Install]
13 +WantedBy=graphical-session.target

hypr/systemd/wl-clip-persist.service

Added
new file mode 100644
1 +[Unit]
2 +Description=Persist Wayland clipboard after source exits
3 +PartOf=graphical-session.target
4 +After=graphical-session.target
6 +[Service]
7 +ExecStart=/usr/bin/wl-clip-persist --clipboard regular
8 +Restart=on-failure
9 +RestartSec=2
11 +[Install]
12 +WantedBy=graphical-session.target

hypr/theme.conf

Deleted
deleted file mode 100644
1 -# Refer to https://wiki.hyprland.org/Configuring/Variables/
3 -# https://wiki.hyprland.org/Configuring/Variables/#general
4 -general {
5 - gaps_in = 5
6 - gaps_out = 10
8 - border_size = 2
10 - # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
11 - col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
12 - col.inactive_border = rgba(595959aa)
14 - # Set to true enable resizing windows by clicking and dragging on borders and gaps
15 - resize_on_border = false
17 - # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
18 - allow_tearing = true
20 - layout = dwindle
21 -}
23 -# https://wiki.hyprland.org/Configuring/Variables/#decoration
24 -decoration {
25 - rounding = 0
27 - shadow {
28 - enabled = true
29 - range = 2
30 - render_power = 3
31 - color = rgba(1a1a1aee)
32 - }
34 - # https://wiki.hyprland.org/Configuring/Variables/#blur
35 - blur {
36 - enabled = true
37 - size = 3
38 - passes = 1
40 - vibrancy = 0.1696
41 - }
42 -}
44 -# https://wiki.hyprland.org/Configuring/Variables/#animations
45 -animations {
46 - enabled = yes, please :)
48 - # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
50 - bezier = easeOutQuint,0.23,1,0.32,1
51 - bezier = easeInOutCubic,0.65,0.05,0.36,1
52 - bezier = linear,0,0,1,1
53 - bezier = almostLinear,0.5,0.5,0.75,1.0
54 - bezier = quick,0.15,0,0.1,1
56 - animation = global, 1, 10, default
57 - animation = border, 1, 5.39, easeOutQuint
58 - animation = windows, 1, 4.79, easeOutQuint
59 - animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
60 - animation = windowsOut, 1, 1.49, linear, popin 87%
61 - animation = fadeIn, 1, 1.73, almostLinear
62 - animation = fadeOut, 1, 1.46, almostLinear
63 - animation = fade, 1, 3.03, quick
64 - animation = layers, 1, 3.81, easeOutQuint
65 - animation = layersIn, 1, 4, easeOutQuint, fade
66 - animation = layersOut, 1, 1.5, linear, fade
67 - animation = fadeLayersIn, 1, 1.79, almostLinear
68 - animation = fadeLayersOut, 1, 1.39, almostLinear
69 - animation = workspaces, 0, 0, ease
70 -}
72 -# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
73 -dwindle {
74 - pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
75 - preserve_split = true # You probably want this
76 - force_split = 2 # Always split on the right
77 -}
79 -# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
80 -master {
81 - new_status = master
82 -}

hypr/wallpapers/nugu-dark.png

Added
new file mode 100644

Current version contains binary or non-UTF-8 data.

hypr/wallpapers/nugu-light.png

Added
new file mode 100644

Current version contains binary or non-UTF-8 data.

hypr/windows.conf

Deleted
deleted file mode 100644
1 -# Window Rules and Tiling Configuration
2 -# See: https://wiki.hypr.land/Configuring/Window-Rules/
4 -windowrule = opacity 0.9, class:^(org.mozilla.firefox)$
5 -windowrule = workspace 2, class:^(org.mozilla.firefox)$
7 -windowrule = fullscreen, center, float, class:^(mpv)$
8 -windowrule = immediate, class:^(mpv)$ # Enable tearing for mpv
10 -# Float and center file pickers
11 -windowrule = float, class:xdg-desktop-portal-gtk, title:^(Open.*Files?|Save.*Files?)
12 -windowrule = center, class:xdg-desktop-portal-gtk, title:^(Open.*Files?|Save.*Files?)
14 -# Float Steam, fullscreen RetroArch
15 -windowrule = float, class:^(steam)$
16 -windowrule = fullscreen, class:^(com.libretro.RetroArch)$
18 -windowrule = stayfocused, class:(pinentry-)(.*) # fix pinentry losing focus
20 -# Fix some dragging issues with XWayland
21 -windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0

ironbar/config.json

Added
new file mode 100644
1 +{
2 + "icon_theme": "Papirus",
3 + "position": "top",
4 + "height": 30,
5 + "start": [
6 + {
7 + "type": "workspaces",
8 + "name_map": {
9 + "web": "󰖟",
10 + "code": "󰅨",
11 + "term": "󰆍",
12 + "chat": "󰭹",
13 + "media": "󰎆",
14 + "misc": "󰋖",
15 + "scratch": "󰙀"
16 + },
17 + "favorites": ["web", "code", "term", "chat", "media"],
18 + "format": "{icon}"
19 + },
20 + {
21 + "type": "launcher",
22 + "truncate": {
23 + "mode": "end",
24 + "max_length": 24
25 + }
26 + },
27 + {
28 + "type": "focused",
29 + "truncate": {
30 + "mode": "end",
31 + "max_length": 64
32 + }
33 + }
34 + ],
35 + "center": [
36 + {
37 + "type": "music",
38 + "player_type": "playerctl"
39 + }
40 + ],
41 + "end": [
42 + {
43 + "type": "clipboard",
44 + "max_items": 5,
45 + "truncate": {
46 + "mode": "end",
47 + "length": 30
48 + }
49 + },
50 + {
51 + "type": "tray"
52 + },
53 + {
54 + "type": "volume",
55 + "on_scroll_up": "wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 2%+",
56 + "on_scroll_down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-",
57 + "on_click_right": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
58 + },
59 + {
60 + "type": "battery",
61 + "show_if": "ls /sys/class/power_supply/ | grep -q '^BAT'"
62 + },
63 + {
64 + "type": "clock",
65 + "format": "%H:%M"
66 + },
67 + {
68 + "type": "custom",
69 + "name": "power-menu",
70 + "class": "power-menu",
71 + "bar": [
72 + {
73 + "type": "button",
74 + "name": "power-btn",
75 + "label": "󰐥",
76 + "on_click": "popup:toggle"
77 + }
78 + ],
79 + "popup": [
80 + {
81 + "type": "box",
82 + "orientation": "vertical",
83 + "widgets": [
84 + {
85 + "type": "label",
86 + "name": "header",
87 + "label": "power"
88 + },
89 + {
90 + "type": "box",
91 + "name": "buttons",
92 + "widgets": [
93 + {
94 + "type": "button",
95 + "class": "power-btn",
96 + "label": "󰐥",
97 + "on_click": "!systemctl poweroff"
98 + },
99 + {
100 + "type": "button",
101 + "class": "power-btn",
102 + "label": "󰜉",
103 + "on_click": "!systemctl reboot"
104 + },
106 + "type": "button",
107 + "class": "power-btn",
108 + "label": "󰍃",
109 + "on_click": "!loginctl terminate-session $XDG_SESSION_ID"

ironbar/style.css

Added
new file mode 100644
1 +:root {
2 + --bg: #242424;
3 + --bg-transparent: #242424ee;
4 + --surface: #2e2e2e;
5 + --fg: #dbdbdb;
6 + --accent: #d86dd8;
7 + --focus: #9aabae;
8 + --unfocus: #6f6f6f;
9 + --border: #d86dd8;
10 + --radius: 7px;
11 + --font-size: 12px;
14 +* {
15 + font-family: 'IBM Plex Mono', 'Monaspace Neon Var', monospace;
16 + font-size: var(--font-size);
17 + border: none;
18 + box-shadow: none;
19 + border-radius: 0;
22 +window, popover, popover contents {
23 + background-color: var(--bg-transparent);
24 + color: var(--fg);
25 + border-radius: var(--radius);
28 +#bar {
29 + background-color: var(--bg);
30 + padding: 0 8px;
31 + border-bottom: 2px solid var(--accent);
34 +box, button, label {
35 + background-color: transparent;
38 +button {
39 + padding: 2px 8px;
40 + border-radius: var(--radius);
43 +button:hover, button:active {
44 + background-color: var(--surface);
47 +.workspaces .item {
48 + padding: 2px 8px;
49 + margin: 0 2px;
50 + border-radius: var(--radius);
51 + color: var(--unfocus);
54 +.workspaces .item.focused {
55 + background-color: var(--surface);
56 + color: var(--accent);
57 + box-shadow: inset 0 -2px var(--accent);
60 +.workspaces .item.visible {
61 + color: var(--fg);
64 +.workspaces .item.urgent {
65 + background-color: #e46479;
66 + color: var(--bg);
69 +.launcher .item {
70 + margin: 0 2px;
71 + padding: 2px 6px;
74 +.launcher .item.open {
75 + box-shadow: inset 0 -2px var(--unfocus);
78 +.launcher .item.focused {
79 + box-shadow: inset 0 -2px var(--accent);
82 +.popup-launcher {
83 + padding: 8px;
86 +.popup-launcher .popup-item {
87 + padding: 8px 12px;
88 + border-radius: var(--radius);
91 +.popup-launcher .popup-item:hover {
92 + background-color: var(--surface);
95 +.focused {
96 + color: var(--focus);
97 + margin-left: 8px;
100 +.popup-music {
101 + padding: 12px;
104 +.popup-music .album-art {
105 + border-radius: var(--radius);
106 + margin-right: 12px;
109 +.volume {
110 + margin: 0 4px;
113 +.popup-volume {
114 + padding: 12px;
117 +scale highlight {
118 + background-color: var(--accent);
119 + border-radius: var(--radius);
122 +.battery {
123 + margin: 0 4px;
124 + color: var(--focus);
127 +.clock {
128 + font-weight: bold;
129 + margin: 0 4px;
130 + color: var(--accent);
133 +.popup-clipboard {
134 + padding: 8px;
137 +.popup-clipboard .item {
138 + padding: 4px 8px;
139 + border-radius: var(--radius);
142 +.popup-clipboard .item:hover {
143 + background-color: var(--surface);
146 +.tray {
147 + margin: 0 4px;
150 +.tray popover contents {
151 + padding: 8px;
154 +.power-menu {
155 + margin-left: 4px;
158 +.popup-power-menu {
159 + padding: 12px;
162 +.popup-power-menu #header {
163 + font-size: 14px;
164 + font-weight: bold;
165 + margin-bottom: 8px;
166 + color: var(--accent);
169 +.popup-power-menu .power-btn {
170 + background-color: var(--surface);
171 + border: 1px solid var(--accent);
172 + border-radius: var(--radius);
173 + padding: 6px 12px;
174 + margin: 0 4px;
175 + font-size: 16px;
178 +.popup-power-menu .power-btn:hover {
179 + background-color: var(--accent);
180 + color: var(--bg);
183 +.notifications .count {
184 + font-size: 10px;
185 + background-color: var(--accent);
186 + color: var(--bg);
187 + border-radius: 50%;
188 + padding: 2px 5px;
191 +.sysinfo {
192 + margin: 0 4px;
195 +.sysinfo > .item + .item {
196 + margin-left: 8px;
199 +.popup {
200 + padding: 8px;

mako/config

Modified
1 -# ~/.config/mako/config
2 -# See: https://wayland.emersion.fr/mako/
4 1 font=Monaspace Neon Var 10
5 -background-color=#2e3440ff
6 -text-color=#eceff4ff
7 -border-color=#88c0d0ff
2 +background-color=#242424ee
3 +text-color=#dbdbdbff
4 +border-color=#d86dd8ff
5 +progress-color=over #9aabaeff
8 6 border-size=2
9 -border-radius=5
7 +border-radius=7
10 8 padding=10
11 9 margin=10
12 10 anchor=top-right
13 -width=300
14 -height=100
11 +width=320
12 +height=120
15 13 default-timeout=5000
16 14 max-history=50
17 15 format=%s\n%b
18 16 actions=true
17 +[urgency=high]
18 +border-color=#e46479ff
19 +default-timeout=0