Home: Add hyprsunset with keybindings
This commit is contained in:
@ -90,6 +90,11 @@ rec {
|
||||
", XF86AudioPlay" = ["exec, playerctl play-pause"];
|
||||
", XF86AudioPrev" = ["exec, playerctl previous"];
|
||||
", XF86AudioNext" = ["exec, playerctl next"];
|
||||
|
||||
", XF86MonBrightnessDown" = ["exec, hyprctl hyprsunset gamma -10"];
|
||||
", XF86MonBrightnessUp" = ["exec, hyprctl hyprsunset gamma +10"];
|
||||
"$mainMod, XF86MonBrightnessDown" = ["exec, hyprctl hyprsunset temperature 6000"];
|
||||
"$mainMod, XF86MonBrightnessUp" = ["exec, hyprctl hyprsunset identity"];
|
||||
};
|
||||
};
|
||||
|
||||
@ -106,6 +111,7 @@ rec {
|
||||
};
|
||||
|
||||
windowrules = [
|
||||
# Prevent unity from activating when its reloading the editor
|
||||
# TODO: Doesn't work, use focus_on_activate for now
|
||||
# "suppressevent activate, class:^(Unity)$"
|
||||
# "suppressevent activatefocus, class:^(Unity)$"
|
||||
@ -364,8 +370,8 @@ rec {
|
||||
sshfs # Mount remote directories via SSH
|
||||
|
||||
protonvpn-gui
|
||||
protonvpn-cli_2
|
||||
protonmail-bridge-gui
|
||||
protonvpn-cli_2 # TODO: Not compatible with systemd-networkd?
|
||||
protonmail-bridge # TODO: Enable on startup, email module
|
||||
|
||||
# GUI apps
|
||||
|
@ -110,10 +110,11 @@
|
||||
};
|
||||
|
||||
always-exec = [
|
||||
"dunst" # Notifications
|
||||
# "dunst" # Notifications
|
||||
"wl-paste -t text --watch clipman store --no-persist"
|
||||
"wl-paste -p -t text --watch clipman store -P --histpath=\"~/.local/share/clipman-primary.json\""
|
||||
"hyprctl setcursor Bibata-Modern-Classic 16"
|
||||
"hyprsunset --identity"
|
||||
|
||||
# HACK: Hyprland doesn't set the xwayland/x11 keymap correctly
|
||||
"setxkbmap -layout ${hyprland.kb-layout} -variant ${hyprland.kb-variant} -model pc104"
|
||||
@ -160,6 +161,9 @@ in {
|
||||
packages = with pkgs; [
|
||||
hyprpaper # Wallpaper setter
|
||||
hyprpicker # Color picker
|
||||
# hyprpolkitagent # Ugly polkit authentication GUI
|
||||
hyprland-qt-support
|
||||
hyprsunset # Blue light filter
|
||||
|
||||
wl-clipboard
|
||||
clipman # Clipboard manager (wl-paste)
|
||||
@ -171,18 +175,20 @@ in {
|
||||
grim # Grab images from compositor
|
||||
|
||||
# Deps for Qt5 and Qt6 apps (e.g., Nextcloud)
|
||||
libsForQt5.qtwayland
|
||||
kdePackages.qtwayland
|
||||
qt5.qtwayland
|
||||
qt6.qtwayland
|
||||
];
|
||||
|
||||
file = {
|
||||
".config/hypr/keybindings.info".text = lib.pipe (hyprland.keybindings.bindings
|
||||
// always-bind) [
|
||||
(builtins.mapAttrs mkBindsHelp)
|
||||
builtins.attrValues
|
||||
builtins.concatLists
|
||||
(builtins.concatStringsSep "\n")
|
||||
];
|
||||
".config/hypr/keybindings.info".text =
|
||||
lib.pipe
|
||||
(hyprland.keybindings.bindings // always-bind)
|
||||
[
|
||||
(builtins.mapAttrs mkBindsHelp)
|
||||
builtins.attrValues
|
||||
builtins.concatLists
|
||||
(builtins.concatStringsSep "\n")
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user