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
|
### 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.
|
* Add Telescope keymaps to find the current word under the cursor within the open project.
|
||||||
|
|
||||||
## 4th January 2024
|
## 4th January 2024
|
||||||
|
|
|
@ -34,8 +34,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile.wallpaper = {
|
programs.feh.enable = true;
|
||||||
source = ../../../config/wallpaper;
|
|
||||||
recursive = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,17 @@
|
||||||
|
{ username, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.autorandr.enable = true;
|
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 = {
|
programs.autorandr = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
{ config, inputs, self, ... }:
|
{ config, inputs, self, username, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
home.file.".background-image".source = ../../../../config/wallpaper/wallpaper.jpg;
|
|
||||||
|
|
||||||
xsession.windowManager.i3 = {
|
xsession.windowManager.i3 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
|
@ -60,6 +58,8 @@ in
|
||||||
bindswitch --reload --locked lid:on output $laptop disable
|
bindswitch --reload --locked lid:on output $laptop disable
|
||||||
bindswitch --reload --locked lid:off output $laptop enable
|
bindswitch --reload --locked lid:off output $laptop enable
|
||||||
|
|
||||||
|
exec --no-startup-id feh --randomize --bg-scale /home/${username}/Pictures/Wallpaper/*;
|
||||||
|
|
||||||
default_border none
|
default_border none
|
||||||
default_floating_border none
|
default_floating_border none
|
||||||
smart_borders on
|
smart_borders on
|
||||||
|
|
Loading…
Reference in a new issue