Skip to content
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
32caab0
chore: update
shunkakinoki Feb 6, 2026
98990d9
chore: update
shunkakinoki Feb 6, 2026
8a70a45
feat(matic): add hyprland keyd agenix
shunkakinoki Feb 6, 2026
7e5d92f
chore: update
shunkakinoki Feb 6, 2026
eda6868
feat: enhance Hyprland configuration with new components and styles
shunkakinoki Feb 6, 2026
74a9b5d
feat(matic): add SSH and GPG key configurations for agenix deployment
shunkakinoki Feb 6, 2026
210b92e
feat(matic): update secrets.nix to reflect synchronization from galac…
shunkakinoki Feb 6, 2026
9112ab7
feat(matic): update GPG and SSH key files for synchronization
shunkakinoki Feb 6, 2026
03b6ef5
feat(hyprland): update window rule syntax and remove workspace swipe …
shunkakinoki Feb 6, 2026
5bd8414
feat(hyprland): update gesture settings and refine window rules syntax
shunkakinoki Feb 6, 2026
518d507
feat(hyprland): refine window animation settings for improved perform…
shunkakinoki Feb 6, 2026
4c364db
feat(hyprland): update window rule for wofi to focus on activation
shunkakinoki Feb 6, 2026
92ea474
feat(hyprland): change key binding for killing active window from Q to W
shunkakinoki Feb 6, 2026
8bc9e03
feat(hyprland): update workspace format to display workspace ID
shunkakinoki Feb 6, 2026
c7bb5be
feat(hyprland): update gesture setting for horizontal workspace navig…
shunkakinoki Feb 6, 2026
41affeb
feat(hyprland): add gesture setting for three-finger horizontal works…
shunkakinoki Feb 6, 2026
eb74328
feat(hyprland): update app launch hotkeys to use application IDs
shunkakinoki Feb 6, 2026
addf261
feat(hyprland): update clipboard binding to use Shift modifier and ad…
shunkakinoki Feb 6, 2026
5fff3b6
feat(hyprland): remove redundant window rule for wofi focus behavior
shunkakinoki Feb 6, 2026
ebfee4b
feat(hyprland): update app launch bindings to use direct commands
shunkakinoki Feb 6, 2026
ec059c7
feat(hyprland): integrate Hyprland and its plugins into the Nix confi…
shunkakinoki Feb 6, 2026
3b7bd2e
feat(hyprland): enhance media and hardware key bindings for improved …
shunkakinoki Feb 6, 2026
9b5516c
feat(hyprland): update clock format to include full date and time
shunkakinoki Feb 6, 2026
879744e
feat(hyprland): add CPU and memory modules to waybar configuration
shunkakinoki Feb 6, 2026
c261980
feat(hyprland): add color definitions for CPU and memory modules in w…
shunkakinoki Feb 6, 2026
0a3b3c1
feat(hyprland): add spacing for CPU and memory modules in waybar style
shunkakinoki Feb 6, 2026
31dcb7e
feat(hyprland): update waybar color scheme for CPU and memory modules
shunkakinoki Feb 6, 2026
4d15728
chore: add hyprland cachix binary cache globally
shunkakinoki Feb 6, 2026
48b5822
feat(hyprland): update gesture configuration for workspace management
shunkakinoki Feb 6, 2026
f833a86
feat(hyprland): update gesture configuration for workspace management
shunkakinoki Feb 6, 2026
e542a54
feat(hyprland): update fullscreen binding to use hyprctl for workspac…
shunkakinoki Feb 6, 2026
b1c864d
feat(hyprland): add package definition for hyprland in default.nix
shunkakinoki Feb 6, 2026
ede5b9e
feat(hyprland): refactor plugin configuration for hyprexpo in default…
shunkakinoki Feb 6, 2026
54e0a1c
feat(hyprland): fix formatting of extraConfig in default.nix
shunkakinoki Feb 6, 2026
80ad0ed
feat(hyprland): update Hyprland URL to specific version v0.53.3 in fl…
shunkakinoki Feb 6, 2026
cf3ac92
Revert "feat(hyprland): update Hyprland URL to specific version v0.53…
shunkakinoki Feb 6, 2026
8012ff8
feat(hyprland): simplify hyprexpo plugin and package references in de…
shunkakinoki Feb 6, 2026
9a84a02
feat(hyprland): remove hyprland and hyprland-plugins inputs from flak…
shunkakinoki Feb 6, 2026
bc47c24
feat(hyprland): add gesture bindings for hyprexpo and adjust plugin s…
shunkakinoki Feb 6, 2026
28b68e4
feat(hyprland): update gesture settings and enhance keyd configuratio…
shunkakinoki Feb 6, 2026
781c776
feat(keyd): add leftmeta key mapping and update restart triggers in d…
shunkakinoki Feb 6, 2026
9c54d03
feat(hyprland): add key bindings for function keys to control audio a…
shunkakinoki Feb 6, 2026
41dcbde
feat(hyprland): update F9 key binding to toggle display scale between…
shunkakinoki Feb 6, 2026
4859b7a
feat(ghostty): add key bindings for copy and paste functionality
shunkakinoki Feb 6, 2026
89e3008
feat(hyprland): add key binding for emoji selection and update gestur…
shunkakinoki Feb 6, 2026
3022a3c
feat(hyprland): update fullscreen key binding to use Ctrl+Super+F
shunkakinoki Feb 6, 2026
98945b3
feat(hyprland): update fullscreen key binding to use Ctrl+Alt+Shift+F
shunkakinoki Feb 6, 2026
2f2d4ca
feat(hyprland): update fullscreen key binding to use Ctrl+Alt+Shift+F
shunkakinoki Feb 6, 2026
247d0b6
feat(fish): add key bindings for clipboard paste functionality
shunkakinoki Feb 6, 2026
0d18047
feat(ghostty): enable clipboard write and copy-on-select functionality
shunkakinoki Feb 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions config/codex/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ notify = [

suppress_unstable_features_warning = true
web_search = "cached"
model = "gpt-5.3-codex"
model_reasoning_effort = "medium"

[features]
ghost_commit = false
Expand Down
17 changes: 17 additions & 0 deletions config/default.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{ inputs }:
let
inherit (inputs.host) isDesktop;
in
[
./aichat
./amp
Expand All @@ -23,3 +27,16 @@
./starship
./zellij
]
++ (
if isDesktop then
[
./gtk
./hyprland
./swaync
./waybar
./wlogout
./wofi
]
else
[ ]
)
35 changes: 35 additions & 0 deletions config/gtk/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
config,
pkgs,
lib,
...
}:
{
gtk = lib.mkIf pkgs.stdenv.isLinux {
enable = true;
theme = {
name = "Adwaita-dark";
package = pkgs.gnome-themes-extra;
};
iconTheme = {
name = "Adwaita";
package = pkgs.adwaita-icon-theme;
};
cursorTheme = {
name = "Adwaita";
size = 24;
};
gtk3.extraConfig = {
gtk-application-prefer-dark-theme = 1;
};
gtk4.extraConfig = {
gtk-application-prefer-dark-theme = 1;
};
};

dconf.settings = lib.mkIf pkgs.stdenv.isLinux {
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
}
15 changes: 15 additions & 0 deletions config/hyprland/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ config, ... }:
{
xdg.configFile."hypr/hyprland.conf" = {
source = ./hyprland.conf;
force = true;
};
xdg.configFile."hypr/hypridle.conf" = {
source = ./hypridle.conf;
force = true;
};
xdg.configFile."hypr/hyprlock.conf" = {
source = ./hyprlock.conf;
force = true;
};
}
31 changes: 31 additions & 0 deletions config/hyprland/hypridle.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
general {
lock_cmd = pidof hyprlock || hyprlock
before_sleep_cmd = loginctl lock-session
after_sleep_cmd = hyprctl dispatch dpms on
}

