Rebind keys and use variables for some stuff

This commit is contained in:
NullBite 2024-01-01 16:40:36 -05:00
parent 45c5a1754c
commit bbc6fd99f1
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -1,8 +1,20 @@
{ lib, pkgs, osConfig, ... }:
let
mkd = lib.mkDefault;
terminal = "${pkgs.kitty}/bin/kitty";
files = "${pkgs.dolphin}/bin/dolphin";
rofi = "${pkgs.wofi}/bin/wofi";
notifydaemon = "${pkgs.dunst}/bin/dunst";
in
{
home.packages = with pkgs; [
kitty
dolphin
wofi
wev
dunst
];
wayland.windowManager.hyprland = {
enable = true;
settings = {
@ -18,6 +30,10 @@ in
# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox
exec-once = [
notifydaemon
];
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
@ -119,14 +135,15 @@ in
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = [
"$mod, Q, exec, kitty"
"$mod, Q, exec, ${terminal}"
"$mod, Return, exec, ${terminal}"
"$mod, C, killactive, "
"$mod, M, exit, "
"$mod, E, exec, dolphin"
"$mod, E, exec, ${files}"
"$mod, V, togglefloating, "
"$mod, R, exec, wofi --show drun"
"$mod, R, exec, ${rofi} --show drun"
"$mod, P, pseudo," # dwindle"
"$mod, J, togglesplit," # dwindle"
"$mod, O, togglesplit," # dwindle"
# Move focus with mod + arrow keys
"$mod, left, movefocus, l"
@ -134,6 +151,11 @@ in
"$mod, up, movefocus, u"
"$mod, down, movefocus, d"
"$mod, h, movefocus, l"
"$mod, j, movefocus, d"
"$mod, k, movefocus, u"
"$mod, l, movefocus, r"
# Switch workspaces with mod + [0-9]
"$mod, 1, workspace, 1"
"$mod, 2, workspace, 2"
@ -171,6 +193,8 @@ in
# Move/resize windows with mod + LMB/RMB and dragging
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"
# RMB sucks on laptop
"$mod SHIFT, mouse:272, resizewindow"
];
};
};