Further river setup
This commit is contained in:
@@ -11,7 +11,7 @@ keybind = ctrl+shift+o=ignore
|
|||||||
background-opacity=0.9
|
background-opacity=0.9
|
||||||
confirm-close-surface = false
|
confirm-close-surface = false
|
||||||
window-theme = dark
|
window-theme = dark
|
||||||
window-decoration = true
|
window-decoration = false
|
||||||
|
|
||||||
# Linux Specific
|
# Linux Specific
|
||||||
gtk-wide-tabs = true
|
gtk-wide-tabs = true
|
||||||
|
|||||||
+28
-1
@@ -1,5 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# Dublin lat/long
|
||||||
|
latitude="53.2"
|
||||||
|
longitude="-6.2"
|
||||||
|
|
||||||
function execs() {
|
function execs() {
|
||||||
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
|
||||||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river && systemctl --user restart xdg-desktop-portal xdg-desktop-portal-wlr
|
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river && systemctl --user restart xdg-desktop-portal xdg-desktop-portal-wlr
|
||||||
@@ -9,8 +13,22 @@ function execs() {
|
|||||||
quickshell &
|
quickshell &
|
||||||
wl-clipboard-history -t &
|
wl-clipboard-history -t &
|
||||||
wl-paste -p --watch wl-copy -p '' &
|
wl-paste -p --watch wl-copy -p '' &
|
||||||
|
wlsunset -l $longitude -L $latitude &
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Monitors
|
||||||
|
function monitors() {
|
||||||
|
host=$1
|
||||||
|
|
||||||
|
if [ $host == "lmdesktop" ]
|
||||||
|
then
|
||||||
|
wlr-randr --output DP-1 --mode 2560x1440@143.973007Hz --pos 0,0 --scale 1
|
||||||
|
wlr-randr --output HDMI-A-1 --mode 1920x1080@60Hz --pos 2560,180 --scale 1
|
||||||
|
elif [ $host == "darp8" ]
|
||||||
|
wlr-randr --output eDP-1 --mode 1920x1080@59.999001Hz --pos 0,0 --scale 1
|
||||||
|
then
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Inputs
|
# Inputs
|
||||||
|
|
||||||
@@ -36,6 +54,7 @@ function touchpad_apply_rules() {
|
|||||||
# Inputs :: General
|
# Inputs :: General
|
||||||
function inputs() {
|
function inputs() {
|
||||||
riverctl keyboard-layout us
|
riverctl keyboard-layout us
|
||||||
|
riverctl focus-follows-cursor normal
|
||||||
|
|
||||||
touchpads=$(riverctl list-inputs | grep '^pointer-.*Touchpad' | awk '{print $1}')
|
touchpads=$(riverctl list-inputs | grep '^pointer-.*Touchpad' | awk '{print $1}')
|
||||||
for touchpad in $touchpads
|
for touchpad in $touchpads
|
||||||
@@ -115,6 +134,12 @@ function binds() {
|
|||||||
riverctl map normal $mod+Shift J swap next
|
riverctl map normal $mod+Shift J swap next
|
||||||
riverctl map normal $mod+Shift K swap previous
|
riverctl map normal $mod+Shift K swap previous
|
||||||
|
|
||||||
|
# Binds :: Controls :: Displays
|
||||||
|
riverctl map normal $mod Comma focus-output previous
|
||||||
|
riverctl map normal $mod Period focus-output next
|
||||||
|
riverctl map normal $mod+Shift Comma send-to-output previous
|
||||||
|
riverctl map normal $mod+Shift Period send-to-output next
|
||||||
|
|
||||||
# Binds :: Controls :: Tags
|
# Binds :: Controls :: Tags
|
||||||
for i in $(seq 1 9)
|
for i in $(seq 1 9)
|
||||||
do
|
do
|
||||||
@@ -134,8 +159,10 @@ function colors() {
|
|||||||
for arg in "$@"; do declare $arg='1'; done
|
for arg in "$@"; do declare $arg='1'; done
|
||||||
|
|
||||||
# Run Sections
|
# Run Sections
|
||||||
inputs
|
monitors $HOSTNAME
|
||||||
layout
|
layout
|
||||||
colors
|
colors
|
||||||
|
inputs
|
||||||
binds
|
binds
|
||||||
|
|
||||||
if ! [ -v noexec ]; then execs ; fi
|
if ! [ -v noexec ]; then execs ; fi
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
{
|
{
|
||||||
"$schema": "/etc/xdg/swaync/configSchema.json",
|
|
||||||
"positionX": "right",
|
"positionX": "right",
|
||||||
"positionY": "top",
|
"positionY": "top",
|
||||||
"layer": "overlay",
|
"layer": "overlay",
|
||||||
|
|||||||
@@ -205,7 +205,6 @@ in
|
|||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
nix-ld.enable = true;
|
nix-ld.enable = true;
|
||||||
mtr.enable = true;
|
mtr.enable = true;
|
||||||
uwsm.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
lib.inputMethod.fcitx5.waylandFrontend = true;
|
lib.inputMethod.fcitx5.waylandFrontend = true;
|
||||||
|
|||||||
@@ -59,6 +59,8 @@
|
|||||||
tree
|
tree
|
||||||
waybar
|
waybar
|
||||||
wev
|
wev
|
||||||
|
wlr-randr
|
||||||
|
wlsunset
|
||||||
];
|
];
|
||||||
|
|
||||||
# BEGIN PROGRAMS
|
# BEGIN PROGRAMS
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
restart = true;
|
restart = true;
|
||||||
settings = {
|
settings = {
|
||||||
default_session = {
|
default_session = {
|
||||||
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --cmd Hyprland";
|
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --cmd river";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -101,6 +101,7 @@
|
|||||||
|
|
||||||
environment.etc."greetd/environments".text = ''
|
environment.etc."greetd/environments".text = ''
|
||||||
Hyprland
|
Hyprland
|
||||||
|
river
|
||||||
'';
|
'';
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
@@ -178,13 +179,15 @@
|
|||||||
plugins = [ ];
|
plugins = [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
river = {
|
||||||
|
enable = true;
|
||||||
|
xwayland.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
gnupg.agent = {
|
gnupg.agent = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableSSHSupport = true;
|
enableSSHSupport = true;
|
||||||
};
|
};
|
||||||
uwsm = {
|
|
||||||
enable = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
hyprlock.enable = true;
|
hyprlock.enable = true;
|
||||||
dconf.enable = true;
|
dconf.enable = true;
|
||||||
@@ -204,7 +207,6 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
alacritty
|
|
||||||
bat
|
bat
|
||||||
discord
|
discord
|
||||||
fd
|
fd
|
||||||
@@ -225,6 +227,7 @@
|
|||||||
vim
|
vim
|
||||||
wget
|
wget
|
||||||
wl-clipboard
|
wl-clipboard
|
||||||
|
xdg-user-dirs
|
||||||
zip
|
zip
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,11 @@ in
|
|||||||
outOfStoreSymlink = true;
|
outOfStoreSymlink = true;
|
||||||
recursive = true;
|
recursive = true;
|
||||||
};
|
};
|
||||||
|
".config/river" = {
|
||||||
|
source = ../../configs/river;
|
||||||
|
outOfStoreSymlink = true;
|
||||||
|
recursive = true;
|
||||||
|
};
|
||||||
".config/waybar" = {
|
".config/waybar" = {
|
||||||
source = ../../configs/waybar;
|
source = ../../configs/waybar;
|
||||||
outOfStoreSymlink = true;
|
outOfStoreSymlink = true;
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
fastfetch
|
fastfetch
|
||||||
filezilla
|
filezilla
|
||||||
floorp
|
floorp
|
||||||
|
fuzzel
|
||||||
fzf
|
fzf
|
||||||
genymotion
|
genymotion
|
||||||
gimp
|
gimp
|
||||||
@@ -51,17 +52,14 @@
|
|||||||
slurp
|
slurp
|
||||||
swaynotificationcenter
|
swaynotificationcenter
|
||||||
swww
|
swww
|
||||||
|
texliveFull
|
||||||
# Temporarily removing texliveFull as it currently has a dependency (xindy)
|
|
||||||
# with a dependency (clisp) with a broken drv
|
|
||||||
|
|
||||||
# texliveFull
|
|
||||||
|
|
||||||
xfce.thunar
|
xfce.thunar
|
||||||
xfce.thunar-volman
|
xfce.thunar-volman
|
||||||
tree
|
tree
|
||||||
waybar
|
waybar
|
||||||
wev
|
wev
|
||||||
|
wlr-randr
|
||||||
|
wlsunset
|
||||||
];
|
];
|
||||||
|
|
||||||
# BEGIN PROGRAMS
|
# BEGIN PROGRAMS
|
||||||
|
|||||||
Reference in New Issue
Block a user