keybinds
This commit is contained in:
parent
96b2e6073d
commit
87d48e27b0
1 changed files with 18 additions and 10 deletions
|
@ -97,14 +97,17 @@ in {
|
||||||
|
|
||||||
mode="$1"
|
mode="$1"
|
||||||
case "$mode" in
|
case "$mode" in
|
||||||
fullscreen)
|
screen)
|
||||||
mode="output"
|
mode="output"
|
||||||
;;
|
;;
|
||||||
area)
|
area)
|
||||||
mode="area"
|
mode="area"
|
||||||
;;
|
;;
|
||||||
|
window)
|
||||||
|
mode="active"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "usage: $0 [fullscreen|area]" >&2
|
echo "usage: $0 [screen|area|window]" >&2
|
||||||
exit 2
|
exit 2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -126,11 +129,15 @@ in {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
'';
|
'';
|
||||||
|
pickerScript = pkgs.writeShellScript "color-picker" ''
|
||||||
|
${lib.getExe pkgs.zenity} --color-selection --color $(${lib.getExe pkgs.hyprpicker})
|
||||||
|
'';
|
||||||
in [
|
in [
|
||||||
"$mod, Q, killactive, "
|
"$mod, Q, killactive, "
|
||||||
"$mod, F, togglefloating, "
|
"$mod, F, togglefloating, "
|
||||||
"$mod, P, pseudo, " # dwindle
|
"$mod, P, pseudo, " # dwindle
|
||||||
"$mod, J, togglesplit, " # dwindle
|
"$mod, J, togglesplit, " # dwindle
|
||||||
|
"$mod SHIFT, F, fullscreen, "
|
||||||
|
|
||||||
# move focus with mod + arrow keys
|
# move focus with mod + arrow keys
|
||||||
"$mod, left, movefocus, l"
|
"$mod, left, movefocus, l"
|
||||||
|
@ -163,9 +170,14 @@ in {
|
||||||
# area
|
# area
|
||||||
", Print, exec, ${screenshotScript} area"
|
", Print, exec, ${screenshotScript} area"
|
||||||
"$mod SHIFT, S, exec, ${screenshotScript} area"
|
"$mod SHIFT, S, exec, ${screenshotScript} area"
|
||||||
# fullscreen
|
# screen
|
||||||
"CTRL, Print, exec, ${screenshotScript} fullscreen"
|
"CTRL, Print, exec, ${screenshotScript} screen"
|
||||||
"$mod SHIFT CTRL, S, exec, ${screenshotScript} fullscreen"
|
"$mod SHIFT CTRL, S, exec, ${screenshotScript} screen"
|
||||||
|
# window
|
||||||
|
"ALT, Print, exec, ${screenshotScript} window"
|
||||||
|
"$mod SHIFT ALT, S, exec, ${screenshotScript} window"
|
||||||
|
# pick color
|
||||||
|
"$mod SHIFT, C, exec, ${pickerScript}"
|
||||||
|
|
||||||
", XF86LaunchA, exec, ${screenshotScript} area"
|
", XF86LaunchA, exec, ${screenshotScript} area"
|
||||||
", XF86LaunchB, exec, ${lib.getExe pkgs.rofi-rbw-wayland} -a copy -t password --clear-after 20"
|
", XF86LaunchB, exec, ${lib.getExe pkgs.rofi-rbw-wayland} -a copy -t password --clear-after 20"
|
||||||
|
@ -348,14 +360,10 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
dwindle = {
|
dwindle = {
|
||||||
pseudotile = "yes"; # master swtich for pseudotiling. enabling is mod + P in the keybinds section
|
pseudotile = "yes"; # master switch for pseudotiling. enabling is mod + P in the keybinds section
|
||||||
preserve_split = "yes";
|
preserve_split = "yes";
|
||||||
};
|
};
|
||||||
|
|
||||||
master = {
|
|
||||||
new_status = "master";
|
|
||||||
};
|
|
||||||
|
|
||||||
gestures = {
|
gestures = {
|
||||||
workspace_swipe = true;
|
workspace_swipe = true;
|
||||||
workspace_swipe_min_speed_to_force = 0;
|
workspace_swipe_min_speed_to_force = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue