bingwp switch wp on exec

This commit is contained in:
Ivan Dimitrov 2023-11-14 21:00:01 +02:00
parent 911b6e8f3d
commit 3ee7a12b41
4 changed files with 8 additions and 4 deletions

View File

@ -10,3 +10,4 @@ mv "$img_file" "$backup_dir/$(date +%Y-%m-%d).png"
wget -O "$img_file" "$img_url"
swaybg -i "$img_file"

View File

@ -30,8 +30,10 @@
services = {
bingwp = {
Service = {
Type = "oneshot";
Environment = [ "PATH=${pkgs.curl}/bin:${pkgs.wget}/bin:${pkgs.xdg-user-dirs}/bin:${pkgs.jq}/bin:${pkgs.busybox}/bin:${pkgs.bash}/bin" ];
Environment = [
"PATH=${pkgs.curl}/bin:${pkgs.wget}/bin:${pkgs.xdg-user-dirs}/bin:${pkgs.jq}/bin:${pkgs.busybox}/bin:${pkgs.bash}/bin:${pkgs.swaybg}/bin"
"WAYLAND_DISPLAY=wayland-1"
];
ExecStart = [ "${pkgs.scripts}/bin/bingwp" ];
};
};

View File

@ -9,7 +9,8 @@ set $menu bemenu-run | xargs swaymsg exec --
exec swaymsg "workspace 1; exec kitty"
exec swaymsg "workspace 2; exec brave"
output * bg $HOME/pic/bg.png fill
exec systemctl --user restart bingwp.service
# Start a terminal
bindsym $mod+Return exec $term

View File

@ -13,7 +13,7 @@ in
syntaxHighlighting.enable = true;
enableAutosuggestions = true;
loginExtra = ''
[ "$(tty)" = "/dev/tty1" ] && exec sway --unsupported-gpu
[ "$(tty)" = "/dev/tty1" ] && exec sway
'';
sessionVariables = {
PASSWORD_STORE_DIR = "$HOME/.password-store";