more river

This commit is contained in:
2024-04-11 23:10:47 +01:00
parent bcb3d4428b
commit 8b3c85fa17
4 changed files with 64 additions and 24 deletions

View File

@@ -53,7 +53,10 @@
programs = { programs = {
hyprland.enable = true; hyprland.enable = true;
river.enable = true; river = {
enable = true;
package = null;
};
steam = { steam = {
enable = true; enable = true;

View File

@@ -10,21 +10,46 @@
]; ];
wayland.windowManager.river = { wayland.windowManager.river = {
enable = true; enable = true;
package = pkgs.river.overrideAttrs (finalAttrs: previousAttrs: {
version = "2024-11-04";
extraConfig = '' src = pkgs.fetchFromGitea {
MAINMOD="Super" domain = "codeberg.org";
owner = "river";
repo = "river";
rev = "14e941bae16b1ca478c32198c131c4297157f888";
hash = "sha256-uACc9Cb1tSw3I0fMlEMX74NfU+Tg3It74tb+nc51AZ4=";
fetchSubmodules = true;
};
buildInputs =
(pkgs.lib.lists.remove pkgs.wlroots_0_16 previousAttrs.buildInputs)
++ [
pkgs.wlroots
pkgs.makeWrapper
];
postInstall =
previousAttrs.postInstall
+ ''
wrapProgram "$out/bin/river" --set WLR_NO_HARDWARE_CURSORS 1 --set WLR_RENDERER vulkan
'';
});
extraConfig =
(builtins.readFile ./${hostname})
+ ''
riverctl map normal $MAINMOD D spawn 'tofi-drun --drun-launch=true' riverctl map normal $MAINMOD D spawn 'tofi-drun --drun-launch=true'
riverctl map normal $MAINMOD Return spawn 'kitty' riverctl map normal $MAINMOD Return spawn 'kitty'
riverctl map normal $MAINMOD+Shift p exit riverctl map normal $MAINMOD+Shift p exit
riverctl map normal $MAINMOD q close riverctl map normal $MAINMOD q close
riverctl map normal $MAINMOD escape spawn 'swaylock -i ~/wallpapers/lock.png'
riverctl map normal $MAINMOD l focus-view next riverctl map normal $MAINMOD l focus-view next
riverctl map normal $MAINMOD h focus-view previous riverctl map normal $MAINMOD h focus-view previous
riverctl map normal $MAINMOD+Shift l swap next riverctl map normal $MAINMOD m swap next
riverctl map normal $MAINMOD+Shift h swap previous riverctl map normal $MAINMOD COMMA swap previous
riverctl map -repeat normal None XF86AudioLowerVolume spawn 'wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%-' 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 -repeat normal None XF86AudioRaiseVolume spawn 'wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+'
@@ -34,7 +59,7 @@
riverctl map -repeat normal None XF86MonBrightnessDown spawn 'xbacklight -dec 10' riverctl map -repeat normal None XF86MonBrightnessDown spawn 'xbacklight -dec 10'
riverctl spawn rivertile riverctl spawn rivertile
riverctl output-layout rivertile riverctl default-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' 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' natural-scroll enabled
@@ -42,7 +67,13 @@
riverctl keyboard-layout -options caps:escape gb riverctl keyboard-layout -options caps:escape gb
wlr-randr --output eDP-1 --scale 1.33 for i in $(seq 1 9); do
tags=$((1 << ($i - 1)))
riverctl map normal $MAINMOD $i set-focused-tags $tags
# riverctl map normal $MAINMOD $i
done
''; '';
}; };
} }

View File

@@ -0,0 +1,3 @@
MAINMOD="Super"
wlr-randr --output eDP-1 --scale 1.33

View File

@@ -0,0 +1,3 @@
MAINMOD="Control+Alt+Shift"
wlr-randr --output DP-2 --pos 0,0 --output HDMI-A-2 --pos 3840,0