wayland: use river as default

This commit is contained in:
Rouven Seifert 2023-12-17 17:22:51 +01:00
parent dd997624a9
commit 38d3e744ad
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
5 changed files with 30 additions and 20 deletions

View file

@ -4,18 +4,10 @@ let
inherit (prev) python3Packages;
inherit (prev) fetchFromGitHub;
inherit (prev) fetchPypi;
inherit (prev) fetchpatch;
inherit (prev) makeWrapper;
in
{
wpa_supplicant_gui = prev.wpa_supplicant_gui.overrideAttrs
(old: {
# better desktop application name. "wpa_gui" kinda sucks
postInstall = old.postInstall + ''
substituteInPlace $out/share/applications/wpa_gui.desktop --replace "Name=wpa_gui" "Name=Wireless connections"
'';
});
pcmanfm = prev.pcmanfm.overrideAttrs (_: {
# remove deskop preferences shortcut
postInstall = ''
@ -25,6 +17,14 @@ in
pww = callPackage ../pkgs/pww { };
river = prev.river.overrideAttrs (_: {
patches = [
(fetchpatch {
url = "https://patch-diff.githubusercontent.com/raw/riverwm/river/pull/735.patch";
hash = "sha256-7pwQfXurgJej0NZ+kD2qBQdrqD6pYA1PbHxzG+5rGac=";
})
];
});
tpm2-pkcs11 = prev.tpm2-pkcs11.override { fapiSupport = false; };

View file

@ -18,6 +18,14 @@
extraPortals = [
pkgs.xdg-desktop-portal-wlr
];
config = {
common = {
default = [ "wlr" ];
};
"org.freedesktop.impl.portal.Secret" = {
default = [ "gnome-keyring" ];
};
};
};
# wayland keylogger needs setuid
programs.wshowkeys.enable = true;
@ -31,6 +39,7 @@
# Authentication management.
auth sufficient pam_unix.so nullok likeauth try_first_pass
auth sufficient ${pkgs.pam_u2f}/lib/security/pam_u2f.so
auth sufficient ${pkgs.fprintd}/lib/security/pam_fprintd.so
auth required pam_deny.so

View file

@ -25,7 +25,7 @@ in
hostname = "falkenstein.vpn.rfive.de";
user = "root";
extraOptions = {
VerifyHostKeyDNS = "ask";
VerifyHostKeyDNS = "yes";
};
};
# used for nix remote building
@ -58,10 +58,6 @@ in
hostname = "tomate.ifsr.de";
user = "root";
};
"kaki" = {
hostname = "kaki.ifsr.de";
user = "root";
};
"git@ifsr.de" = {
match = "Host ifsr.de User git";
identityFile = git;
@ -71,11 +67,15 @@ in
"dijkstra" = {
hostname = "login.agdsn.tu-dresden.de";
user = "r5";
extraOptions = {
VerifyHostKeyDNS = "yes";
};
};
"*.agdsn.network" = {
user = "r5";
extraOptions = {
ProxyJump = "dijkstra";
VerifyHostKeyDNS = "yes";
};
};
"git@git.agdsn.de" = {

View file

@ -3,6 +3,7 @@
{
imports = [
./sway.nix
./river.nix
./breaktimer.nix
./waybar.nix
./shikane.nix

View file

@ -10,7 +10,7 @@
layer = "top";
position = "top";
height = 26;
modules-left = [ "sway/workspaces" "custom/spotifytitle" "sway/window" ];
modules-left = [ "river/tags" "custom/spotifytitle" "river/window" ];
modules-right = [ "network" "cpu" "pulseaudio" "battery" "tray" "custom/notification" "clock" ];
network = {
format-wifi = " {essid} ({signalStrength}%)";
@ -20,11 +20,11 @@
format-disconnected = "Disconnected ";
format-alt = "{ifname}: {ipaddr}/{cidr}";
};
"sway/workspaces" = {
"river/tags" = {
format = "{icon}";
on-click = "activate";
};
"sway/window" = {
"river/window" = {
format = " {}";
# separate-outputs = true;
};
@ -113,18 +113,18 @@
background-color: transparent;
}
#workspaces button {
#tags button {
padding: 0 5px;
background-color: transparent;
color: #${config.colorScheme.colors.base05};
}
#workspaces button.focused {
#tags button.focused {
background-color: #${config.colorScheme.colors.base04};
box-shadow: inset 0 -3px #${config.colorScheme.colors.base05};
}
#workspaces button.urgent {
#tags button.urgent {
background-color: #eb4d4b;
}