Compare commits
4 commits
25e865a56f
...
b39ab134e7
Author | SHA1 | Date | |
---|---|---|---|
Dmitry Voronin | b39ab134e7 | ||
Dmitry Voronin | c1aa3e3a0a | ||
Dmitry Voronin | 2b0d181ad6 | ||
Dmitry Voronin | 100e4cd941 |
17
Makefile
17
Makefile
|
@ -10,7 +10,7 @@ android:
|
|||
cp ~/.Wallpaper /sdcard/Download/Wallpaper.jpg
|
||||
cp ~/.Wallpaper /sdcard/Download/Wallpaper.png
|
||||
|
||||
boot: fix-ulimit fix-unlock
|
||||
boot:
|
||||
nixos-rebuild boot $(options) --flake $(flake)
|
||||
|
||||
cached:
|
||||
|
@ -20,17 +20,16 @@ check:
|
|||
nix flake check --show-trace
|
||||
|
||||
# HACK: Fix ulimit switch issue. Test sometime in the future again.
|
||||
fix-ulimit:
|
||||
ulimit -n 999999999
|
||||
# fix-ulimit:
|
||||
# ulimit -n 999999999
|
||||
|
||||
# HACK: They broke switching in systemd service ffs.
|
||||
# https://github.com/NixOS/nixpkgs/issues/347315
|
||||
fix-unlock:
|
||||
pkill nixos-rebuild || true
|
||||
# fix-unlock:
|
||||
# pkill nixos-rebuild || true
|
||||
|
||||
# HACK: Bring back the nix config.
|
||||
fix-nixconf:
|
||||
mv /etc/nix/nix.conf_ /etc/nix/nix.conf
|
||||
nixconf:
|
||||
mv /etc/nix/nix.conf_ /etc/nix/nix.conf || true
|
||||
|
||||
gc:
|
||||
nix-collect-garbage -d
|
||||
|
@ -72,7 +71,7 @@ reboot: boot
|
|||
show:
|
||||
nix flake show
|
||||
|
||||
switch: fix-ulimit fix-unlock
|
||||
switch:
|
||||
nixos-rebuild switch $(options) --flake $(flake)
|
||||
|
||||
update:
|
||||
|
|
|
@ -6,10 +6,10 @@ in {
|
|||
bindsym ${mod} input * xkb_switch_layout 0
|
||||
bindsym --to-code ${mod}+a exec 'swayscript network'
|
||||
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}+l exec 'powerlimit toggle'
|
||||
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}+r exec 'swayscript reload'
|
||||
bindsym --to-code ${mod}+v exec 'swayscript vpn'
|
||||
|
|
|
@ -26,26 +26,23 @@
|
|||
fi
|
||||
|
||||
for net in ''${_vpns[@]}; do
|
||||
[[ "''${networks}" = "" ]] || networks+="\\\n"
|
||||
networks+=" ''${net}"
|
||||
networks+=" ''${net}\\\n"
|
||||
done
|
||||
|
||||
for net in ''${_ethernets[@]}; do
|
||||
[[ "''${networks}" = "" ]] || networks+="\\\n"
|
||||
networks+=" ''${net}"
|
||||
networks+=" ''${net}\\\n"
|
||||
done
|
||||
|
||||
for net in ''${_wifis[@]}; do
|
||||
[[ "''${networks}" = "" ]] || networks+="\\\n"
|
||||
networks+=" ''${net}"
|
||||
networks+=" ''${net}\\\n"
|
||||
done
|
||||
|
||||
for bt in ''${_bts[@]}; do
|
||||
[[ "''${networks}" = "" ]] || networks+="\\\n"
|
||||
networks+=" ''${bt}"
|
||||
networks+=" ''${bt}\\\n"
|
||||
done
|
||||
|
||||
printf "{\"text\": \"''${icon}\", \"tooltip\": \"''${networks[@]}\", \"class\": \"''${class}\"}\n"
|
||||
networks=''${networks%\\\n}
|
||||
printf "{\"text\": \"''${icon}\", \"tooltip\": \"''${networks}\", \"class\": \"''${class}\"}\n"
|
||||
}
|
||||
|
||||
# Toggle network.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
domain = "*";
|
||||
item = "nofile";
|
||||
type = "soft";
|
||||
value = "99999";
|
||||
value = "999999999";
|
||||
}
|
||||
{
|
||||
domain = "@users";
|
||||
|
|
Loading…
Reference in a new issue