fxi: waybar restart script
This commit is contained in:
parent
bb9a5b8122
commit
4b6451294b
3 changed files with 23 additions and 7 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
#Restart Waybar and swaync
|
||||
|
||||
XDG_CONFIG_HOME="$HOME/.dummy" # Prevent swaync use default gtk theme
|
||||
killall .waybar-wrapped
|
||||
killall .swaync-wrapped
|
||||
waybar -c ~/.config/waybar/config.json -s ~/.config/waybar/style.css &
|
||||
|
|
|
|||
|
|
@ -59,8 +59,11 @@
|
|||
"offscreen-css-text": "(inactive)",
|
||||
"rewrite": {
|
||||
"nvim . (.*)": " $1",
|
||||
"(.*) - Discord": " $1",
|
||||
"(.*) — Mozilla Firefox": " $1"
|
||||
"\\(\\d+\\) Discord (.*)": " $1",
|
||||
"(.*) - YouTube — Mozilla Firefox": " $1",
|
||||
"(.*) — Mozilla Firefox": " $1",
|
||||
"(.*) - VLC media player": " $1",
|
||||
"(.*) - YouTube Music — Mozilla Firefox": " $1"
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
{
|
||||
programs.virt-manager.enable = true;
|
||||
|
|
@ -15,11 +15,24 @@
|
|||
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu.swtpm.enable = true;
|
||||
qemu.ovmf.enable = true;
|
||||
qemu.ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
qemu = {
|
||||
package = pkgs.qemu_kvm;
|
||||
swtpm.enable = true;
|
||||
ovmf.enable = true;
|
||||
ovmf.packages = [ pkgs.OVMFFull.fd ];
|
||||
};
|
||||
};
|
||||
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
|
||||
environment.etc = {
|
||||
"ovmf/edk2-x86_64-secure-code.fd" = {
|
||||
source = config.virtualisation.libvirtd.qemu.package + "/share/qemu/edk2-x86_64-secure-code.fd";
|
||||
};
|
||||
|
||||
"ovmf/edk2-i386-vars.fd" = {
|
||||
source = config.virtualisation.libvirtd.qemu.package + "/share/qemu/edk2-i386-vars.fd";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue