Remove Nitrogen and use xwallpaper instead
This commit is contained in:
parent
dceb0442a2
commit
0fadfa2180
@ -788,3 +788,17 @@ fi
|
|||||||
|
|
||||||
check_smaller "$IFILE" "$OFILE"
|
check_smaller "$IFILE" "$OFILE"
|
||||||
#+end_src
|
#+end_src
|
||||||
|
* =setbg= - Set Background
|
||||||
|
:PROPERTIES:
|
||||||
|
:header-args: :tangle ~/bin/setbg
|
||||||
|
:END:
|
||||||
|
|
||||||
|
#+begin_src bash
|
||||||
|
bgloc="${XDG_CACHE_HOME:-$HOME/.cache/}/bg"
|
||||||
|
|
||||||
|
[ -f "$1" ] && ln -sf "$(readlink -f "$1")" "$bgloc"
|
||||||
|
|
||||||
|
[ -d "$1" ] && ln -sf "$(find "$(readlink -f "$1")" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$bgloc"
|
||||||
|
|
||||||
|
xwallpaper --zoom "$bgloc"
|
||||||
|
#+end_src
|
||||||
|
@ -223,24 +223,3 @@
|
|||||||
target=github.com/tdehaeze
|
target=github.com/tdehaeze
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Nitrogen (Wallpaper manager)
|
|
||||||
:PROPERTIES:
|
|
||||||
:header-args: :tangle ~/.config/nitrogen/nitrogen.cfg
|
|
||||||
:header-args+: :comments both :mkdirp yes
|
|
||||||
:END:
|
|
||||||
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
[geometry]
|
|
||||||
posx=560
|
|
||||||
posy=65
|
|
||||||
sizex=578
|
|
||||||
sizey=591
|
|
||||||
|
|
||||||
[nitrogen]
|
|
||||||
view=list
|
|
||||||
recurse=false
|
|
||||||
sort=alpha
|
|
||||||
icon_caps=false
|
|
||||||
dirs=/home/thomas/.wallpapers;
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
|
@ -33,8 +33,6 @@ Press =C-x= to activate to key handler.
|
|||||||
convert -rotate 90 "$file" "$file" ;;
|
convert -rotate 90 "$file" "$file" ;;
|
||||||
"C-c")
|
"C-c")
|
||||||
echo -n "$file" | xsel -ib ;;
|
echo -n "$file" | xsel -ib ;;
|
||||||
"C-w")
|
|
||||||
nitrogen --save --set-zoom-fill "$file" ;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
#+end_src
|
#+end_src
|
||||||
|
@ -1356,15 +1356,6 @@ Other commands:
|
|||||||
- =wunderline inbox=
|
- =wunderline inbox=
|
||||||
- =wunderline today=
|
- =wunderline today=
|
||||||
|
|
||||||
* Background manager: nitrogen
|
|
||||||
https://github.com/l3ib/nitrogen/
|
|
||||||
|
|
||||||
** Configuration
|
|
||||||
=~/.config/nitrogen/nitrogen.cfg=
|
|
||||||
|
|
||||||
** Wallpapers
|
|
||||||
=~/scripts/wallpaper.sh=: script to automatically change wallpaper each x minutes.
|
|
||||||
|
|
||||||
* PDF Reader: Zathura
|
* PDF Reader: Zathura
|
||||||
https://pwmt.org/projects/zathura/
|
https://pwmt.org/projects/zathura/
|
||||||
** Installation
|
** Installation
|
||||||
@ -1517,6 +1508,7 @@ https://github.com/jotyGill/openpyn-nordvpn
|
|||||||
https://nordvpn.com/fr/tutorials/linux/openvpn/
|
https://nordvpn.com/fr/tutorials/linux/openvpn/
|
||||||
|
|
||||||
* Others
|
* Others
|
||||||
|
** Wallpaper: =xwallpaper=
|
||||||
** Reddit on terminal: rtv
|
** Reddit on terminal: rtv
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
yay -S rtv
|
yay -S rtv
|
||||||
|
@ -20,18 +20,6 @@
|
|||||||
#+PROPERTY: header-args:bash+ :shebang "#!/usr/bin/env bash"
|
#+PROPERTY: header-args:bash+ :shebang "#!/usr/bin/env bash"
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
* Wallpapers
|
|
||||||
:PROPERTIES:
|
|
||||||
:header-args: :tangle ~/scripts/wallpapers.sh
|
|
||||||
:END:
|
|
||||||
|
|
||||||
#+begin_src bash
|
|
||||||
while true; do
|
|
||||||
nitrogen --set-zoom-fill --random ".wallpapers"
|
|
||||||
sleep 10m
|
|
||||||
done
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
* LockScreen
|
* LockScreen
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args: :tangle ~/scripts/lockscreen.sh
|
:header-args: :tangle ~/scripts/lockscreen.sh
|
||||||
|
@ -422,7 +422,7 @@ Start programs related to display.
|
|||||||
xrandr --output eDP1 --mode 1920x1080 --dpi 192 &
|
xrandr --output eDP1 --mode 1920x1080 --dpi 192 &
|
||||||
|
|
||||||
# Set custom wallpaper script
|
# Set custom wallpaper script
|
||||||
$HOME/scripts/wallpapers.sh &
|
setbg &
|
||||||
|
|
||||||
# Hide mouse cursor after x seconds
|
# Hide mouse cursor after x seconds
|
||||||
pgrep -xu "$USER" unclutter >/dev/null || \
|
pgrep -xu "$USER" unclutter >/dev/null || \
|
||||||
|
Loading…
Reference in New Issue
Block a user