master
Daniel Napora 2022-12-08 17:59:30 +01:00
parent c7553777ed
commit 8dd8887b4b
28 changed files with 65 additions and 27 deletions

View File

@ -0,0 +1,38 @@
#!/bin/bash
GTK2_RC="$HOME/.gtkrc-2.0"
GTK3_RC="$HOME/.config/gtk-3.0/settings.ini"
ICON_DEF="$HOME/.icons/default/index.theme"
XRES="$HOME/.Xresources"
/usr/bin/lxappearance
sleep .5
#READ Cursor theme name from GTK2_RC
read CURTHEME <<< "$(grep gtk-cursor-theme-name ${GTK2_RC} | cut -d'"' -f2)"
# WRITE to GTK3
if grep "^gtk-cursor-theme-name=${CURTHEME}" ${GTK3_RC};then
#found nic nie robimy
:
else
sd "^gtk-cursor-theme-name.*$" "gtk-cursor-theme-name=${CURTHEME}" ${GTK3_RC}
fi
# WRITE to ICON_DEF
if grep "^Inherits=${CURTHEME}" ${ICON_DEF};then
:
else
sd "^Inherits=.*$" "Inherits=${CURTHEME}" ${ICON_DEF}
fi
# WRITE to .Xresources
if grep "^Xcursor.theme: ${CURTHEME}" ${XRES};then
:
else
if grep Xcursor.theme ${XRES};then
sd "^Xcursor.theme:.*$" "Xcursor.theme: ${CURTHEME}" ${XRES}
else
echo "Xcursor.theme: ${CURTHEME}" >> ${XRES}
fi
xrdb "$HOME/.Xresources"
fi

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}kernel ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}filesystem ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} installed pkgs: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} branch: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}jądro ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}system plików ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} zainstalowane pakiety: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} gałąź: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}jądro ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}system plików ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} zainstalowane pakiety: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} gałąź: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}jądro ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}system plików ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} zainstalowane pakiety: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} gałąź: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}jądro ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}system plików ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} zainstalowane pakiety: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} gałąź: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}jądro ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}system plików ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} zainstalowane pakiety: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} gałąź: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}jądro ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}system plików ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} zainstalowane pakiety: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} gałąź: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}jądro ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}system plików ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} zainstalowane pakiety: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} gałąź: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}jądro ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}system plików ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} zainstalowane pakiety: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} gałąź: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}

View File

@ -50,7 +50,7 @@ ${alignr}${color0}uptime ${color}${uptime_short}
${alignr}${color0}${alignr}jądro ${color}${kernel}
${alignr}${color0}${alignr}arch ${color}${machine}
${alignr}${color0}${alignr}system plików ${color}${fs_type}${voffset 10}
${alignr}${color}${execpi 1800 checkupdates.sh -s}${font}${color}
${alignr}${color}${execpi 1800 checkupdates.sh -m}${font}${color}
${alignr}${color} zainstalowane pakiety: ${color0}${execi 10000 pacman -Q | wc -l}
${alignr}${color} gałąź: ${color0}${execi 10000 pacman-mirrors -G}
#${voffset -50}