Compare commits

...

4 commits

4 changed files with 16 additions and 20 deletions

View file

@ -10,7 +10,7 @@ android:
cp ~/.Wallpaper /sdcard/Download/Wallpaper.jpg cp ~/.Wallpaper /sdcard/Download/Wallpaper.jpg
cp ~/.Wallpaper /sdcard/Download/Wallpaper.png cp ~/.Wallpaper /sdcard/Download/Wallpaper.png
boot: fix-ulimit fix-unlock boot:
nixos-rebuild boot $(options) --flake $(flake) nixos-rebuild boot $(options) --flake $(flake)
cached: cached:
@ -20,17 +20,16 @@ check:
nix flake check --show-trace nix flake check --show-trace
# HACK: Fix ulimit switch issue. Test sometime in the future again. # HACK: Fix ulimit switch issue. Test sometime in the future again.
fix-ulimit: # fix-ulimit:
ulimit -n 999999999 # ulimit -n 999999999
# HACK: They broke switching in systemd service ffs. # HACK: They broke switching in systemd service ffs.
# https://github.com/NixOS/nixpkgs/issues/347315 # https://github.com/NixOS/nixpkgs/issues/347315
fix-unlock: # fix-unlock:
pkill nixos-rebuild || true # pkill nixos-rebuild || true
# HACK: Bring back the nix config. nixconf:
fix-nixconf: mv /etc/nix/nix.conf_ /etc/nix/nix.conf || true
mv /etc/nix/nix.conf_ /etc/nix/nix.conf
gc: gc:
nix-collect-garbage -d nix-collect-garbage -d
@ -72,7 +71,7 @@ reboot: boot
show: show:
nix flake show nix flake show
switch: fix-ulimit fix-unlock switch:
nixos-rebuild switch $(options) --flake $(flake) nixos-rebuild switch $(options) --flake $(flake)
update: update:

View file

@ -6,10 +6,10 @@ in {
bindsym ${mod} input * xkb_switch_layout 0 bindsym ${mod} input * xkb_switch_layout 0
bindsym --to-code ${mod}+a exec 'swayscript network' bindsym --to-code ${mod}+a exec 'swayscript network'
bindsym --to-code ${mod}+c exec 'systemctl reboot -i' bindsym --to-code ${mod}+c exec 'systemctl reboot -i'
bindsym --to-code ${mod}+d exec 'swayscript dnd'
bindsym --to-code ${mod}+g exec 'swayscript gaming' bindsym --to-code ${mod}+g exec 'swayscript gaming'
bindsym --to-code ${mod}+l exec 'powerlimit toggle' bindsym --to-code ${mod}+l exec 'powerlimit toggle'
bindsym --to-code ${mod}+m exec 'swayscript monitor' bindsym --to-code ${mod}+m exec 'swayscript monitor'
bindsym --to-code ${mod}+n exec 'swayscript dnd'
bindsym --to-code ${mod}+p exec 'powersave toggle' bindsym --to-code ${mod}+p exec 'powersave toggle'
bindsym --to-code ${mod}+r exec 'swayscript reload' bindsym --to-code ${mod}+r exec 'swayscript reload'
bindsym --to-code ${mod}+v exec 'swayscript vpn' bindsym --to-code ${mod}+v exec 'swayscript vpn'

View file

@ -26,26 +26,23 @@
fi fi
for net in ''${_vpns[@]}; do for net in ''${_vpns[@]}; do
[[ "''${networks}" = "" ]] || networks+="\\\n" networks+=" ''${net}\\\n"
networks+=" ''${net}"
done done
for net in ''${_ethernets[@]}; do for net in ''${_ethernets[@]}; do
[[ "''${networks}" = "" ]] || networks+="\\\n" networks+=" ''${net}\\\n"
networks+=" ''${net}"
done done
for net in ''${_wifis[@]}; do for net in ''${_wifis[@]}; do
[[ "''${networks}" = "" ]] || networks+="\\\n" networks+="󰖩 ''${net}\\\n"
networks+="󰖩 ''${net}"
done done
for bt in ''${_bts[@]}; do for bt in ''${_bts[@]}; do
[[ "''${networks}" = "" ]] || networks+="\\\n" networks+="󰂯 ''${bt}\\\n"
networks+="󰂯 ''${bt}"
done done
printf "{\"text\": \"''${icon}\", \"tooltip\": \"''${networks[@]}\", \"class\": \"''${class}\"}\n" networks=''${networks%\\\n}
printf "{\"text\": \"''${icon}\", \"tooltip\": \"''${networks}\", \"class\": \"''${class}\"}\n"
} }
# Toggle network. # Toggle network.

View file

@ -4,7 +4,7 @@
domain = "*"; domain = "*";
item = "nofile"; item = "nofile";
type = "soft"; type = "soft";
value = "99999"; value = "999999999";
} }
{ {
domain = "@users"; domain = "@users";