mirror of
https://github.com/cizordj/i3-themer.git
synced 2024-04-21 12:32:12 +00:00
Remove the nitrogen dependency
Now the wallpapers are set by the xwallpaper utility.
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
function nitrogenConfig(){
|
||||
cat << EOF
|
||||
[xin_-1]
|
||||
file=$XDG_CONFIG_HOME/nitrogen/$wallpaper
|
||||
mode=5
|
||||
bgcolor=#000000
|
||||
EOF
|
||||
}
|
||||
@@ -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']}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user