feat: nb performance tweaks
This commit is contained in:
@@ -17,7 +17,12 @@
|
|||||||
flatpak install --system -y --noninteractive --or-update flathub io.github.yuki_iptv.yuki-iptv
|
flatpak install --system -y --noninteractive --or-update flathub io.github.yuki_iptv.yuki-iptv
|
||||||
|
|
||||||
flatpak install --system -y --noninteractive --or-update flathub com.google.AndroidStudio
|
flatpak install --system -y --noninteractive --or-update flathub com.google.AndroidStudio
|
||||||
flatpak run --command=bash com.google.AndroidStudio -c 'curl -fsSL https://claude.ai/install.sh | bash'
|
|
||||||
|
# Only run claude.ai install script once
|
||||||
|
STAMP_FILE="/var/lib/flatpak-android-studio-claude-installed"
|
||||||
|
if [ ! -f "$STAMP_FILE" ]; then
|
||||||
|
flatpak run --command=bash com.google.AndroidStudio -c 'curl -fsSL https://claude.ai/install.sh | bash' && touch "$STAMP_FILE"
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,11 @@ in {
|
|||||||
# android-tools
|
# android-tools
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# Electron apps Wayland optimizations for better performance
|
||||||
|
environment.sessionVariables = {
|
||||||
|
ELECTRON_OZONE_PLATFORM_HINT = "auto";
|
||||||
|
};
|
||||||
|
|
||||||
nixpkgs.config.android_sdk.accept_license = true;
|
nixpkgs.config.android_sdk.accept_license = true;
|
||||||
|
|
||||||
programs.adb.enable = true; # sets up udev + adb group
|
programs.adb.enable = true; # sets up udev + adb group
|
||||||
|
|||||||
@@ -302,20 +302,20 @@ exec cryptomator
|
|||||||
exec swayidle \
|
exec swayidle \
|
||||||
before-sleep 'loginctl lock-session $XDG_SESSION_ID' \
|
before-sleep 'loginctl lock-session $XDG_SESSION_ID' \
|
||||||
lock 'swaylock -c 252525 -s center -i ~/.wallpaper.png' \
|
lock 'swaylock -c 252525 -s center -i ~/.wallpaper.png' \
|
||||||
timeout 180 'swaylock -c 252525 -s center -i ~/.wallpaper.png' \
|
timeout 300 'swaylock -c 252525 -s center -i ~/.wallpaper.png' \
|
||||||
timeout 1800 'systemctl suspend'
|
timeout 1800 'systemctl suspend'
|
||||||
exec dunst
|
exec dunst
|
||||||
#exec --no-startup-id swaybg -c "#000000" -m fill -i ~/.config/wallpaper/wot.jpg
|
#exec --no-startup-id swaybg -c "#000000" -m fill -i ~/.config/wallpaper/wot.jpg
|
||||||
# exec --no-startup-id gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
|
# exec --no-startup-id gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
|
||||||
exec 'sleep 2; swaymsg workspace "$ws8"; swaymsg layout tabbed'
|
exec 'sleep 1; swaymsg workspace "$ws8"; swaymsg layout tabbed'
|
||||||
exec mako --default-timeout=5000
|
exec mako --default-timeout=5000
|
||||||
|
|
||||||
# Battery low warning every minute
|
# Battery low warning every 2 minutes
|
||||||
exec_always sh -c 'while :; do battery-alert-swaynag; sleep 60; done' &
|
exec_always sh -c 'while :; do battery-alert-swaynag; sleep 120; done' &
|
||||||
|
|
||||||
# wallpaper
|
# wallpaper
|
||||||
# output eDP-1 scale 2 scale_filter linear
|
# output eDP-1 scale 2 scale_filter nearest
|
||||||
output eDP-1 mode 2880x1920 scale 2 scale_filter linear
|
output eDP-1 mode 2880x1920 scale 2 scale_filter nearest
|
||||||
output eDP-1 bg #282a36 solid_color
|
output eDP-1 bg #282a36 solid_color
|
||||||
output eDP-1 bg ~/.wallpaper.png center
|
output eDP-1 bg ~/.wallpaper.png center
|
||||||
output DP-2 position 0 0
|
output DP-2 position 0 0
|
||||||
|
|||||||
@@ -10,8 +10,6 @@ let
|
|||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
|
||||||
systemctl --user stop pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
|
|
||||||
systemctl --user start pipewire pipewire-media-session xdg-desktop-portal xdg-desktop-portal-wlr
|
|
||||||
systemctl --user import-environment DISPLAY
|
systemctl --user import-environment DISPLAY
|
||||||
export STEAM_RUNTIME=0
|
export STEAM_RUNTIME=0
|
||||||
'';
|
'';
|
||||||
@@ -76,9 +74,11 @@ in {
|
|||||||
programs.sway = {
|
programs.sway = {
|
||||||
enable = true;
|
enable = true;
|
||||||
wrapperFeatures.gtk = true;
|
wrapperFeatures.gtk = true;
|
||||||
extraOptions = [
|
extraOptions = [ ];
|
||||||
"--unsupported-gpu"
|
extraSessionCommands = ''
|
||||||
];
|
export WLR_NO_HARDWARE_CURSORS=1
|
||||||
|
export WLR_RENDERER=vulkan
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.etc = {
|
environment.etc = {
|
||||||
|
|||||||
Reference in New Issue
Block a user