# Dim screen after 2.5 minutes
listener {
timeout = 150
on-timeout = brightnessctl -s set 10
on-resume = brightnessctl -r
}

# Lock screen after 5 minutes
listener {
timeout = 300
on-timeout = loginctl lock-session
}

# Turn off display after 5.5 minutes
listener {
timeout = 330
on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on
}

# Suspend after 30 minutes
listener {
timeout = 1800
on-timeout = systemctl suspend
}
273 changes: 273 additions & 0 deletions config/hyprland/hyprland.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@
# =============================================================================
# Dracula Colors
# =============================================================================
$background = rgb(282a36)
$currentline = rgb(44475a)
$foreground = rgb(f8f8f2)
$comment = rgb(6272a4)
$cyan = rgb(8be9fd)
$green = rgb(50fa7b)
$orange = rgb(ffb86c)
$pink = rgb(ff79c6)
$purple = rgb(bd93f9)
$red = rgb(ff5555)
$yellow = rgb(f1fa8c)

# =============================================================================
# Variables
# =============================================================================
$mod = SUPER

# =============================================================================
# Environment
# =============================================================================
env = XCURSOR_THEME,Adwaita
env = XCURSOR_SIZE,24
env = GTK_THEME,Adwaita:dark

# =============================================================================
# Startup
# =============================================================================
exec-once = dbus-update-activation-environment --systemd --all
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP XDG_SESSION_TYPE XDG_RUNTIME_DIR HYPRLAND_INSTANCE_SIGNATURE XDG_SESSION_DESKTOP

# Status bar
exec-once = waybar

# Notification daemon
exec-once = swaync

# Clipboard history
exec-once = wl-paste --type text --watch cliphist store
exec-once = wl-paste --type image --watch cliphist store

# Idle management
exec-once = hypridle

# Volume/brightness OSD
exec-once = rm -f /tmp/wobpipe && mkfifo /tmp/wobpipe && tail -f /tmp/wobpipe | wob

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

wob OSD pipe is created but never fed — no visual feedback for volume/brightness.

The named pipe /tmp/wobpipe is created and wob reads from it, but all volume commands (lines 257–264) use wpctl directly and brightness commands (lines 276–280) use brightnessctl directly — neither pipes output to /tmp/wobpipe. The OSD bar will never appear.

Either pipe the current value after each adjustment, or remove the wob setup if you don't want an OSD.

Example fix for volume keys (apply similar pattern to brightness)
 # F2: Volume down
-bindel = , XF86AudioLowerVolume, exec, wpctl set-volume `@DEFAULT_AUDIO_SINK`@ 5%-
+bindel = , XF86AudioLowerVolume, exec, wpctl set-volume `@DEFAULT_AUDIO_SINK`@ 5%- && wpctl get-volume `@DEFAULT_AUDIO_SINK`@ | awk '{print int($2*100)}' > /tmp/wobpipe
-bindel = , F2, exec, wpctl set-volume `@DEFAULT_AUDIO_SINK`@ 5%-
+bindel = , F2, exec, wpctl set-volume `@DEFAULT_AUDIO_SINK`@ 5%- && wpctl get-volume `@DEFAULT_AUDIO_SINK`@ | awk '{print int($2*100)}' > /tmp/wobpipe
🤖 Prompt for AI Agents
In `@config/hyprland/hyprland.conf` at line 48, The exec-once setup creates
/tmp/wobpipe and runs wob but nothing writes to it, so the OSD never appears;
update the volume and brightness key handlers (the commands that call wpctl and
brightnessctl) to send the current value into /tmp/wobpipe after each adjustment
(e.g., query the new volume/brightness and echo that formatted value into
/tmp/wobpipe), or remove the exec-once wob/fifo setup entirely if you don't want
an OSD; specifically modify the commands that invoke wpctl and brightnessctl to
append a write to /tmp/wobpipe so wob receives updates.


# =============================================================================
# Monitor (Framework 13" 2256x1504)
# =============================================================================
monitor = , preferred, auto, 1.5

# =============================================================================
# Input
# =============================================================================
input {
kb_layout = us
follow_mouse = 1
sensitivity = 0

touchpad {
natural_scroll = true
tap-to-click = true
drag_lock = true
}
}

gestures {
workspace_swipe = true
workspace_swipe_fingers = 3
}

# =============================================================================
# General
# =============================================================================
general {
gaps_in = 4
gaps_out = 8
border_size = 3
col.active_border = $purple $pink 45deg
col.inactive_border = $currentline
layout = dwindle
allow_tearing = false
resize_on_border = true
}

dwindle {
pseudotile = true
preserve_split = true
}

