Use feh for managing wallpaper
This commit is contained in:
parent
c700329642
commit
e87b718592
|
@ -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
|
||||
|
|
|
@ -34,8 +34,5 @@
|
|||
};
|
||||
};
|
||||
|
||||
xdg.configFile.wallpaper = {
|
||||
source = ../../../config/wallpaper;
|
||||
recursive = true;
|
||||
};
|
||||
programs.feh.enable = true;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue