This commit is contained in:
2024-04-11 17:47:15 +01:00
parent 29dde91b5d
commit bcb3d4428b
4 changed files with 56 additions and 1 deletions

View File

@@ -0,0 +1,48 @@
{
config,
lib,
pkgs,
hostname,
...
}: {
home.packages = with pkgs; [
wlr-randr
];
wayland.windowManager.river = {
enable = true;
extraConfig = ''
MAINMOD="Super"
riverctl map normal $MAINMOD D spawn 'tofi-drun --drun-launch=true'
riverctl map normal $MAINMOD Return spawn 'kitty'
riverctl map normal $MAINMOD+Shift p exit
riverctl map normal $MAINMOD q close
riverctl map normal $MAINMOD l focus-view next
riverctl map normal $MAINMOD h focus-view previous
riverctl map normal $MAINMOD+Shift l swap next
riverctl map normal $MAINMOD+Shift h swap previous
riverctl map -repeat normal None XF86AudioLowerVolume spawn 'wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%-'
riverctl map -repeat normal None XF86AudioRaiseVolume spawn 'wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+'
riverctl map normal None XF86AudioMute spawn 'wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle'
riverctl map -repeat normal None XF86MonBrightnessUp spawn 'xbacklight -inc 10'
riverctl map -repeat normal None XF86MonBrightnessDown spawn 'xbacklight -dec 10'
riverctl spawn rivertile
riverctl output-layout rivertile
riverctl input 'pointer-2362-628-PIXA3854:00_093A:0274_Touchpad' accel-profile flat
riverctl input 'pointer-2362-628-PIXA3854:00_093A:0274_Touchpad' natural-scroll enabled
riverctl input 'pointer-2362-628-PIXA3854:00_093A:0274_Touchpad' tap enabled
riverctl keyboard-layout -options caps:escape gb
wlr-randr --output eDP-1 --scale 1.33
'';
};
}