2024-04-07 22:16:33 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
2024-04-23 21:03:11 -04:00
|
|
|
osConfig,
|
2024-05-23 19:02:05 -04:00
|
|
|
inputs,
|
2024-04-07 22:16:33 -04:00
|
|
|
...
|
|
|
|
}: {
|
2024-05-26 01:44:34 -04:00
|
|
|
imports = [./randomWallpaper.nix ./redShift.nix];
|
2024-03-30 13:58:07 -04:00
|
|
|
|
2024-03-28 19:52:15 -04:00
|
|
|
options = {
|
2024-04-17 22:39:00 -04:00
|
|
|
alyraffauf.desktop.hyprland.enable =
|
2024-03-28 19:52:15 -04:00
|
|
|
lib.mkEnableOption "Enables hyprland with extra apps.";
|
2024-04-24 20:41:50 -04:00
|
|
|
alyraffauf.desktop.hyprland.autoSuspend = lib.mkOption {
|
|
|
|
description = "Whether to autosuspend on idle.";
|
|
|
|
default = true;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-05-26 01:25:13 -04:00
|
|
|
alyraffauf.desktop.hyprland.randomWallpaper = lib.mkOption {
|
|
|
|
description = "Whether to enable random wallpaper script.";
|
|
|
|
default = true;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-05-26 01:44:34 -04:00
|
|
|
alyraffauf.desktop.hyprland.redShift = lib.mkOption {
|
|
|
|
description = "Whether to redshift display colors at night.";
|
|
|
|
default = true;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-03-28 19:52:15 -04:00
|
|
|
};
|
|
|
|
|
2024-04-17 22:39:00 -04:00
|
|
|
config = lib.mkIf config.alyraffauf.desktop.hyprland.enable {
|
2024-03-30 13:58:07 -04:00
|
|
|
# Hypr* modules, plguins, and tools.
|
2024-04-27 18:34:46 -04:00
|
|
|
alyraffauf = {
|
|
|
|
desktop = {
|
|
|
|
theme.enable = lib.mkDefault true;
|
2024-05-05 22:00:46 -04:00
|
|
|
defaultApps.enable = lib.mkDefault true;
|
2024-04-27 18:34:46 -04:00
|
|
|
};
|
|
|
|
apps = {
|
|
|
|
# Basic apps needed to run a hyprland desktop.
|
|
|
|
alacritty.enable = lib.mkDefault true;
|
|
|
|
firefox.enable = lib.mkDefault true;
|
|
|
|
fuzzel.enable = lib.mkDefault true;
|
|
|
|
mako.enable = lib.mkDefault true;
|
2024-04-27 21:21:26 -04:00
|
|
|
swaylock.enable = lib.mkDefault true;
|
2024-04-27 18:34:46 -04:00
|
|
|
thunar.enable = lib.mkDefault true;
|
|
|
|
waybar.enable = lib.mkDefault true;
|
|
|
|
wlogout.enable = lib.mkDefault true;
|
|
|
|
};
|
|
|
|
};
|
2024-03-28 19:52:15 -04:00
|
|
|
|
2024-04-18 14:21:33 -04:00
|
|
|
services.cliphist.enable = lib.mkDefault true;
|
2024-05-05 17:22:15 -04:00
|
|
|
services.swayosd.enable = lib.mkDefault true;
|
2024-03-28 19:52:15 -04:00
|
|
|
|
2024-03-30 14:48:48 -04:00
|
|
|
xdg.portal = {
|
|
|
|
enable = true;
|
2024-05-26 00:37:20 -04:00
|
|
|
configPackages = [inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".xdg-desktop-portal-hyprland];
|
|
|
|
extraPortals = [inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".xdg-desktop-portal-hyprland];
|
2024-03-30 14:48:48 -04:00
|
|
|
};
|
2024-03-31 17:04:53 -04:00
|
|
|
|
2024-04-19 18:51:24 -04:00
|
|
|
programs.waybar.settings = {
|
|
|
|
mainBar = {
|
|
|
|
modules-left = ["hyprland/workspaces" "hyprland/submap"];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-03-31 17:04:53 -04:00
|
|
|
wayland.windowManager.hyprland.enable = true;
|
2024-05-24 09:37:37 -04:00
|
|
|
wayland.windowManager.hyprland.package = inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".hyprland;
|
2024-03-31 17:04:53 -04:00
|
|
|
wayland.windowManager.hyprland.extraConfig = let
|
|
|
|
modifier = "SUPER";
|
2024-04-01 00:02:02 -04:00
|
|
|
|
2024-03-31 17:04:53 -04:00
|
|
|
# Default apps
|
2024-05-05 22:00:46 -04:00
|
|
|
browser = config.alyraffauf.desktop.defaultApps.webBrowser.exe;
|
2024-05-05 19:39:36 -04:00
|
|
|
fileManager = lib.getExe pkgs.xfce.thunar;
|
2024-05-05 22:00:46 -04:00
|
|
|
editor = config.alyraffauf.desktop.defaultApps.editor.exe;
|
|
|
|
terminal = config.alyraffauf.desktop.defaultApps.terminal.exe;
|
2024-03-31 17:04:53 -04:00
|
|
|
|
|
|
|
# Media/hardware commands
|
2024-05-05 19:39:36 -04:00
|
|
|
# brightness = "${lib.getExe pkgs.brightnessctl}";
|
2024-04-11 21:08:25 -04:00
|
|
|
# brightness_up = "${brightness} set 5%+";
|
|
|
|
# brightness_down = "${brightness} set 5%-";
|
|
|
|
# volume = "${pkgs.wireplumber}/bin/wpctl";
|
|
|
|
# volume_up = "${volume} set-volume -l 1.0 @DEFAULT_SINK@ 5%+";
|
|
|
|
# volume_down = "${volume} set-volume -l 1.0 @DEFAULT_SINK@ 5%-";
|
|
|
|
# volume_mute = "${volume} set-mute @DEFAULT_SINK@ toggle";
|
|
|
|
# mic_mute = "${volume} set-mute @DEFAULT_AUDIO_SOURCE@ toggle";
|
2024-05-05 19:39:36 -04:00
|
|
|
brightness = lib.getExe' pkgs.swayosd "swayosd-client";
|
2024-04-11 21:08:25 -04:00
|
|
|
brightness_up = "${brightness} --brightness=raise";
|
|
|
|
brightness_down = "${brightness} --brightness=lower";
|
2024-05-05 19:39:36 -04:00
|
|
|
volume = brightness;
|
2024-04-11 21:08:25 -04:00
|
|
|
volume_up = "${volume} --output-volume=raise";
|
|
|
|
volume_down = "${volume} --output-volume=lower";
|
|
|
|
volume_mute = "${volume} --output-volume=mute-toggle";
|
|
|
|
mic_mute = "${volume} --input-volume=mute-toggle";
|
2024-05-05 19:39:36 -04:00
|
|
|
media = lib.getExe pkgs.playerctl;
|
2024-03-31 17:04:53 -04:00
|
|
|
media_play = "${media} play-pause";
|
|
|
|
media_next = "${media} next";
|
2024-04-19 22:00:41 -04:00
|
|
|
media_prev = "${media} previous";
|
2024-03-31 17:04:53 -04:00
|
|
|
|
2024-04-28 17:27:50 -04:00
|
|
|
# Hyprland desktop utilities
|
2024-05-05 19:39:36 -04:00
|
|
|
bar = lib.getExe pkgs.waybar;
|
|
|
|
launcher = lib.getExe pkgs.fuzzel;
|
|
|
|
notifyd = lib.getExe pkgs.mako;
|
2024-05-26 01:25:13 -04:00
|
|
|
wallpaperd = "${lib.getExe pkgs.swaybg} -i ${config.alyraffauf.desktop.theme.wallpaper}";
|
2024-05-05 19:39:36 -04:00
|
|
|
logout = lib.getExe pkgs.wlogout;
|
|
|
|
lock = lib.getExe pkgs.swaylock;
|
2024-04-28 17:27:50 -04:00
|
|
|
|
2024-05-26 20:22:36 -04:00
|
|
|
idled = pkgs.writeShellScript "hyprland-idled" ''
|
|
|
|
${lib.getExe pkgs.swayidle} -w \
|
|
|
|
\
|
|
|
|
timeout 240 '${lib.getExe pkgs.brightnessctl} -s set 10' \
|
|
|
|
resume '${lib.getExe pkgs.brightnessctl} -r' \
|
|
|
|
timeout 300 '${lock}' \
|
|
|
|
timeout 330 '${lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl"} dispatch dpms off' \
|
|
|
|
resume '${lib.getExe' config.wayland.windowManager.hyprland.package "hyprctl"} dispatch dpms on' \
|
|
|
|
${
|
|
|
|
if config.alyraffauf.desktop.hyprland.autoSuspend
|
|
|
|
then ''timeout 900 '${lib.getExe' pkgs.systemd "systemctl"} suspend' \''
|
|
|
|
else ''\''
|
|
|
|
}
|
|
|
|
before-sleep '${media} pause' \
|
|
|
|
before-sleep '${lock}'
|
|
|
|
'';
|
2024-04-28 17:27:50 -04:00
|
|
|
|
2024-05-26 00:37:20 -04:00
|
|
|
hyprnome = lib.getExe inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".hyprnome;
|
2024-04-28 17:27:50 -04:00
|
|
|
|
2024-05-26 00:37:20 -04:00
|
|
|
screenshot = lib.getExe inputs.nixpkgsUnstable.legacyPackages."${pkgs.system}".hyprshot;
|
2024-04-02 23:28:39 -04:00
|
|
|
screenshot_folder = "~/pics/screenshots";
|
2024-03-31 17:04:53 -04:00
|
|
|
screenshot_screen = "${screenshot} -m output -o ${screenshot_folder}";
|
2024-04-10 17:27:42 -04:00
|
|
|
screenshot_region = "${screenshot} -m region -o ${screenshot_folder}";
|
2024-03-31 17:04:53 -04:00
|
|
|
|
2024-04-03 19:35:21 -04:00
|
|
|
qt_platform_theme = "gtk2";
|
2024-04-01 20:29:48 -04:00
|
|
|
gdk_scale = "1.5";
|
2024-03-31 17:04:53 -04:00
|
|
|
in ''
|
2024-05-26 20:22:36 -04:00
|
|
|
monitor = desc:BOE 0x095F,preferred,auto,1.6 # lavaridge/fallarbor fw13 glossy display
|
2024-04-05 16:43:19 -04:00
|
|
|
monitor = desc:LG Electronics LG ULTRAWIDE 311NTAB5M720,preferred,auto,1.25,vrr,2 # mauville
|
|
|
|
monitor = desc:LG Display 0x0569,preferred,auto,1.2 # rustboro
|
2024-04-10 14:29:40 -04:00
|
|
|
monitor = desc:Samsung Display Corp. 0x4152,preferred,auto,2,transform,0 # petalburg
|
2024-04-21 21:07:03 -04:00
|
|
|
monitor = desc:Guangxi Century Innovation Display Electronics Co. Ltd 27C1U-D 0000000000001,preferred,-2400x0,1.6 # workshop
|
2024-04-05 16:43:19 -04:00
|
|
|
monitor = desc:LG Electronics LG IPS QHD 109NTWG4Y865,preferred,-2560x0,auto
|
2024-04-12 08:00:50 -04:00
|
|
|
monitor = desc:HP Inc. HP 24mh 3CM037248S,preferred,-1920x0,auto
|
2024-04-10 14:55:35 -04:00
|
|
|
monitor = ,preferred,auto,auto
|
2024-04-05 16:43:19 -04:00
|
|
|
|
2024-04-21 18:08:31 -04:00
|
|
|
# Turn off the internal display when lid is closed.
|
2024-05-25 21:32:56 -04:00
|
|
|
bindl=,switch:on:Lid Switch,exec,hyprctl keyword monitor "eDP-1, disable"
|
2024-05-26 20:22:36 -04:00
|
|
|
bindl=,switch:off:Lid Switch,exec,hyprctl reload
|
2024-04-21 18:08:31 -04:00
|
|
|
|
2024-04-14 14:07:37 -04:00
|
|
|
# unscale XWayland apps
|
|
|
|
xwayland {
|
|
|
|
force_zero_scaling = true
|
|
|
|
}
|
|
|
|
|
|
|
|
# toolkit-specific scale
|
|
|
|
env = GDK_SCALE,${gdk_scale}
|
|
|
|
|
|
|
|
# Some default env vars.
|
2024-05-04 21:42:33 -04:00
|
|
|
env = XCURSOR_SIZE,${toString config.alyraffauf.desktop.theme.cursorTheme.size}
|
2024-04-14 14:07:37 -04:00
|
|
|
env = QT_QPA_PLATFORMTHEME,${qt_platform_theme}
|
|
|
|
|
|
|
|
# Execute necessary apps
|
2024-05-26 14:35:31 -04:00
|
|
|
${
|
2024-05-26 01:44:34 -04:00
|
|
|
if config.alyraffauf.desktop.hyprland.randomWallpaper
|
2024-05-26 14:35:31 -04:00
|
|
|
then ""
|
|
|
|
else "exec-once = ${wallpaperd}"
|
2024-05-26 01:44:34 -04:00
|
|
|
}
|
2024-04-14 14:07:37 -04:00
|
|
|
exec-once = ${bar}
|
|
|
|
exec-once = ${notifyd}
|
2024-05-05 19:39:36 -04:00
|
|
|
exec-once = ${lib.getExe' pkgs.wl-clipboard "wl-paste"} --type image --watch ${lib.getExe pkgs.cliphist} store
|
|
|
|
exec-once = ${lib.getExe' pkgs.wl-clipboard "wl-paste"} --type text --watch ${lib.getExe pkgs.cliphist} store
|
2024-04-18 17:39:24 -04:00
|
|
|
exec-once = ${pkgs.mate.mate-polkit}/libexec/polkit-mate-authentication-agent-1
|
2024-04-14 14:07:37 -04:00
|
|
|
exec-once = ${fileManager} --daemon
|
2024-04-23 21:03:11 -04:00
|
|
|
exec-once = ${idled}
|
2024-05-05 19:39:36 -04:00
|
|
|
exec-once = ${lib.getExe' pkgs.networkmanagerapplet "nm-applet"}
|
2024-05-11 22:18:49 -04:00
|
|
|
exec-once = ${lib.getExe' pkgs.blueman "blueman-applet"}
|
2024-05-05 19:39:36 -04:00
|
|
|
exec-once = ${lib.getExe' pkgs.playerctl "playerctld"}
|
2024-04-14 14:07:37 -04:00
|
|
|
|
|
|
|
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
|
|
|
|
input {
|
|
|
|
kb_layout = us
|
2024-05-26 15:52:40 -04:00
|
|
|
kb_variant = altgr-intl
|
2024-04-14 14:07:37 -04:00
|
|
|
follow_mouse = 1
|
|
|
|
sensitivity = 0 # -1.0 to 1.0, 0 means no modification.
|
|
|
|
touchpad {
|
|
|
|
clickfinger_behavior = true
|
|
|
|
drag_lock = true
|
|
|
|
middle_button_emulation = true
|
|
|
|
natural_scroll = yes
|
|
|
|
tap-to-click = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
gestures {
|
|
|
|
workspace_swipe = true
|
2024-04-15 11:47:01 -04:00
|
|
|
workspace_swipe_touch = true
|
2024-04-14 14:07:37 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
general {
|
|
|
|
gaps_in = 5
|
|
|
|
gaps_out = 10
|
|
|
|
border_size = 2
|
2024-05-04 21:42:33 -04:00
|
|
|
col.active_border = rgba(${lib.strings.removePrefix "#" config.alyraffauf.desktop.theme.colors.secondary}EE) rgba(${lib.strings.removePrefix "#" config.alyraffauf.desktop.theme.colors.primary}EE) 45deg
|
|
|
|
col.inactive_border = rgba(${lib.strings.removePrefix "#" config.alyraffauf.desktop.theme.colors.inactive}AA)
|
2024-04-14 14:07:37 -04:00
|
|
|
|
|
|
|
layout = dwindle
|
|
|
|
|
|
|
|
allow_tearing = false
|
|
|
|
}
|
|
|
|
|
|
|
|
decoration {
|
|
|
|
rounding = 10
|
|
|
|
blur {
|
|
|
|
enabled = true
|
|
|
|
size = 8
|
|
|
|
passes = 1
|
|
|
|
}
|
|
|
|
drop_shadow = yes
|
|
|
|
shadow_range = 4
|
|
|
|
shadow_render_power = 3
|
2024-05-04 21:42:33 -04:00
|
|
|
col.shadow = rgba(${lib.strings.removePrefix "#" config.alyraffauf.desktop.theme.colors.shadow}EE)
|
2024-04-14 14:07:37 -04:00
|
|
|
|
|
|
|
dim_special = 0.5
|
|
|
|
|
|
|
|
# Window-specific rules
|
|
|
|
layerrule = blur, waybar
|
|
|
|
layerrule = ignorezero, waybar
|
|
|
|
layerrule = blur, launcher
|
|
|
|
layerrule = blur, notifications
|
|
|
|
layerrule = ignorezero, notifications
|
|
|
|
layerrule = blur, logout_dialog
|
2024-05-06 10:18:00 -04:00
|
|
|
layerrule = blur, swayosd
|
|
|
|
layerrule = ignorezero, swayosd
|
2024-04-14 14:07:37 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
animations {
|
|
|
|
enabled = yes
|
|
|
|
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
|
|
|
|
|
|
|
animation = border, 1, 10, default
|
|
|
|
animation = borderangle, 1, 8, default
|
|
|
|
animation = fade, 1, 7, default
|
|
|
|
animation = specialWorkspace, 1, 6, default, slidevert
|
|
|
|
animation = windows, 1, 7, myBezier
|
|
|
|
animation = windowsOut, 1, 7, default, popin 80%
|
|
|
|
animation = workspaces, 1, 6, default
|
|
|
|
}
|
|
|
|
|
|
|
|
dwindle {
|
2024-04-20 10:40:33 -04:00
|
|
|
# no_gaps_when_only = 1
|
2024-04-14 14:07:37 -04:00
|
|
|
preserve_split = yes # you probably want this
|
|
|
|
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
|
|
|
}
|
|
|
|
|
|
|
|
master {
|
|
|
|
always_center_master = true
|
|
|
|
new_is_master = false
|
|
|
|
}
|
|
|
|
|
|
|
|
misc {
|
|
|
|
disable_hyprland_logo = true
|
|
|
|
disable_splash_rendering = true
|
|
|
|
focus_on_activate = true
|
|
|
|
vfr = true
|
|
|
|
}
|
|
|
|
|
|
|
|
# Window Rules
|
2024-04-16 12:37:02 -04:00
|
|
|
|
2024-04-16 20:29:28 -04:00
|
|
|
# Firefox picture-in-picture
|
2024-04-16 12:37:02 -04:00
|
|
|
windowrulev2 = float, class:^(firefox)$, title:^(Picture-in-Picture)$
|
|
|
|
windowrulev2 = pin, class:^(firefox)$, title:^(Picture-in-Picture)$
|
2024-04-18 20:54:25 -04:00
|
|
|
windowrulev2 = move 70% 20%, class:^(firefox)$, title:^(Picture-in-Picture)$
|
2024-04-16 12:37:02 -04:00
|
|
|
|
2024-04-14 14:07:37 -04:00
|
|
|
windowrulev2 = center(1),class:(blueberry.py)
|
2024-05-15 07:17:50 -04:00
|
|
|
windowrulev2 = center(1),class:(org.keepassxc.KeePassXC)
|
2024-05-11 22:13:45 -04:00
|
|
|
windowrulev2 = center(1),class:(.blueman-manager-wrapped)
|
2024-04-14 14:07:37 -04:00
|
|
|
windowrulev2 = center(1),class:(nmtui)
|
|
|
|
windowrulev2 = center(1),class:(pavucontrol)
|
|
|
|
windowrulev2 = center(1),class:(com.github.wwmm.easyeffects)
|
|
|
|
|
|
|
|
windowrulev2 = float,class:(blueberry.py)
|
2024-05-15 07:17:50 -04:00
|
|
|
windowrulev2 = float,class:(org.keepassxc.KeePassXC)
|
2024-05-11 22:13:45 -04:00
|
|
|
windowrulev2 = float,class:(.blueman-manager-wrapped)
|
2024-04-14 14:07:37 -04:00
|
|
|
windowrulev2 = float,class:(nmtui)
|
|
|
|
windowrulev2 = float,class:(pavucontrol)
|
|
|
|
windowrulev2 = float,class:(com.github.wwmm.easyeffects)
|
|
|
|
|
|
|
|
windowrulev2 = size 40% 60%,class:(blueberry.py)
|
2024-05-15 07:17:50 -04:00
|
|
|
windowrulev2 = size 80% 80%,class:(org.keepassxc.KeePassXC)
|
2024-05-11 22:13:45 -04:00
|
|
|
windowrulev2 = size 40% 60%,class:(.blueman-manager-wrapped)
|
2024-04-14 14:07:37 -04:00
|
|
|
windowrulev2 = size 40% 60%,class:(nmtui)
|
|
|
|
windowrulev2 = size 40% 60%,class:(pavucontrol)
|
|
|
|
windowrulev2 = size 40% 60%,class:(com.github.wwmm.easyeffects)
|
|
|
|
|
2024-04-15 11:47:01 -04:00
|
|
|
windowrulev2 = suppressevent maximize, class:.*
|
|
|
|
|
2024-04-14 14:07:37 -04:00
|
|
|
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
|
|
|
bind = ${modifier}, B, exec, ${browser}
|
|
|
|
bind = ${modifier}, E, exec, ${editor}
|
2024-04-19 22:00:41 -04:00
|
|
|
bind = ${modifier}, F, exec, ${fileManager}
|
2024-04-14 14:07:37 -04:00
|
|
|
bind = ${modifier}, R, exec, ${launcher}
|
2024-04-19 22:00:41 -04:00
|
|
|
bind = ${modifier}, T, exec, ${terminal}
|
2024-04-14 14:07:37 -04:00
|
|
|
|
|
|
|
# Manage session.
|
|
|
|
bind = ${modifier}, C, killactive,
|
2024-05-04 22:01:37 -04:00
|
|
|
bind = ${modifier} CONTROL, L, exec, ${lock}
|
2024-04-19 22:00:41 -04:00
|
|
|
bind = ${modifier}, M, exec, ${logout}
|
2024-04-14 14:07:37 -04:00
|
|
|
|
|
|
|
# Basic window management.
|
|
|
|
bind = ${modifier} SHIFT, W, fullscreen
|
|
|
|
bind = ${modifier} SHIFT, V, togglefloating,
|
2024-05-26 14:58:30 -04:00
|
|
|
# bind = ${modifier} SHIFT, P, pseudo, # dwindle
|
|
|
|
# bind = ${modifier} SHIFT, J, togglesplit, # dwindle
|
2024-04-14 14:07:37 -04:00
|
|
|
|
|
|
|
# Move focus with mainMod + arrow keys
|
|
|
|
bind = ${modifier}, left, movefocus, l
|
|
|
|
bind = ${modifier}, right, movefocus, r
|
|
|
|
bind = ${modifier}, up, movefocus, u
|
|
|
|
bind = ${modifier}, down, movefocus, d
|
|
|
|
|
2024-04-18 19:38:11 -04:00
|
|
|
# Move window with mainMod SHIFT + arrow keys
|
|
|
|
bind = ${modifier} SHIFT, left, movewindow, l
|
|
|
|
bind = ${modifier} SHIFT, right, movewindow, r
|
|
|
|
bind = ${modifier} SHIFT, up, movewindow, u
|
|
|
|
bind = ${modifier} SHIFT, down, movewindow, d
|
|
|
|
|
2024-04-14 14:07:37 -04:00
|
|
|
# Gnome-like workspaces.
|
2024-04-18 19:29:00 -04:00
|
|
|
bind = ${modifier}, comma, exec, ${hyprnome} --previous
|
|
|
|
bind = ${modifier}, period, exec, ${hyprnome}
|
|
|
|
bind = ${modifier} SHIFT, comma, exec, ${hyprnome} --previous --move
|
|
|
|
bind = ${modifier} SHIFT, period, exec, ${hyprnome} --move
|
2024-04-14 14:07:37 -04:00
|
|
|
|
|
|
|
# Switch workspaces with mainMod + [0-9]
|
|
|
|
bind = ${modifier}, 1, workspace, 1
|
|
|
|
bind = ${modifier}, 2, workspace, 2
|
|
|
|
bind = ${modifier}, 3, workspace, 3
|
|
|
|
bind = ${modifier}, 4, workspace, 4
|
|
|
|
bind = ${modifier}, 5, workspace, 5
|
|
|
|
bind = ${modifier}, 6, workspace, 6
|
|
|
|
bind = ${modifier}, 7, workspace, 7
|
|
|
|
bind = ${modifier}, 8, workspace, 8
|
|
|
|
bind = ${modifier}, 9, workspace, 9
|
|
|
|
bind = ${modifier}, 0, workspace, 10
|
|
|
|
|
|
|
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
|
|
|
bind = ${modifier} SHIFT, 1, movetoworkspace, 1
|
|
|
|
bind = ${modifier} SHIFT, 2, movetoworkspace, 2
|
|
|
|
bind = ${modifier} SHIFT, 3, movetoworkspace, 3
|
|
|
|
bind = ${modifier} SHIFT, 4, movetoworkspace, 4
|
|
|
|
bind = ${modifier} SHIFT, 5, movetoworkspace, 5
|
|
|
|
bind = ${modifier} SHIFT, 6, movetoworkspace, 6
|
|
|
|
bind = ${modifier} SHIFT, 7, movetoworkspace, 7
|
|
|
|
bind = ${modifier} SHIFT, 8, movetoworkspace, 8
|
|
|
|
bind = ${modifier} SHIFT, 9, movetoworkspace, 9
|
|
|
|
bind = ${modifier} SHIFT, 0, movetoworkspace, 10
|
|
|
|
|
2024-04-19 22:00:41 -04:00
|
|
|
# Scratchpad show and move
|
2024-04-14 14:07:37 -04:00
|
|
|
bind = ${modifier}, S, togglespecialworkspace, magic
|
|
|
|
bind = ${modifier} SHIFT, S, movetoworkspace, special:magic
|
|
|
|
|
|
|
|
# Scroll through existing workspaces with mainMod + scroll
|
|
|
|
bind = ${modifier}, mouse_down, workspace, +1
|
|
|
|
bind = ${modifier}, mouse_up, workspace, -1
|
|
|
|
|
|
|
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
|
|
|
bindm = ${modifier}, mouse:272, movewindow
|
|
|
|
bindm = ${modifier}, mouse:273, resizewindow
|
|
|
|
|
|
|
|
# Display, volume, microphone, and media keys.
|
|
|
|
bindle = , xf86monbrightnessup, exec, ${brightness_up}
|
|
|
|
bindle = , xf86monbrightnessdown, exec, ${brightness_down}
|
|
|
|
bindle = , xf86audioraisevolume, exec, ${volume_up};
|
|
|
|
bindle = , xf86audiolowervolume, exec, ${volume_down};
|
|
|
|
bindl = , xf86audiomute, exec, ${volume_mute}
|
|
|
|
bindl = , xf86audiomicmute, exec, ${mic_mute}
|
|
|
|
bindl = , xf86audioplay, exec, ${media_play}
|
2024-04-19 22:00:41 -04:00
|
|
|
bindl = , xf86audioprev, exec, ${media_prev}
|
2024-04-14 14:07:37 -04:00
|
|
|
bindl = , xf86audionext, exec, ${media_next}
|
|
|
|
|
|
|
|
# Extra bindings for petalburg.
|
|
|
|
bind = , xf86launch4, exec, pp-adjuster
|
|
|
|
bind = , xf86launch2, exec, ${media_play}
|
|
|
|
|
|
|
|
# Screenshot with hyprshot.
|
|
|
|
bind = , PRINT, exec, ${screenshot_screen}
|
|
|
|
bind = ${modifier}, PRINT, exec, ${screenshot_region}
|
|
|
|
|
|
|
|
# Show/hide waybar.
|
|
|
|
bind = ${modifier}, F11, exec, pkill -SIGUSR1 waybar
|
2024-04-18 19:55:03 -04:00
|
|
|
|
2024-04-21 21:59:43 -04:00
|
|
|
bind=CTRL ALT,R,submap,resize
|
2024-04-18 19:55:03 -04:00
|
|
|
submap=resize
|
|
|
|
binde=,right,resizeactive,10 0
|
|
|
|
binde=,left,resizeactive,-10 0
|
|
|
|
binde=,up,resizeactive,0 -10
|
|
|
|
binde=,down,resizeactive,0 10
|
2024-04-19 18:51:24 -04:00
|
|
|
bind=,escape,submap,reset
|
2024-04-18 19:55:03 -04:00
|
|
|
submap=reset
|
2024-04-18 20:13:34 -04:00
|
|
|
|
2024-04-21 21:59:43 -04:00
|
|
|
bind=CTRL ALT,M,submap,move
|
2024-04-18 20:13:34 -04:00
|
|
|
submap=move
|
|
|
|
# Move window with arrow keys
|
|
|
|
bind = , left, movewindow, l
|
|
|
|
bind = , right, movewindow, r
|
|
|
|
bind = , up, movewindow, u
|
|
|
|
bind = , down, movewindow, d
|
|
|
|
# Move active window to a workspace with [0-9]
|
|
|
|
bind = , 1, movetoworkspace, 1
|
|
|
|
bind = , 2, movetoworkspace, 2
|
|
|
|
bind = , 3, movetoworkspace, 3
|
|
|
|
bind = , 4, movetoworkspace, 4
|
|
|
|
bind = , 5, movetoworkspace, 5
|
|
|
|
bind = , 6, movetoworkspace, 6
|
|
|
|
bind = , 7, movetoworkspace, 7
|
|
|
|
bind = , 8, movetoworkspace, 8
|
|
|
|
bind = , 9, movetoworkspace, 9
|
|
|
|
bind = , 0, movetoworkspace, 10
|
|
|
|
# hyprnome
|
|
|
|
bind = , comma, exec, ${hyprnome} --previous --move
|
|
|
|
bind = , period, exec, ${hyprnome} --move
|
2024-04-19 18:51:24 -04:00
|
|
|
bind=,escape,submap,reset
|
2024-04-18 20:13:34 -04:00
|
|
|
submap=reset
|
2024-03-31 17:04:53 -04:00
|
|
|
'';
|
2024-03-28 19:52:15 -04:00
|
|
|
};
|
2024-03-28 22:12:08 -04:00
|
|
|
}
|