# =============================================================================
# Decoration
# =============================================================================
decoration {
rounding = 8

blur {
enabled = true
size = 5
passes = 3
new_optimizations = true
xray = true
}

shadow {
enabled = true
range = 15
render_power = 3
color = $background
}
}

# =============================================================================
# Animations
# =============================================================================
animations {
enabled = true

bezier = wind, 0.05, 0.9, 0.1, 1.05
bezier = winIn, 0.1, 1.1, 0.1, 1.1
bezier = winOut, 0.3, -0.3, 0, 1
bezier = liner, 1, 1, 1, 1

animation = windows, 1, 6, wind, slide
animation = windowsIn, 1, 6, winIn, slide
animation = windowsOut, 1, 5, winOut, slide
animation = windowsMove, 1, 5, wind, slide
animation = border, 1, 1, liner
animation = borderangle, 1, 30, liner, loop
animation = fade, 1, 10, default
animation = workspaces, 1, 5, wind
}

# =============================================================================
# Misc
# =============================================================================
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
force_default_wallpaper = 0
}

# =============================================================================
# Window Rules
# =============================================================================
windowrulev2 = float, class:^(wofi)$
windowrulev2 = stayfocused, class:^(wofi)$
windowrulev2 = float, class:^(1Password)$
windowrulev2 = float, title:^(Picture-in-Picture)$
windowrulev2 = pin, title:^(Picture-in-Picture)$

# Notification center blur
layerrule = blur, swaync-control-center
layerrule = blur, swaync-notification-window
layerrule = ignorezero, swaync-control-center
layerrule = ignorezero, swaync-notification-window

# Prevent wofi animation
layerrule = noanim, ^(wofi)$

# =============================================================================
# App Launch Hotkeys (Super + letter)
# =============================================================================
bind = $mod, T, exec, gtk-launch ghostty
bind = $mod, G, exec, gtk-launch google-chrome

Copilot AI Feb 6, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Hyprland configuration is missing essential window management keybindings. Users won't be able to close windows, switch workspaces, move windows, resize windows, or perform other basic window management tasks. Consider adding at least the following: window close (e.g., $mod+Q), workspace switching (e.g., $mod+1-9), window focus movement (e.g., $mod+arrow keys), window movement between workspaces, and window resize mode. Without these, the desktop environment will be difficult to use effectively.

Suggested change
bind = $mod, G, exec, gtk-launch google-chrome
bind = $mod, G, exec, gtk-launch google-chrome
# --------------------------------------------------------
# Essential window management keybindings
# --------------------------------------------------------
# Close focused window
bind = $mod, Q, killactive
# Workspace switching ($mod + 1-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
# Move focused window to workspace ($mod + Shift + 1-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
# Move focus between windows with arrow keys
bind = $mod, left, movefocus, l
bind = $mod, right, movefocus, r
bind = $mod, up, movefocus, u
bind = $mod, down, movefocus, d
# Resize mode: enter with $mod+R, then use arrows; exit with Escape or R
bind = $mod, R, submap, resize
submap = resize
bind = , left, resizeactive, -10 0
bind = , right, resizeactive, 10 0
bind = , up, resizeactive, 0 -10
bind = , down, resizeactive, 0 10
# Exit resize mode
bind = , escape, submap, reset
bind = , R, submap, reset
# Return to the default keymap
submap = reset

Copilot uses AI. Check for mistakes.
bind = $mod, S, exec, gtk-launch slack
bind = $mod, C, exec, gtk-launch cursor
bind = $mod, P, exec, gtk-launch 1password
bind = $mod, M, exec, gtk-launch signal-desktop
bind = $mod, N, exec, ghostty -e yazi
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
Comment on lines +161 to +167

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

# First, let's understand the repository structure
git ls-files | head -30

Repository: shunkakinoki/dotfiles

Length of output: 665


🏁 Script executed:

# Search for nix configuration files that define packages
fd -e nix | head -20

Repository: shunkakinoki/dotfiles

Length of output: 574


🏁 Script executed:

# Look for the packages/dependencies configuration
rg -n 'cursor|1password|signal-desktop' --type nix | head -30

Repository: shunkakinoki/dotfiles

Length of output: 454


🏁 Script executed:

# Check the specific file for context
cat -n config/hyprland/hyprland.conf | sed -n '155,175p'

Repository: shunkakinoki/dotfiles

