bingwp switch wp on exec
This commit is contained in:
parent
911b6e8f3d
commit
3ee7a12b41
@ -10,3 +10,4 @@ mv "$img_file" "$backup_dir/$(date +%Y-%m-%d).png"
|
||||
|
||||
wget -O "$img_file" "$img_url"
|
||||
|
||||
swaybg -i "$img_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" ];
|
||||
};
|
||||
};
|
||||
|
@ -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
|
||||
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user