📦 Moved more configs to common files, and refactored code with common

This commit is contained in:
2025-01-08 19:47:02 +01:00
parent 57ebb73095
commit 89acd3e5cb
15 changed files with 317 additions and 243 deletions

View File

@ -1,20 +1,27 @@
let
common = import ../../common.nix;
app = common.default;
in
{
# TODO binds to move focused window
wayland.windowManager.hyprland.settings = {
"$mainMod" = "SUPER";
"$shiftMod" = "$mainMod SHIFT";
"$menu" = "rofi -show drun";
bind = [
"$mainMod, Q, exec, $terminal"
"$mainMod, Q, exec, ${app.terminal}"
"$mainMod, C, killactive,"
"$shiftMod, M, exit,"
"$mainMod, E, exec, $fileManager"
"$mainMod, E, exec, ${app.fileManager}"
"$mainMod, V, togglefloating,"
"$mainMod, R, exec, $menu"
"$mainMod, P, pseudo," # dwindle
"$mainMod, J, togglesplit," # dwindle
"$mainMod, B, exec, $browser"
"$mainMod, L, exec, hyprlock"
"$mainMod, K, exec, [float] gnome-calculator"
"$mainMod, B, exec, ${app.browser}"
"$mainMod, L, exec, ${app.lockScreen}"
"$mainMod, K, exec, [float] ${app.calculator}"
"$mainMod, ESC, exec, wlogout"
# Move focus with mainMod + arrow keys
"$mainMod, left, movefocus, l"