Remove the nitrogen dependency

Now the wallpapers are set by the xwallpaper utility.
This commit is contained in:
cizordj
2021-01-27 13:17:36 -03:00
parent 18ba5e4133
commit ae6ce8dc61
4 changed files with 9 additions and 21 deletions
+3 -3
View File
@@ -24,15 +24,15 @@ Personal collection of themes and scripts for <a href="https://www.i3wm.org">i3w
<P>The i3 themer relies on a couple of dependencies to work nicely.</p>
<p>Fedora</p>
# dnf install dunst i3 i3lock polybar nitrogen rofi bash fontawesome-fonts sensible-utils xdg-utils alsa-utils rxvt-unicode fira-code-fonts scrot imagemagick
# dnf install dunst i3 i3lock polybar xwallpaper rofi bash fontawesome-fonts sensible-utils xdg-utils alsa-utils rxvt-unicode fira-code-fonts scrot imagemagick
<p>Debian</p>
# apt-get install dunst i3 i3lock polybar nitrogen rofi bash fonts-font-awesome xdg-utils sensible-utils alsa-utils rxvt-unicode fonts-firacode scrot imagemagick
# apt-get install dunst i3 i3lock polybar xwallpaper rofi bash fonts-font-awesome xdg-utils sensible-utils alsa-utils rxvt-unicode fonts-firacode scrot imagemagick
<p>FreeBSD</p>
# pkg install bash i3 i3lock dunst polybar nitrogen rofi xdg-utils rxvt-unicode font-awesome firacode scrot imagemagick7 mixertui
# pkg install bash i3 i3lock dunst polybar xwallpaper rofi xdg-utils rxvt-unicode font-awesome firacode scrot imagemagick7 mixertui
<h2>How to apply themes</h2>
<ul>
+1 -1
View File
@@ -226,7 +226,7 @@ mode "resize" {
}
# Autostart applications
exec --no-startup-id nitrogen --restore
exec --no-startup-id xwallpaper --daemon --zoom $XDG_CONFIG_HOME/xwallpaper/$wallpaper
exec --no-startup-id compton -b
exec --no-startup-id nm-applet
exec_always --no-startup-id $HOME/.config/polybar/i3wmthemer_bar_launch.sh
-10
View File
@@ -1,10 +0,0 @@
#!/bin/bash
function nitrogenConfig(){
cat << EOF
[xin_-1]
file=$XDG_CONFIG_HOME/nitrogen/$wallpaper
mode=5
bgcolor=#000000
EOF
}
+5 -7
View File
@@ -7,7 +7,6 @@ cd "$(dirname "$0")"
CONFIG_PATH['i3']="$XDG_CONFIG_HOME/i3/config"
CONFIG_PATH['dunst']="$XDG_CONFIG_HOME/dunst/dunstrc"
CONFIG_PATH['nitrogen']="$XDG_CONFIG_HOME/nitrogen/bg-saved.cfg"
CONFIG_PATH['polybar']="$XDG_CONFIG_HOME/polybar/config"
CONFIG_PATH['xresources']="$XDG_CONFIG_HOME/../.Xresources"
@@ -53,10 +52,10 @@ function listThemes(){
}
function restoreDefaults(){
rm "${CONFIG_PATH[@]}" "$XDG_CONFIG_HOME/polybar/i3wmthemer_bar_launch.sh"
rm "$XDG_CONFIG_HOME/nitrogen/"*
rm "$XDG_CONFIG_HOME/xwallpaper/"*
rmdir "$XDG_CONFIG_HOME/i3"
rmdir "$XDG_CONFIG_HOME/polybar"
rmdir "$XDG_CONFIG_HOME/nitrogen"
rmdir "$XDG_CONFIG_HOME/xwallpaper"
rmdir "$XDG_CONFIG_HOME/dunst"
cat << EOF
i3-themer successfully removed! You may want to remove the dependencies manually.
@@ -78,13 +77,13 @@ function touchConfigFiles(){
mkdir -p "$XDG_CONFIG_HOME"
mkdir -p "$XDG_CONFIG_HOME/i3"
mkdir -p "$XDG_CONFIG_HOME/polybar"
mkdir -p "$XDG_CONFIG_HOME/nitrogen"
mkdir -p "$XDG_CONFIG_HOME/dunst"
mkdir -p "$XDG_CONFIG_HOME/xwallpaper"
touch "${CONFIG_PATH[@]}"
}
function copyWallpapers(){
cp assets/wallpapers/* "$XDG_CONFIG_HOME/nitrogen/"
cp assets/wallpapers/* "$XDG_CONFIG_HOME/xwallpaper/"
}
function copyPolybarLauncher(){
cp assets/scripts/i3wmthemer_bar_launch.sh "$XDG_CONFIG_HOME/polybar/"
@@ -97,7 +96,7 @@ function restartApps(){
pkill dunst
xrdb "${CONFIG_PATH['xresources']}"
i3 restart
nitrogen --restore
xwallpaper --daemon --zoom "$XDG_CONFIG_HOME/xwallpaper/$wallpaper"
notify-send "Theme applied successfully!"
}
@@ -145,7 +144,6 @@ done
dunstConfig > "${CONFIG_PATH['dunst']}"
i3config > "${CONFIG_PATH['i3']}"
nitrogenConfig > "${CONFIG_PATH['nitrogen']}"
polybarConfig > "${CONFIG_PATH['polybar']}"
xresourcesConfig > "${CONFIG_PATH['xresources']}"