Length of output: 1116


🏁 Script executed:

# Check what the cursor config module does
cat -n config/cursor/default.nix

Repository: shunkakinoki/dotfiles

Length of output: 221


🏁 Script executed:

# Check home-manager packages to see full context
cat -n home-manager/packages/default.nix | sed -n '20,35p'

Repository: shunkakinoki/dotfiles

Length of output: 321


🏁 Script executed:

# Check for .desktop files or xdg configuration
rg -n '\.desktop|xdgData|desktopItems' --type nix | head -20

Repository: shunkakinoki/dotfiles

Length of output: 152


🏁 Script executed:

# Search for 1password and signal-desktop configuration
rg -n '_1password-gui|signal-desktop' --type nix -B2 -A2

Repository: shunkakinoki/dotfiles

Length of output: 601


🏁 Script executed:

# Check home-manager configuration for xdg.desktopEntries or similar
rg -n 'xdg\.|desktopEntries' --type nix | head -20

Repository: shunkakinoki/dotfiles

Length of output: 1696


🏁 Script executed:

# Look for how packages are imported and if there's a desktop environment setup
cat -n home-manager/packages/default.nix | sed -n '1,30p'

Repository: shunkakinoki/dotfiles

Length of output: 629


🏁 Script executed:

# Check if there's any configuration for gtk or application launching
rg -n 'gtk-launch|desktopDatabase|xdg-utils' --type nix

Repository: shunkakinoki/dotfiles

Length of output: 47


🏁 Script executed:

# Verify the context around isDesktop and Linux packages
cat -n home-manager/packages/default.nix | sed -n '110,145p'

Repository: shunkakinoki/dotfiles

Length of output: 776


🏁 Script executed:

# Check if cursor is defined anywhere else in the nix config
rg -n '^cursor\s*=' --type nix

Repository: shunkakinoki/dotfiles

Length of output: 47


🏁 Script executed:

# Check if there's a custom desktop entry or application launcher for cursor
rg -n 'cursor' home-manager/packages/default.nix -B2 -A2

Repository: shunkakinoki/dotfiles

Length of output: 124


🏁 Script executed:

# Verify if nix-darwin homebrew config is used for Linux systems
cat -n nix-darwin/config/homebrew.nix | sed -n '70,85p'

Repository: shunkakinoki/dotfiles

Length of output: 478


🏁 Script executed:

# Check the system-specific configuration to understand if this is Linux or macOS
rg -n 'isDesktop|stdenv.isLinux' --type nix config/hyprland/ home-manager/ named-hosts/ | head -10

Repository: shunkakinoki/dotfiles

Length of output: 1263


🏁 Script executed:

# Check if cursor is wrapped or aliased anywhere
rg -n 'cursor' --type nix home-manager/ config/ | grep -v 'cursor-cli' | grep -v '.cursor'

Repository: shunkakinoki/dotfiles

Length of output: 47


🏁 Script executed:

# Verify the system this hyprland config is for - look at named-hosts
ls -la named-hosts/

Repository: shunkakinoki/dotfiles

Length of output: 410


🏁 Script executed:

# Check which host system uses hyprland
rg -n 'hyprland' --type nix named-hosts/

Repository: shunkakinoki/dotfiles

Length of output: 386


🏁 Script executed:

# Verify package names for 1password and signal-desktop
rg -n 'lib.optionals.*isDesktop' home-manager/packages/default.nix -A 30

Repository: shunkakinoki/dotfiles

Length of output: 594


🏁 Script executed:

# Double-check: is there any wrapping or aliasing of cursor-cli to cursor?
rg -n 'makeWrapper|symlinkJoin' --type nix | grep cursor

Repository: shunkakinoki/dotfiles

Length of output: 47


🏁 Script executed:

# Check what _1password-gui and signal-desktop actually provide
rg -n 'desktop|1password|signal' home-manager/ config/ named-hosts/ | grep -i 'desktop' | head -10

Repository: shunkakinoki/dotfiles

Length of output: 973


🏁 Script executed:

# Verify the exact package names and if they have .desktop files
cat -n home-manager/packages/default.nix | sed -n '115,150p'

Repository: shunkakinoki/dotfiles

Length of output: 755


🏁 Script executed:

