Compare commits
2 Commits
2cb07c45a7
...
551a47989c
| Author | SHA1 | Date | |
|---|---|---|---|
| 551a47989c | |||
| 4666731676 |
@@ -1,11 +1,11 @@
|
||||
lib: {
|
||||
bgs = rec {
|
||||
files = {
|
||||
wallpaper_1 = "~/media/images/bg_1.jpg";
|
||||
wallpaper_2 = "~/media/images/bg_2.jpg";
|
||||
wallpaper_3 = "~/media/images/bg_3.jpg";
|
||||
wallpaper_4 = "~/media/images/waterwindow.jpg";
|
||||
wallpaper_5 = "~/media/images/barngreet.png";
|
||||
wallpaper_1 = "~/media/images/bgs/bg_1.jpg";
|
||||
wallpaper_2 = "~/media/images/bgs/bg_2.jpg";
|
||||
wallpaper_3 = "~/media/images/bgs/bg_3.jpg";
|
||||
wallpaper_4 = "~/media/images/bgs/waterwindow.jpg";
|
||||
wallpaper_5 = "~/media/images/bgs/barngreet.png";
|
||||
};
|
||||
|
||||
list = builtins.attrNames files;
|
||||
|
||||
@@ -74,7 +74,7 @@ in
|
||||
];
|
||||
window = {
|
||||
dynamic_title = true;
|
||||
opacity = 0.9;
|
||||
opacity = 0.95;
|
||||
padding = {
|
||||
x = 5;
|
||||
y = 5;
|
||||
|
||||
5
scripts/bin/choosepaper.sh
Normal file
5
scripts/bin/choosepaper.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
export bg_dir="$HOME/media/images/bgs/"
|
||||
find "$bg_dir" -type f | fzf --reverse --preview 'pistol {}' | while read -r img; do
|
||||
pkill swaybg || true
|
||||
swaybg -m fill -o '*' -i "$img" &
|
||||
done
|
||||
@@ -33,6 +33,20 @@ in
|
||||
);
|
||||
};
|
||||
|
||||
".local/bin/choosepaper.sh" = {
|
||||
source = getExe (
|
||||
pkgs.writeShellApplication {
|
||||
name = "spawn";
|
||||
runtimeInputs = with pkgs; [
|
||||
fzf
|
||||
swaybg
|
||||
pistol
|
||||
];
|
||||
text = readFile ./bin/choosepaper.sh;
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
".local/bin/pavucontrol-toggle.sh" = {
|
||||
source = getExe (
|
||||
pkgs.writeShellApplication {
|
||||
|
||||
Reference in New Issue
Block a user