River
This commit is contained in:
48
users/configs/desktop/river/default.nix
Normal file
48
users/configs/desktop/river/default.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user