Use feh for managing wallpaper

This commit is contained in:
Oliver Davies 2024-01-08 01:13:35 +00:00
parent c700329642
commit e87b718592
4 changed files with 16 additions and 7 deletions

View file

@ -10,6 +10,7 @@ Instead of grouping changes by tag, they are grouped by the date they are releas
### Added
* Add `feh` to automatically select a random wallpaper and link it with i3 and autorandr.
* Add Telescope keymaps to find the current word under the cursor within the open project.
## 4th January 2024

View file

@ -34,8 +34,5 @@
};
};
xdg.configFile.wallpaper = {
source = ../../../config/wallpaper;
recursive = true;
};
programs.feh.enable = true;
}

View file

@ -1,6 +1,17 @@
{ username, ... }:
{
services.autorandr.enable = true;
xdg.configFile."autorandr/postswitch" = {
executable = true;
text = ''
#!/usr/bin/env bash
feh --randomize --bg-scale /home/${username}/Pictures/Wallpaper/*;
'';
};
programs.autorandr = {
enable = true;

View file

@ -1,11 +1,9 @@
{ config, inputs, self, ... }:
{ config, inputs, self, username, ... }:
let
modifier = "Mod4";
in
{
home.file.".background-image".source = ../../../../config/wallpaper/wallpaper.jpg;
xsession.windowManager.i3 = {
enable = true;
@ -60,6 +58,8 @@ in
bindswitch --reload --locked lid:on output $laptop disable
bindswitch --reload --locked lid:off output $laptop enable
exec --no-startup-id feh --randomize --bg-scale /home/${username}/Pictures/Wallpaper/*;
default_border none
default_floating_border none
smart_borders on