Dotfiles config update (2022-05-21)

This commit is contained in:
q3aql 2022-05-21 00:33:50 +02:00
parent 8d8c9e1b44
commit 2e24ae66bf
14 changed files with 242 additions and 6 deletions

View File

@ -0,0 +1,13 @@
window {
background-color: rgba (0, 0, 0, 0.0);
}
#box-outer {
/* Define attributes of the box surrounding icons here */
background-color: rgba (255, 255, 255, 0.0)
}
#box-inner {
background-color: rgba (23, 53, 63, 0.5);
padding: 0 20px 0 20px
}

View File

@ -0,0 +1,27 @@
<span face="monospace">
<span size="xx-large" foreground="#6699cc" face="serif">Cheat sheet</span>
<span foreground="#eeeeee">
Terminal emulator <span foreground="#6699cc" face="serif">Mod+T</span>
Web browser <span foreground="#6699cc" face="serif">Mod+W</span>
Text editor <span foreground="#6699cc" face="serif">Mod+E</span>
Wallpaper manager <span foreground="#6699cc" face="serif">Mod+A</span>
File manager <span foreground="#6699cc" face="serif">Mod+F</span>
Application launcher <span foreground="#6699cc" face="serif">Alt+F1</span>
Kill task <span foreground="#6699cc" face="serif">Alt+Q</span>
Exit menu <span foreground="#6699cc" face="serif">Mod+X</span>
Reload sway <span foreground="#6699cc" face="serif">Mod+Shift+C</span>
Switch workspace <span foreground="#6699cc" face="serif">Alt+number</span>
Move to workspace <span foreground="#6699cc" face="serif">Mod+Shift+number</span>
Move focus <span foreground="#6699cc" face="serif">Mod+arrow</span>
Move container <span foreground="#6699cc" face="serif">Mod+Shift+arrow</span>
Toggle floating <span foreground="#6699cc" face="serif">Mod+Shift+Space</span>
Toggle layout <span foreground="#6699cc" face="serif">Alt+Tab</span>
Fullscreen <span foreground="#6699cc" face="serif">Mod+Shift+F</span>
Move to scratchpad <span foreground="#6699cc" face="serif">Mod+Shift+Z</span>
Show scratchpad <span foreground="#6699cc" face="serif">Mod+Z</span>
</span>
</span>

View File

@ -0,0 +1,18 @@
window {
background-color: rgba (30, 30, 46, 0.0);
font-family: UbuntuMono Nerd Font;
font-size: 12px;
}
#box-outer {
/* Define attributes of the box surrounding icons here */
background-color: rgba (30, 30, 46, 0.0);
font-family: UbuntuMono Nerd Font;
font-size: 12px;
}
#box-inner {
background-color: rgba (30, 30, 46, 0.0);
font-family: UbuntuMono Nerd Font;
font-size: 12px;
}

View File

@ -0,0 +1,64 @@
#!/usr/bin/env bash
echo '<b><span foreground="#3b8af6" face="UbuntuMono Nerd Font" size="12650"> SYSTEM INFO</span></b>'
echo '<b><span foreground="#3b8af6" face="UbuntuMono Nerd Font" size="12650">==============</span></b>'
echo ''
show_kernel=$(${HOME}/.config/conky/scripts/kernel_version.sh)
show_time=$(${HOME}/.config/conky/scripts/current_date.sh)
show_uptime=$(${HOME}/.config/conky/scripts/show_uptime.sh)
show_volume=$(${HOME}/.config/conky/scripts/get_volume.sh)
show_disk=$(${HOME}/.config/conky/scripts/disk_info.sh)
show_memory=$(${HOME}/.config/conky/scripts/mem_info.sh)
show_cpu=$(${HOME}/.config/conky/scripts/cpu_info.sh)
show_gpu=$(${HOME}/.config/conky/scripts/gpu_info.sh)
show_updates=$(${HOME}/.config/conky/scripts/checkUpdates.sh)
echo '<b><span foreground="#cf9c19" face="UbuntuMono Nerd Font" size="12650">  </span></b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Kernel:</span><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">' ${show_kernel}'</span></b>'
echo '<b><span foreground="#cf9c19" face="UbuntuMono Nerd Font" size="12650">  </span></b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Time:</span><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650"> '${show_time}'</span></b>'
echo '<b><span foreground="#cf9c19" face="UbuntuMono Nerd Font" size="12650">  </span></b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Uptime:</span><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">' ${show_uptime}'</span></b>'
echo '<b><span foreground="#cf9c19" face="UbuntuMono Nerd Font" size="12650">  </span></b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Volume:</span><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">' ${show_volume}'</span></b>'
echo '<b><span foreground="#cf9c19" face="UbuntuMono Nerd Font" size="12650">  </span></b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Disk:</span><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">' ${show_disk}'</span></b>'
echo '<b><span foreground="#cf9c19" face="UbuntuMono Nerd Font" size="12650">  </span></b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Memory:</span><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">' ${show_memory}'</span></b>'
echo '<b><span foreground="#cf9c19" face="UbuntuMono Nerd Font" size="12650">  </span></b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> CPU:</span><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">' ${show_cpu}'</span></b>'
echo '<b><span foreground="#cf9c19" face="UbuntuMono Nerd Font" size="12650"> ﬙ </span></b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> GPU:</span><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">' ${show_gpu}'</span></b>'
echo '<b><span foreground="#cf9c19" face="UbuntuMono Nerd Font" size="12650">  </span></b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Updates</span><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">' ${show_updates}'</span></b>'
echo ''
echo '<b><span foreground="#3b8af6" face="UbuntuMono Nerd Font" size="12650"> SWAY KEYBINDINGS</span></b>'
echo '<b><span foreground="#3b8af6" face="UbuntuMono Nerd Font" size="12650">===================</span></b>'
echo ''
echo '<b><b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super +  </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Kitty</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + וּ + space </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Float Window</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + f </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Fullscreen</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + p </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Wofi (Run Mode)</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + o </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Wofi (Drun Mode)</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + q </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Rofi (Window Mode)</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + d </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Dmenu</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + b </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Mozilla Firefox</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + n </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= PCManFM</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + t </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Wl-Screenshooter</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + g </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Geany</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + m </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Telegram</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + z </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Wf-Recorder</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + x </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Wdisplays</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + u </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Xterm</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + i </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= LXAppearance</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + c </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= NetworkManager</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + h </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Set Horizontal</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + v </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Set Vertical</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> ﱛ </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Volume +5</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> ﱜ </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Volume -5</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> ﱝ </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Mute Volume</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + וּ + q </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Kill Window</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + j </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Focus Left</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + ; </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Focus Right</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + l </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Focus Up</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + k </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Focus Down</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + וּ + e </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Logout</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + דּ + וּ + l </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Screen-off</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + r </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Resize Window</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + וּ + j </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Switch Left</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + וּ + ; </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Switch Right</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + וּ + l </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Switch Up</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + וּ + k </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Switch Down</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super + 1-9 </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Select Workspace</span></b>'
echo '<b><span foreground="#379838" face="UbuntuMono Nerd Font" size="12650">  </span></b><b><span foreground="#e25ee6" face="UbuntuMono Nerd Font" size="12650"> Super +  </span></b><b><span foreground="#9ca8ce" face="UbuntuMono Nerd Font" size="12650">= Menu Logout</span></b>'
#echo "</span>"

View File

@ -0,0 +1,12 @@
window {
background-color: rgba (0, 0, 0, 0.0);
}
#box-outer {
/* Define attributes of the box surrounding icons here */
background-color: rgba (255, 255, 255, 0.0)
}
#box-inner {
background-color: rgba (0, 0, 0, 0.0)
}

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
time=$(LC_ALL=C TZ='Europe/Warsaw' date +'%A, %d. %B')
wttr=$(curl https://wttr.in/?format=1)
echo '<span size="35000" foreground="#998000">'$time'</span><span size="30000" foreground="#ccc">'
echo $wttr'</span>'

View File

@ -0,0 +1,17 @@
window {
background-color: rgba (0, 0, 0, 0.0);
}
#box-outer {
/* Define attributes of the box surrounding icons here */
background-color: rgba (255, 255, 255, 0.0)
}
#box-inner {
background-color: rgba (23, 53, 63, 0.5);
border-radius: 5px;
border-style: dotted;
border-width: 1px;
border-color: rgba (156, 142, 122, 0.7);
padding: 10px
}

