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