repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

hyprland: new config again.

4f104f653b2b61f62a39cd94a47acf34b3bf84ce

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

Changed files (47)

clipse/config.json

Added
new file mode 100644
1 +{
2 + "allowDuplicates": false,
3 + "historyFile": "clipboard_history.json",
4 + "maxHistory": 100,
5 + "logFile": "clipse.log",
6 + "themeFile": "nugu.json",
7 + "tempDir": "tmp_files",
8 + "keyBindings": {
9 + "choose": "enter",
10 + "clearSelected": "S",
11 + "down": "down",
12 + "end": "end",
13 + "filter": "/",
14 + "home": "home",
15 + "more": "?",
16 + "nextPage": "right",
17 + "prevPage": "left",
18 + "preview": " ",
19 + "quit": "q",
20 + "remove": "x",
21 + "selectDown": "ctrl+down",
22 + "selectSingle": "s",
23 + "selectUp": "ctrl+up",
24 + "togglePin": "p",
25 + "togglePinned": "tab",
26 + "up": "up",
27 + "yankFilter": "ctrl+s"
28 + },
29 + "imageDisplay": {
30 + "type": "kitty",
31 + "scaleX": 9,
32 + "scaleY": 9,
33 + "heightCut": 2
34 + }

clipse/nugu.json

Added
new file mode 100644
1 +{
2 + "useCustomTheme": true,
3 + "TitleFore": "#ffffff",
4 + "TitleBack": "#6F4CBC",
5 + "TitleInfo": "#3498db",
6 + "NormalTitle": "#ffffff",
7 + "DimmedTitle": "#808080",
8 + "SelectedTitle": "#FF69B4",
9 + "NormalDesc": "#808080",
10 + "DimmedDesc": "#808080",
11 + "SelectedDesc": "#FF69B4",
12 + "StatusMsg": "#2ecc71",
13 + "PinIndicatorColor": "#FFD700",
14 + "SelectedBorder": "#3498db",
15 + "SelectedDescBorder": "#3498db",
16 + "FilteredMatch": "#ffffff",
17 + "FilterPrompt": "#2ecc71",
18 + "FilterInfo": "#3498db",
19 + "FilterText": "#ffffff",
20 + "FilterCursor": "#FFD700",
21 + "HelpKey": "#999999",
22 + "HelpDesc": "#808080",
23 + "PageActiveDot": "#3498db",
24 + "PageInactiveDot": "#808080",
25 + "DividerDot": "#3498db",
26 + "PreviewedText": "#ffffff",
27 + "PreviewBorder": "#3498db"

enable_user_services.nu

Modified
2 +if ($nu.os-info.name != linux) {
3 + return
4 +}
1 6 const services = [
2 7 [profile-sync-daemon psd psd.service]
3 8 [pueued pueued pueued.service]
9 + [hypridle hypridle hypridle.service]
10 + [hyprsunset hyprsunset hyprsunset.service]
11 + [hyprpolkitagent hyprpolkitagent hyprpolkitagent.service]
12 + [mako mako mako.service]
6 15 $services | each { | service |

eww/eww.scss

Added
new 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;
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;
23 +.wezterm {
24 + padding: 4px 8px;
27 +.wezterm:hover, .volume:hover, .brightness:hover {
28 + background: $accent;
29 + color: $background;
30 + border-radius: 4px;
33 +.workspaces .active {
34 + color: $accent;

eww/eww.yuck

Added
new 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 + )
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

Added
new 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

Added
new 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

Added
new 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

eww/scripts/memory.nu

Added
new file mode 100644
2 +let used = (sys mem | get used) / (sys mem | get total) * 100 | math round
3 +echo $used

eww/scripts/window.nu

Added
new 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

Added
new 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

fedora.symlinks

Modified
14 14 ~/.config/gh
16 +hypr
17 +~/.config/hypr
19 +hypr/systemd/eww.service
20 +~/.config/systemd/user/eww.service
22 +fuzzel
23 +~/.config/fuzzel
25 +mako
26 +~/.config/mako
28 +eww
29 +~/.config/eww
31 +clipse/config.json
32 +~/.config/clipse/config.json
34 +clipse/nugu.json
35 +~/.config/clipse/nugu.json
16 37 subversion/config
17 38 ~/.subversion/config

fuzzel/fuzzel.ini

Added
new file mode 100644
1 +# Fuzzel Configuration
2 +# See: https://codeberg.org/dnkl/fuzzel#configuration
3 +# ~/.config/fuzzel/fuzzel.ini
5 +[main]
6 +width=69
7 +prompt="󱓞 "
8 +layer=overlay
9 +anchor=center
10 +lines=8
11 +terminal=wezterm
12 +font=Monaspace Krypton Var:style=Regular:size=24
13 +use-bold=true
14 +dpi-aware=auto
16 +# TODO: nugu
17 +[colors]
18 +background=2e3440ff
19 +text=eceff4ff
20 +selection=4c566aff
21 +selection-text=d8dee9ff
22 +border=88c0d0ff
24 +[border]
25 +width=4

helix/config.toml

Modified
1 -theme = "nugu-light"
1 +theme = "nugu-dark"
3 3 [editor]
4 4 shell = ["nu", "--commands"]

helix/systemd/helix-dark-mode.service

Deleted
deleted file mode 100644
1 -[Unit]
2 -Description=Helix Dark Mode Service
3 -Documentation=https://github.com/helix-editor/helix/issues/2158
4 -After=gnome-session.target
6 -[Service]
7 -Type=simple
8 -RestartSec=5
9 -Restart=always
10 -ExecStart=%h/.config/helix/themes/dark-mode/monitor.sh
12 -[Install]
13 -WantedBy=gnome-session.target

helix/themes/dark-mode/disable.sh

Deleted
deleted file mode 100755
1 -#!/usr/bin/env bash
3 -# Stop the service immediately and disables it from starting on boot.
4 -systemctl --user disable --now helix-dark-mode.service

helix/themes/dark-mode/enable.sh

Deleted
deleted file mode 100755
1 -#!/usr/bin/env bash
3 -# Enables the service to start on boot and also starts it up immediately.
4 -systemctl --user enable --now helix-dark-mode.service

helix/themes/dark-mode/monitor.sh

Deleted
deleted file mode 100755
1 -#!/usr/bin/env bash
3 -gsettings monitor org.gnome.desktop.interface color-scheme \
4 - | xargs -L1 bash -c "source ${HOME}/.config/helix/themes/dark-mode/update.sh"

helix/themes/dark-mode/update.sh

Deleted
deleted file mode 100644
1 -#!/usr/bin/env bash
3 -# Fail early, fail often.
4 -set -eu -o pipefail
6 -if [[ "$1" == "default" ]]; then
7 - # Update Helix Editor config to use light theme.
8 - sed --in-place --follow-symlinks 's/theme = ".*"/theme = "nugu-light"/' ${HOME}/.config/helix/config.toml
9 -else
10 - # Update Helix Editor config to use dark theme.
11 - sed --in-place --follow-symlinks 's/theme = ".*"/theme = "nugu-dark"/' ${HOME}/.config/helix/config.toml
12 -fi
14 -# reload configuration of running helix instances
15 -pkill -USR1 hx

hypr/2

Added
new 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
28 +# https://wiki.hyprland.org/Configuring/Variables/#misc
29 +misc {
30 + disable_hyprland_logo = true
31 + disable_splash_rendering = true
34 +# Don't show update on first launch
35 +ecosystem {
36 + no_update_news = true

hypr/autostart.conf

Added
new file mode 100644
1 +# Autostart Processes
2 +exec-once = eww open tray

hypr/bindings.conf

Added
new 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
16 +bind = $mainMod, escape, exec, makoctl dismiss
18 +# Laptop multimedia keys for volume and LCD brightness
19 +bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 1%+
20 +bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%-
21 +bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
22 +bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
23 +bindel = ,XF86MonBrightnessUp, exec, hyprctl hyprsunset gamma +10
24 +bindel = ,XF86MonBrightnessDown, exec, hyprctl hyprsunset gamma -10
26 +# Requires playerctl
27 +bindl = ,XF86AudioNext, exec, playerctl next
28 +bindl = ,XF86AudioPause, exec, playerctl play-pause
29 +bindl = ,XF86AudioPlay, exec, playerctl play-pause
30 +bindl = ,XF86AudioPrev, exec, playerctl previous
32 +# Workspace switching
33 +bind = $mainMod, 1, workspace, 1
34 +bind = $mainMod, 2, workspace, 2
35 +bind = $mainMod, 3, workspace, 3
37 +# Move focus
38 +bind = $mainMod, h, movefocus, l
39 +bind = $mainMod, l, movefocus, r
40 +bind = $mainMod, k, movefocus, u
41 +bind = $mainMod, j, movefocus, d
43 +# Move windows with keys
44 +bind = $mainMod SHIFT, h, movewindow, l
45 +bind = $mainMod SHIFT, l, movewindow, r
46 +bind = $mainMod SHIFT, k, movewindow, u
47 +bind = $mainMod SHIFT, j, movewindow, d
49 +# Resize windows with keys
50 +bind = $mainMod CTRL, h, resizeactive, -20 0
51 +bind = $mainMod CTRL, l, resizeactive, 20 0
52 +bind = $mainMod CTRL, k, resizeactive, 0 -20
53 +bind = $mainMod CTRL, j, resizeactive, 0 20
55 +# Move windows to another monitor
56 +bind = $mainMod, M, movecurrentworkspacetomonitor, +1 # Move to next monitor
57 +bind = $mainMod SHIFT, M, movecurrentworkspacetomonitor, -1 # Move to previous monitor
59 +# Advanced tiling
60 +bind = $mainMod ALT, left, swapwindow, l # Swap window left
61 +bind = $mainMod ALT, right, swapwindow, r # Swap window right
62 +bind = $mainMod ALT, up, swapwindow, u # Swap window up
63 +bind = $mainMod ALT, down, swapwindow, d # Swap window down
64 +bind = $mainMod CTRL, left, splitratio, -0.1 # Decrease split ratio
65 +bind = $mainMod CTRL, right, splitratio, +0.1 # Increase split ratio
67 +# Window management
68 +bind = $mainMod, F11, fullscreen, 0 # Toggle fullscreen
69 +bind = $mainMod, T, togglefloating # Toggle floating
70 +bind = $mainMod, P, pseudo # Pseudo-tiling for floating windows
71 +bind = $mainMod, V, togglesplit,
73 +# Close Hyprland
74 +bind = $mainMod SHIFT, Q, exit # Exit Hyprland
76 +# Reload configuration
77 +bind = $mainMod SHIFT, R, exec, hyprctl reload # Reload Hyprland config
79 +# Mouse bindings
80 +bindm = $mainMod, mouse:272, movewindow # SUPER + left click to move
81 +bindm = $mainMod, mouse:273, resizewindow # SUPER + right click to resize
83 +# Screenshots
84 +bind = , PRINT, exec, hyprshot -m region
85 +bind = SHIFT, PRINT, exec, hyprshot -m window
86 +bind = CTRL, PRINT, exec, hyprshot -m output
88 +# Color picker
89 +bind = SUPER, PRINT, exec, hyprpicker -a

hypr/clipse.conf

Added
new 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

Added
new 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

Added
new file mode 100644
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.
5 +}
7 +listener {
8 + timeout = 300 # 5min
9 + on-timeout = loginctl lock-session # lock screen when timeout has passed
12 +listener {
13 + timeout = 330 # 5.5min
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
18 +listener {
19 + timeout = 1200
20 + on-timeout = systemctl suspend

hypr/hyprland.conf

Added
new 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
28 +# https://wiki.hyprland.org/Configuring/Variables/#misc
29 +misc {
30 + disable_hyprland_logo = true
31 + disable_splash_rendering = true
34 +# Don't show update on first launch
35 +ecosystem {
36 + no_update_news = true

hypr/hyprlock.conf

Added
new file mode 100644
1 +general {
2 + hide_cursor = true
3 + ignore_empty_input = true
4 + fail_timeout = 1500
5 +}
7 +background {
8 + monitor =
9 + path = screenshot
10 + color = rgba(2e3440ff)
11 + blur_passes = 4
14 +input-field {
15 + monitor = DP-1
16 + size = 600, 100
17 + position = 0, 0
18 + halign = center
19 + valign = center
21 + outer_color = rgba(88c0d0ff)
22 + inner_color = rgba(2e3440ff)
23 + outline_thickness = 4
25 + font_family = Monaspace Krypton Var
26 + font_color = rgba(eceff4ff)
28 + placeholder_text = 󰟵 enter password
29 + check_color = rgba(eceff4ff)
30 + fail_text = Wrong
32 + rounding = 8
33 + shadow_passes = 0
34 + fade_on_empty = false

hypr/hyprpaper.conf

Added
new file mode 100644
1 +# ~/.config/hypr/hyprpaper.conf
2 +# See: https://wiki.hypr.land/Configuring/Hyprpaper/
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 +splash = false

hypr/hyprsunset.conf

Added
new file mode 100644
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

hypr/input.conf

Added
new 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

hypr/monitors.conf

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

hypr/scripts/show_binds.nu

Added
new file mode 100644
1 +# Function to parse modmask into readable modifier names
2 +def parse_modmask [modmask: int] {
3 + let modifiers = [
4 + { mask: 64, name: "SUPER" },
5 + { mask: 1, name: "SHIFT" },
6 + { mask: 4, name: "CTRL" },
7 + { mask: 8, name: "ALT" }
8 + ]
9 + let active_mods = $modifiers | where { |mod| ($modmask | bits and $mod.mask) != 0 } | get name
10 + if ($active_mods | is-empty) { "None" } else { $active_mods | str join "+" }
13 +# Function to format key for display
14 +def format_key [key: string, mouse: bool] {
15 + if $mouse {
16 + $key | str replace "mouse:" "MOUSE_"
17 + } else {
18 + $key | str upcase
19 + }
22 +# Main function to process binds and show fuzzel menu
23 +def main [] {
24 + # Get binds from hyprctl
25 + let binds = (hyprctl binds -j | from json)
27 + # Parse binds into a formatted list for fuzzel
28 + let formatted_binds = $binds | each { |bind|
29 + let mods = (parse_modmask $bind.modmask)
30 + let key = (format_key $bind.key $bind.mouse)
31 + let display = $"($mods) + ($key) -> ($bind.dispatcher): ($bind.arg)"
32 + { display: $display, arg: $bind.arg, dispatcher: $bind.dispatcher }
33 + }
35 + # Create a temporary file for fuzzel
36 + let temp_file = (mktemp -t hypr_binds.XXXXXX | str trim)
37 + $formatted_binds | each { |b| $b.display } | str join "\n" | save -f $temp_file
39 + # Show fuzzel menu and get selection
40 + let selection = (cat $temp_file | fuzzel --dmenu --prompt "Keybindings: " | str trim)
41 + rm $temp_file
43 + # Find the selected binding and execute its arg
44 + if ($selection | is-not-empty) {
45 + let selected_bind = ($formatted_binds | where display == $selection | first)
46 + if ($selected_bind | is-not-empty) {
47 + if $selected_bind.dispatcher == "exec" {
48 + run-external ($selected_bind.arg | split row ' ')
49 + } else {
50 + hyprctl dispatch $selected_bind.dispatcher $selected_bind.arg
51 + }
52 + }
53 + }

hypr/scripts/show_clients.nu

Added
new file mode 100644
1 +# Fetch and parse hyprctl clients JSON
2 +let clients = (hyprctl clients -j | from json)
4 +# Format clients for fuzzel: "class: title (workspace)"
5 +let formatted = ($clients | each { |client|
6 + $"($client.class): ($client.title) \(($client.workspace.name)\)"
7 +} | str join "\n")
9 +# Pipe formatted list to fuzzel and get selected item
10 +let selected = ($formatted | fuzzel --dmenu --prompt "Select window: " | str trim)
12 +# Exit if no selection
13 +if ($selected | is-empty) {
14 + exit 0
17 +# Find the index of the selected item
18 +let selected_index = ($formatted | split row "\n" | enumerate | where item == $selected | get 0.index)
20 +# Get the address of the selected client
21 +let address = ($clients | get $selected_index | get address)
23 +# Focus the selected window
24 +hyprctl -q dispatch focuswindow address:($address)
25 +hyprctl -q dispatch alterzorder top

hypr/systemd/eww.service

Added
new 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

Added
new 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

Added
new 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

Added
new 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/theme.conf

Added
new 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
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 + }
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
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
79 +# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
80 +master {
81 + new_status = master

hypr/windows.conf

Added
new 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

justfile

Modified
6 6 # link dorkfiles into HOME
7 7 link:
8 8 java bootstripper.java
9 + nu enable_user_services.nu
10 11 # remove links to dorkfiles in HOME
11 12 unlink:
22 23 # install previously exported winget apps. see topgrade config for exports.
23 24 import_winget:
24 - winget import X:/winget_installed_apps.json
26 -# enable user systemd services
27 -enable_user_services:
28 - nu enable_user_services.nu
25 + winget import C:/Users/okr/Tools/winget_installed_apps.json
30 27 # fix some file permissions
31 28 fix_permissions:

mako/config

Added
new file mode 100644
1 +# ~/.config/mako/config
2 +# See: https://wayland.emersion.fr/mako/
4 +font=Monaspace Neon Var 10
5 +background-color=#2e3440ff
6 +text-color=#eceff4ff
7 +border-color=#88c0d0ff
8 +border-size=2
9 +border-radius=5
10 +padding=10
11 +margin=10
12 +anchor=top-right
13 +width=300
14 +height=100
15 +default-timeout=5000
16 +max-history=50
17 +format=%s\n%b
18 +actions=true

neovim/README.md

Modified
51 51 * steal <https://github.com/olrtg/nvim-emmet>
52 52 * use checkhealth to find deprecations and fix
53 +* why are some highlights like "Parameter" visually wrong? the look fine in nugu

neovim/lua/bugabinga/format.lua

Modified
13 13 vim.lsp.buf.format {
14 14 filter = function(client)
15 - local ok = client.supports_method 'textDocument/formatting' ---@diagnostic disable-line: param-type-mismatch, missing-parameter
15 + local ok = client:supports_method 'textDocument/formatting' ---@diagnostic disable-line: param-type-mismatch, missing-parameter
16 16 if ok and dbg.get() then print('Using LSP formatter: ' .. client.name) end
17 17 return ok
18 18 end,
37 37 toml = { 'taplo' },
38 38 sh = { 'shfmt' },
39 39 just = { 'just' },
40 - zig = { 'zigfmt' },
41 40 markdown = { 'mdslw' },
42 41 -- Use the “*” file type to run formatters on all file types.
43 42 ['*'] = { 'injected', 'typos' },

neovim/lua/bugabinga/nugu/init.lua

Modified
138 138 _.CursorLine { bg = ui_unfocus }
139 139 _.CursorLineNr { fg = ui_focus, bg = ui_backdrop }
140 140 _.CursorLineSign = _.CursorLineNr
141 -_.Search { bg = content_unfocus }
142 -_.IncSearch { fg = content_focus }
143 -_.CurSearch { fg = content_important_global, bg = content_unfocus }
141 +_.Search { fg = content_backdrop, bg = content_focus }
142 +_.IncSearch { fg = content_backdrop, bg = content_unfocus }
143 +_.CurSearch { fg = content_backdrop, bg = content_important_local }
144 144 _.ColorColumn { fg = ui_important_global, bg = _.Normal.bg }
145 145 _.Conceal { fg = content_focus, bg = _.Normal.bg }
146 146 _.Cursor { fg = content_backdrop, bg = content_accent }
195 195 _.Float = _.String
196 196 _.Identifier { fg = _.Normal.fg }
197 197 _.Function { fg = _.Normal.fg }
198 -_.FunctionDeclaration { fg = _.Normal.fg, underline = true }
198 +_.FunctionDeclaration { fg = _.Function.fg, underline = true }
199 +_.Parameter { fg = content_important_local, bold = true }
199 200 _.MutableVariable = { fg = _.Parameter.fg, underline = true }
200 -_.Parameter { fg = content_important_local }
201 -_.Type { fg = _.Normal.fg }
201 +_.Type { fg = _.Identifier.fg }
202 202 _.Delimiter { fg = content_minor }
204 204 _.Statement { fg = content_minor }
338 338 _['@lsp.type.variable'] = _['@variable']
339 339 _['@lsp.typemod.function.declaration'] = _.FunctionDeclaration
340 340 _['@lsp.typemod.method.declaration'] = _.FunctionDeclaration
341 +_['@lsp.typemod.parameter.declaration'] = _.Parameter
342 343 return function()
343 344 local namespace = 0

neovim/lua/bugabinga/options/keymaps.lua

Modified
3 3 local map = require 'std.map'
4 4 local togglers = require 'bugabinga.options.togglers'
6 6 -- set <SPACE> as leader key
7 7 map {
8 - keys = '<space>',
9 - command = '<nop>',
8 + keys = '<space>',
9 + command = '<nop>',
11 11 vim.g.mapleader = ' '
12 12 vim.g.maplocalleader = ' '
14 14 -- disable them evil arrows
15 15 map {
16 - keys = '<up>',
17 - command = '<nop>',
16 + keys = '<up>',
17 + command = '<nop>',
20 20 map {
21 - keys = '<down>',
22 - command = '<nop>',
21 + keys = '<down>',
22 + command = '<nop>',
25 25 map {
26 - keys = '<left>',
27 - command = '<nop>',
26 + keys = '<left>',
27 + command = '<nop>',
30 30 map {
31 - keys = '<right>',
32 - command = '<nop>',
31 + keys = '<right>',
32 + command = '<nop>',
35 35 map.visual {
36 - description = 'Keep visual selection when indenting',
37 - keys = '>',
38 - command = '>gv',
39 - remap = false,
36 + description = 'Keep visual selection when indenting',
37 + keys = '>',
38 + command = '>gv',
39 + remap = false,
42 42 map.visual {
43 - description = 'Keep visual selection when outdenting',
44 - keys = '<',
45 - command = '<gv',
46 - remap = false,
43 + description = 'Keep visual selection when outdenting',
44 + keys = '<',
45 + command = '<gv',
46 + remap = false,
49 49 map.normal {
50 - description = 'Dismiss current search highlight',
51 - category = 'search',
52 - keys = '<esc><esc>',
53 - command = vim.cmd.nohlsearch
50 + description = 'Dismiss current search highlight',
51 + category = 'search',
52 + keys = '<esc><esc>',
53 + command = vim.cmd.nohlsearch
56 56 map.normal {
57 - description = 'Source current file',
58 - category = 'vim',
59 - keys = '<leader>xx',
60 - command = function()
61 - vim.cmd.source '%'
62 - vim.notify('Sourcing current file...')
63 - end,
57 + description = 'Source current file',
58 + category = 'vim',
59 + keys = '<leader>xx',
60 + command = function()
61 + vim.cmd.source '%'
62 + vim.notify('Sourcing current file...')
63 + end,
66 66 map.normal {
67 - description = 'Toggle dark/light theme variant',
68 - category = 'ui',
69 - keys = '<leader>tt',
70 - command = function()
71 - if vim.opt.background:get() == 'dark' then ---@diagnostic disable-line: undefined-field
72 - vim.opt.background = 'light'
73 - else
74 - vim.opt.background = 'dark'
75 - end
76 - vim.notify('Toggled background to ' .. vim.opt.background:get() .. '.') ---@diagnostic disable-line: undefined-field
77 - end,
67 + description = 'Toggle dark/light theme variant',
68 + category = 'ui',
69 + keys = '<leader>tt',
70 + command = function()
71 + if vim.opt.background:get() == 'dark' then ---@diagnostic disable-line: undefined-field
72 + vim.opt.background = 'light'
73 + else
74 + vim.opt.background = 'dark'
75 + end
76 + vim.notify('Toggled background to ' .. vim.opt.background:get() .. '.') ---@diagnostic disable-line: undefined-field
77 + end,
80 80 map.normal {
81 - description = 'Redo undone operation',
82 - category = 'history',
83 - keys = 'U',
84 - command = vim.cmd.redo,
81 + description = 'Redo undone operation',
82 + category = 'history',
83 + keys = 'U',
84 + command = vim.cmd.redo,
87 87 for _, toggler in ipairs(togglers) do
88 - local option_name = toggler.options[1].name
89 - local first_char = string.sub(option_name, 1, 1)
88 + local option_name = toggler.options[1].name
89 + local first_char = string.sub(option_name, 1, 1)
91 - map.normal {
92 - description = 'Toggle ' .. option_name .. ' option',
93 - category = 'options',
94 - keys = '<leader>t' .. first_char,
95 - command = function()
96 - toggler:toggle()
97 - end,
98 - }
91 + map.normal {
92 + description = 'Toggle ' .. option_name .. ' option',
93 + category = 'options',
94 + keys = '<leader>t' .. first_char,
95 + command = function()
96 + toggler:toggle()
97 + end,
98 + }
101 101 map.normal {
102 - description = 'Run command and pipe output into temp buffer',
103 - category = 'external',
104 - keys = '<leader>c',
105 - command = function()
106 - vim.ui.input({ prompt = 'command: ' }, function(cmd)
107 - if cmd and cmd ~= '' then
108 - vim.cmd [[noswapfile vnew]]
109 - vim.bo.buftype = 'nofile'
110 - vim.bo.bufhidden = 'wipe'
111 - vim.api.nvim_buf_set_lines(0, 0, -1, false, vim.fn.systemlist(cmd))
112 - end
113 - end)
114 - end,
102 + description = 'Run command and pipe output into temp buffer',
103 + category = 'external',
104 + keys = '<leader>c',
105 + command = function()
106 + vim.ui.input({ prompt = 'command: ' }, function(cmd)
107 + if cmd and cmd ~= '' then
108 + vim.cmd [[noswapfile vnew]]
109 + vim.bo.buftype = 'nofile'
110 + vim.bo.bufhidden = 'wipe'
111 + vim.api.nvim_buf_set_lines(0, 0, -1, false, vim.fn.systemlist(cmd))
112 + end
113 + end)
114 + end,
117 +map.normal {
118 + description = 'Select all text in current buffer',
119 + category = 'edit',
120 + keys = '<leader>a',
121 + command = 'ggVG'

wezterm/bugabinga/fonts.lua

Modified
93 93 harfbuzz_features = harfbuzz_features,
96 - { -- Half
97 - intensity = 'Half',
98 - italic = false,
99 - font = wez.font {
100 - family = 'Monaspace Krypton Var',
101 - weight = 'Book',
102 - harfbuzz_features = harfbuzz_features,
103 - },
104 - },
105 96 { -- Normal italic
106 97 intensity = 'Normal',
107 98 italic = true,
108 99 font = wez.font {
109 - family = 'Monaspace Argon Var',
100 + family = 'Monaspace Radon Var',
110 101 weight = 'Regular',
111 102 style = 'Italic',
112 103 harfbuzz_features = harfbuzz_features,
116 107 intensity = 'Bold',
117 108 italic = true,
118 109 font = wez.font {
119 - family = 'Monaspace Argon Var',
110 + family = 'Monaspace Krypton Var',
120 111 weight = 'DemiBold',
121 112 style = 'Italic',
122 113 harfbuzz_features = harfbuzz_features,
125 - { -- Half italic
126 - intensity = 'Half',
127 - italic = true,
128 - font = wez.font {
129 - family = 'Monaspace Argon Var',
130 - weight = 'Thin',
131 - style = 'Italic',
132 - harfbuzz_features = hrfbuzz_features,
133 - },
134 - },
136 117 cfg.font = font
137 118 cfg.freetype_load_flags = 'NO_HINTING'

wezterm/wezterm.lua

Modified
15 15 require 'bugabinga.dotfiles_workspace' ( cfg )
16 16 require 'bugabinga.hosts' ( cfg )
18 --- sad sauce
19 --- https://github.com/wezterm/wezterm/issues/5103
20 -if os.getenv 'XDG_CURRENT_DESKTOP' == 'Hyprland' then
21 - cfg.enable_wayland = false
22 -else
23 - cfg.enable_wayland = true
24 -end
26 18 -- logs key presses
27 19 -- cfg.debug_key_events = true,
28 20 return cfg