more river
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
3
users/configs/desktop/river/pingbox
Normal file
3
users/configs/desktop/river/pingbox
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
MAINMOD="Super"
|
||||||
|
|
||||||
|
wlr-randr --output eDP-1 --scale 1.33
|
||||||
3
users/configs/desktop/river/sidon
Normal file
3
users/configs/desktop/river/sidon
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
MAINMOD="Control+Alt+Shift"
|
||||||
|
|
||||||
|
wlr-randr --output DP-2 --pos 0,0 --output HDMI-A-2 --pos 3840,0
|
||||||
Reference in New Issue
Block a user