View File

@ -0,0 +1,12 @@
window {
background-color: rgba (0, 0, 0, 0.0);
}
#box-outer {
/* Define attributes of the box surrounding icons here */
background-color: rgba (255, 255, 255, 0.0)
}
#box-inner {
background-color: rgba (0, 0, 0, 0.0)
}

View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Some countries below have more than one time zone,
# and it makes sense to use cities instead of countries.
# Use tzselect to find their time zones.
time=$(TZ='America/Fortaleza' date +'%H:%M:%S')
echo '<span size="25000" foreground="#998000" face="monospace" weight="bold">Brazil '$time'</span>'
echo '<span size="large" face="monospace" foreground="#ccc">'
time=$(TZ='America/Atikokan' date +"%H:%M")
echo 'Canada <b>'$time'</b>'
time=$(TZ='Europe/Dublin' date +"%H:%M")
echo 'Ireland <b>'$time'</b>'
time=$(TZ='Asia/Kolkata' date +"%H:%M")
echo 'India <b>'$time'</b>'
time=$(TZ='Asia/Shanghai' date +"%H:%M")
echo 'China <b>'$time'</b>'
echo '</span>'

View File

@ -48,6 +48,7 @@ exec --no-startup-id diodon &
# Load Conky
#exec --no-startup-id sleep 10 && conky -c ~/.config/conky/conkyrc_sway &
exec --no-startup-id sleep 10 && nwg-wrapper -s conky_sway.sh -r 2000 -p right -mr 15 -mt 10 -mb 80
# Use pactl to adjust volume in PulseAudio.
#set $refresh_i3status killall -SIGUSR1 i3status

View File

@ -29,6 +29,7 @@ dotfiles - My tiling Qtile, Spectrwm, i3 , Dwm & Sway configurations (for Arch/D
$ cd pacaur
$ makepkg -si
$ pacaur -S pnmixer polybar nerd-fonts-complete wdisplays wlr-randr-git
$ pacaur -S nwg-wrapper
````
* I use `iwd` instead of `NetWorkManager` (`don't install if you prefer or use NetWorkManager`):
@ -59,6 +60,8 @@ dotfiles - My tiling Qtile, Spectrwm, i3 , Dwm & Sway configurations (for Arch/D
$ git clone https://github.com/q3aql/dotfiles
$ cd dotfiles/fonts
$ sudo ./install-fonts.sh
$ cd ../scripts
$ sudo ./nwg-wrapper-install.sh
````
* For install `alacritty`, type this commands `(Optional)`:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 1.6 MiB

View File

@ -114,9 +114,3 @@ else
i3_gaps_install_stable_deb
fi

47
scripts/nwg-wrapper-install.sh Executable file
View File

@ -0,0 +1,47 @@
#!/bin/bash
#################################################
# Script to build and install i3-gaps on Debian #
# Author: q3aql (q3aql@duck.com) #
# Last update: 09-01-2022 #
# ###############################################
# Variables
URL_Repo="https://github.com/nwg-piotr/nwg-wrapper.git"
dir_build="nwg-wrapper"
# Check if you are root
mkdir -p /etc/root &> /dev/null
administrador=$?
if [ ${administrador} -eq 0 ] ; then
rm -rf /etc/root
else
echo ""
echo "* nwg-wrapper install"
echo ""
echo "* Administrator permissions are required"
echo ""
exit
fi
# Install dependencies
echo ""
echo "* INSTALLING DEPENDENCIES..."
echo ""
sleep 2
apt update
apt upgrade -y
apt-get install git python3 python3-pip wlr-randr -y
apt-get install python-setuptools python3-setuptools -y
apt-get install libgtk3.0-cil-dev -y
apt-get install libgtk-layer-shell0 -y
apt-get install libgtk-layer-shell-dev -y
pip3 install gobject
pip3 install i3ipc
# Install nwg-wrapper
cd /tmp
git clone ${URL_Repo}
cd ${dir_build}
python3 setup.py install --optimize=1