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