Compare commits

...

4 commits

Author SHA1 Message Date
fleaz e9c46dabe8 sway: Reduce gaps 2024-08-27 20:29:25 +02:00
fleaz 52a39d40a2 waybar: Fix css for idle inhibitor 2024-08-27 20:29:10 +02:00
fleaz 2006a13331
home: Install Joplin from unstable 2024-08-26 20:40:33 +02:00
fleaz d0006081fd
home/sway: Drop swayfx 2024-07-23 19:29:18 +02:00
3 changed files with 7 additions and 14 deletions

View file

@ -90,7 +90,7 @@ in
fzf fzf
ncmpcpp ncmpcpp
acpi acpi
joplin-desktop # gui unstable.joplin-desktop
unstable.prusa-slicer unstable.prusa-slicer
htop htop

View file

@ -5,11 +5,9 @@ in
{ {
wayland.windowManager.sway = { wayland.windowManager.sway = {
enable = true; enable = true;
package = pkgs.swayfx;
wrapperFeatures.gtk = true; wrapperFeatures.gtk = true;
# Sway can't find wallpaper.jpg and failes to build # Sway can't find wallpaper.jpg and failes to build
# swayfx also has some problems:
# https://discourse.nixos.org/t/sway-fails-with-cannot-create-gles2-renderer-after-update/45703/2 # https://discourse.nixos.org/t/sway-fails-with-cannot-create-gles2-renderer-after-update/45703/2
checkConfig = false; checkConfig = false;
@ -42,12 +40,12 @@ in
} // lib.optionalAttrs (nixosConfig.networking.hostName == "smithers") { } // lib.optionalAttrs (nixosConfig.networking.hostName == "smithers") {
"eDP-1" = { "eDP-1" = {
mode = "2256x1504"; mode = "2256x1504";
scale = "1.3"; scale = "1.2";
position = "0,0"; position = "0,0";
}; };
}; };
gaps = { inner = 10; }; gaps = { inner = 5; };
window.border = 2; window.border = 2;
window.hideEdgeBorders = "smart"; window.hideEdgeBorders = "smart";
workspaceAutoBackAndForth = true; workspaceAutoBackAndForth = true;
@ -98,8 +96,8 @@ in
{ {
command = ''${pkgs.swayidle}/bin/swayidle -w \ command = ''${pkgs.swayidle}/bin/swayidle -w \
timeout 600 "${lockCmd}" \ timeout 600 "${lockCmd}" \
timeout 900 "${pkgs.swayfx}/bin/swaymsg output * dpms off" \ timeout 900 "${pkgs.sway}/bin/swaymsg output * dpms off" \
resume "${pkgs.swayfx}/bin/swaymsg output * dpms on" \ resume "${pkgs.sway}/bin/swaymsg output * dpms on" \
before-sleep "${lockCmd}"''; before-sleep "${lockCmd}"'';
} }
]; ];
@ -191,13 +189,6 @@ in
}; };
}; };
extraConfig = ''
blur enable
blur_radius 10
default_dim_inactive 0.2
corner_radius 15
'';
}; };
} }

View file

@ -66,6 +66,7 @@
} }
.modules-center { .modules-center {
padding: 3px; padding: 3px;
padding-right: 10px;
background-color: @dark; background-color: @dark;
margin: 0 0 5px 0; margin: 0 0 5px 0;
border-radius: 10px; border-radius: 10px;
@ -87,6 +88,7 @@
#pulseaudio, #pulseaudio,
#temperature, #temperature,
#tray, #tray,
#idle_inhibitor,
#disk { #disk {
background: transparent; background: transparent;
color: @light; color: @light;