Rename some things in hyprland config

This commit is contained in:
Evie Litherland-Smith 2023-09-11 09:25:17 +01:00
parent 0546a98547
commit c073d556d8

View file

@ -1,10 +1,6 @@
{ config, pkgs, theme, ... }: { config, pkgs, theme, ... }:
let
emacsPackage = pkgs.emacs29-pgtk; ''
firefoxPackage = pkgs.firefox-wayland;
rofiPackage = pkgs.rofi-wayland;
swaylockPackage = pkgs.swaylock-effects;
in ''
source = ${theme} source = ${theme}
source = ./extra.conf source = ./extra.conf
monitor=,preferred,auto,auto monitor=,preferred,auto,auto
@ -79,42 +75,42 @@ in ''
} }
# See https://wiki.hyprland.org/Configuring/Keywords/ for more # See https://wiki.hyprland.org/Configuring/Keywords/ for more
bind = SUPER, F1, exec, ${swaylockPackage}/bin/swaylock bind = SUPER, F1, exec, swaylock
bind = SUPER, M, fullscreen, 0 bind = SUPER, M, fullscreen, 0
bind = SUPER, P, exec, pkill rofi || ${pkgs.rofi-pass}/bin/rofi-pass bind = SUPER, P, exec, pkill rofi || rofi-pass
bind = SUPER, X, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -t bind = SUPER, X, exec, swaync-client -t
bind = SUPER SHIFT, M, fullscreen, 1 bind = SUPER SHIFT, M, fullscreen, 1
bind = SUPER SHIFT, Q, killactive, bind = SUPER SHIFT, Q, killactive,
bind = SUPER SHIFT, Space, togglefloating bind = SUPER SHIFT, Space, togglefloating
bind = SUPER SHIFT, P, exec, pkill rofi || ${rofiPackage}/bin/rofi -show power-menu bind = SUPER SHIFT, P, exec, pkill rofi || rofi -show power-menu
# Common program shortcuts # Common program shortcuts
bind = SUPER, E, exec, ${emacsPackage}/bin/emacsclient -c -a 'emacs' bind = SUPER, E, exec, emacsclient -c -a 'emacs'
bind = SUPER, B, exec, pkill rofi || ${rofiPackage}/bin/rofi -show filebrowser bind = SUPER, B, exec, pkill rofi || rofi -show filebrowser
bind = SUPER, Space, exec, pkill rofi || ${rofiPackage}/bin/rofi -show combi bind = SUPER, Space, exec, pkill rofi || rofi -show combi
bind = SUPER, Return, exec, ${pkgs.alacritty}/bin/alacritty bind = SUPER, Return, exec, alacritty
bind = SUPER SHIFT, Return, exec, pkill rofi || ${rofiPackage}/bin/rofi -show run bind = SUPER SHIFT, Return, exec, pkill rofi || rofi -show run
bind = SUPER ALT, W, exec, [workspace 2] ${firefoxPackage}/bin/firefox bind = SUPER ALT, W, exec, [workspace 2] firefox
bind = SUPER ALT, F, exec, [workspace 4] ${pkgs.alacritty}/bin/alacritty -e mc bind = SUPER ALT, F, exec, [workspace 4] alacritty -e mc
bind = SUPER ALT, S, exec, [workspace 5] ${pkgs.alacritty}/bin/alacritty -e ncspot bind = SUPER ALT, S, exec, [workspace 5] alacritty -e ncspot
# Misc useful binds # Misc useful binds
bind=,Print,exec,${pkgs.grim}/bin/grim -g "$(${pkgs.slurp}/bin/slurp)" bind=,Print,exec,grim -g "$(slurp)"
bind=,XF86Calculator,exec,pkill rofi || ${rofiPackage}/bin/rofi -show calc bind=,XF86Calculator,exec,pkill rofi || rofi -show calc
# Sound # Sound
bindl=,XF86AudioMute,exec,${pkgs.pamixer}/bin/pamixer -t bindl=,XF86AudioMute,exec,pamixer -t
bindl=,XF86AudioMicMute,exec,${pkgs.pamixer}/bin/pamixer --default-source -t bindl=,XF86AudioMicMute,exec,pamixer --default-source -t
binde=,XF86AudioRaiseVolume,exec,${pkgs.pamixer}/bin/pamixer -i 5 binde=,XF86AudioRaiseVolume,exec,pamixer -i 5
binde=,XF86AudioLowerVolume,exec,${pkgs.pamixer}/bin/pamixer -d 5 binde=,XF86AudioLowerVolume,exec,pamixer -d 5
# Brightness # Brightness
binde=,XF86MonBrightnessUp,exec,${pkgs.brightnessctl}/bin/brightnessctl s +5% binde=,XF86MonBrightnessUp,exec,brightnessctl s +5%
binde=,XF86MonBrightnessDown,exec,${pkgs.brightnessctl}/bin/brightnessctl s 5%- binde=,XF86MonBrightnessDown,exec,brightnessctl s 5%-
# Playback # Playback
binde=,XF86AudioPlay,exec,${pkgs.playerctl}/bin/playerctl play-pause binde=,XF86AudioPlay,exec,playerctl play-pause
binde=,XF86AudioStop,exec,${pkgs.playerctl}/bin/playerctl play-pause binde=,XF86AudioStop,exec,playerctl play-pause
binde=,XF86AudioPrev,exec,${pkgs.playerctl}/bin/playerctl previous binde=,XF86AudioPrev,exec,playerctl previous
binde=,XF86AudioNext,exec,${pkgs.playerctl}/bin/playerctl next binde=,XF86AudioNext,exec,playerctl next
bind = SUPER, H, movefocus, l bind = SUPER, H, movefocus, l
bind = SUPER, L, movefocus, r bind = SUPER, L, movefocus, r
@ -223,10 +219,10 @@ in ''
bindm = SUPER, mouse:272, movewindow bindm = SUPER, mouse:272, movewindow
bindm = SUPER, mouse:273, resizewindow bindm = SUPER, mouse:273, resizewindow
exec-once = ${pkgs.libsForQt5.polkit-kde-agent}/bin/polkit-kde-authentication-agent-1 exec-once = polkit-kde-authentication-agent-1
exec-once = ${pkgs.waybar}/bin/waybar exec-once = waybar
exec-once = ${pkgs.swaynotificationcenter}/bin/swaync exec-once = swaync
exec-once = ${pkgs.hyprpaper}/bin/hyprpaper exec-once = hyprpaper
exec-once = ${pkgs.protonmail-bridge}/bin/protonmail-bridge -n exec-once = protonmail-bridge -n
exec-once = ${pkgs.davmail}/bin/davmail -notray exec-once = davmail -notray
'' ''