# Final verification: check if this is the matic host (Linux) or another host
cat -n named-hosts/matic/default.nix | sed -n '100,130p'

Repository: shunkakinoki/dotfiles

Length of output: 1224


🏁 Script executed:

# Confirm what exact packages are included for desktop Linux systems
cat -n home-manager/packages/default.nix | sed -n '1,10p'

Repository: shunkakinoki/dotfiles

Length of output: 275


Fix the cursor binding — the desktop app binary is not available.

The binding on line 164 will fail at runtime. Only cursor-cli is in the Linux packages (home-manager/packages/default.nix), not the cursor desktop editor binary. The cursor entry in nix-darwin/config/homebrew.nix is for macOS and not applicable here.

The gtk-launch 1password and gtk-launch signal-desktop bindings should work correctly—both _1password-gui and signal-desktop are present in the Linux desktop packages and will provide the required .desktop files.

🤖 Prompt for AI Agents
In `@config/hyprland/hyprland.conf` around lines 161 - 167, The binding "bind =
$mod, C, exec, cursor" will fail because the desktop binary isn't available on
Linux; replace it with the installed CLI binary name from the package set (e.g.,
use "cursor-cli") or point the binding to the correct executable provided by the
Linux package; update the bind line that references "cursor" so it calls the
available binary (reference: the bind line with "$mod, C, exec, cursor" and the
package "cursor-cli") and keep the existing gtk-launch entries for 1password and
signal-desktop as-is.


# =============================================================================
# Launcher & Clipboard
# =============================================================================
bind = $mod, D, exec, wofi --show drun
bind = $mod, V, exec, cliphist list | wofi --dmenu | cliphist decode | wl-copy

# =============================================================================
# Window Management
# =============================================================================
bind = $mod, Q, killactive,
bind = $mod, F, togglefloating,
bind = $mod SHIFT, F, fullscreen,
bind = $mod SHIFT, Q, exec, wlogout

# Focus (vim keys)
bind = $mod, H, movefocus, l
bind = $mod, L, movefocus, r
bind = $mod, K, movefocus, u
bind = $mod, J, movefocus, d

# Focus (arrow keys)
bind = $mod, left, movefocus, l
bind = $mod, right, movefocus, r
bind = $mod, up, movefocus, u
bind = $mod, down, movefocus, d

# Move windows (vim keys)
bind = $mod SHIFT, H, movewindow, l
bind = $mod SHIFT, L, movewindow, r
bind = $mod SHIFT, K, movewindow, u
bind = $mod SHIFT, J, movewindow, d

# Move windows (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

# Resize windows
binde = $mod CTRL, left, resizeactive, -20 0
binde = $mod CTRL, right, resizeactive, 20 0
binde = $mod CTRL, up, resizeactive, 0 -20
binde = $mod CTRL, down, resizeactive, 0 20

# =============================================================================
# Workspaces
# =============================================================================
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 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

# Scroll through workspaces
bind = $mod, mouse_down, workspace, e+1
bind = $mod, mouse_up, workspace, e-1

# Mouse window management
bindm = $mod, mouse:272, movewindow
bindm = $mod, mouse:273, resizewindow

# =============================================================================
# Screenshot
# =============================================================================
bind = $mod SHIFT, S, exec, grim -g "$(slurp)" - | swappy -f -
bind = , Print, exec, grim -g "$(slurp)" - | swappy -f -

# =============================================================================
# Media / Hardware Keys
# =============================================================================
bindel = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{print int($2*100)}' > /tmp/wobpipe
bindel = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk '{print int($2*100)}' > /tmp/wobpipe
bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindel = , XF86MonBrightnessUp, exec, brightnessctl set 5%+ && brightnessctl -m | awk -F, '{print substr($4,0,length($4)-1)}' > /tmp/wobpipe
bindel = , XF86MonBrightnessDown, exec, brightnessctl set 5%- && brightnessctl -m | awk -F, '{print substr($4,0,length($4)-1)}' > /tmp/wobpipe

# =============================================================================
# Lock Screen
# =============================================================================
bind = $mod CTRL, L, exec, hyprlock

# =============================================================================
# Notification Toggle
# =============================================================================
bind = $mod SHIFT, D, exec, swaync-client -t -sw
Loading
Loading