diff --git a/.config/nwg-wrapper/bindings.css b/.config/nwg-wrapper/bindings.css new file mode 100644 index 0000000..e614922 --- /dev/null +++ b/.config/nwg-wrapper/bindings.css @@ -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 +} diff --git a/.config/nwg-wrapper/bindings.pango b/.config/nwg-wrapper/bindings.pango new file mode 100644 index 0000000..11fbe38 --- /dev/null +++ b/.config/nwg-wrapper/bindings.pango @@ -0,0 +1,27 @@ + +Cheat sheet + +Terminal emulator Mod+T +Web browser Mod+W +Text editor Mod+E +Wallpaper manager Mod+A +File manager Mod+F +Application launcher Alt+F1 + +Kill task Alt+Q +Exit menu Mod+X +Reload sway Mod+Shift+C + +Switch workspace Alt+number +Move to workspace Mod+Shift+number +Move focus Mod+arrow +Move container Mod+Shift+arrow + +Toggle floating Mod+Shift+Space +Toggle layout Alt+Tab +Fullscreen Mod+Shift+F + +Move to scratchpad Mod+Shift+Z +Show scratchpad Mod+Z + + \ No newline at end of file diff --git a/.config/nwg-wrapper/conky_sway.css b/.config/nwg-wrapper/conky_sway.css new file mode 100644 index 0000000..f076be4 --- /dev/null +++ b/.config/nwg-wrapper/conky_sway.css @@ -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; +} diff --git a/.config/nwg-wrapper/conky_sway.sh b/.config/nwg-wrapper/conky_sway.sh new file mode 100755 index 0000000..a222b47 --- /dev/null +++ b/.config/nwg-wrapper/conky_sway.sh @@ -0,0 +1,64 @@ +#!/usr/bin/env bash + +echo ' SYSTEM INFO' +echo '==============' +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 ' Kernel:' ${show_kernel}'' +echo ' Time: '${show_time}'' +echo ' Uptime:' ${show_uptime}'' +echo ' Volume:' ${show_volume}'' +echo ' Disk:' ${show_disk}'' +echo ' Memory:' ${show_memory}'' +echo ' CPU:' ${show_cpu}'' +echo ' GPU:' ${show_gpu}'' +echo ' Updates' ${show_updates}'' +echo '' +echo ' SWAY KEYBINDINGS' +echo '===================' +echo '' +echo ' Super +  = Kitty' +echo ' Super + וּ + space = Float Window' +echo ' Super + f = Fullscreen' +echo ' Super + p = Wofi (Run Mode)' +echo ' Super + o = Wofi (Drun Mode)' +echo ' Super + q = Rofi (Window Mode)' +echo ' Super + d = Dmenu' +echo ' Super + b = Mozilla Firefox' +echo ' Super + n = PCManFM' +echo ' Super + t = Wl-Screenshooter' +echo ' Super + g = Geany' +echo ' Super + m = Telegram' +echo ' Super + z = Wf-Recorder' +echo ' Super + x = Wdisplays' +echo ' Super + u = Xterm' +echo ' Super + i = LXAppearance' +echo ' Super + c = NetworkManager' +echo ' Super + h = Set Horizontal' +echo ' Super + v = Set Vertical' +echo '= Volume +5' +echo '= Volume -5' +echo '= Mute Volume' +echo ' Super + וּ + q = Kill Window' +echo ' Super + j = Focus Left' +echo ' Super + ; = Focus Right' +echo ' Super + l = Focus Up' +echo ' Super + k = Focus Down' +echo ' Super + וּ + e = Logout' +echo ' Super + דּ + וּ + l = Screen-off' +echo ' Super + r = Resize Window' +echo ' Super + וּ + j = Switch Left' +echo ' Super + וּ + ; = Switch Right' +echo ' Super + וּ + l = Switch Up' +echo ' Super + וּ + k = Switch Down' +echo ' Super + 1-9 = Select Workspace' +echo ' Super +  = Menu Logout' +#echo "" diff --git a/.config/nwg-wrapper/date-wttr.css b/.config/nwg-wrapper/date-wttr.css new file mode 100644 index 0000000..bb4fdea --- /dev/null +++ b/.config/nwg-wrapper/date-wttr.css @@ -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) +} diff --git a/.config/nwg-wrapper/date-wttr.sh b/.config/nwg-wrapper/date-wttr.sh new file mode 100755 index 0000000..1d43fcb --- /dev/null +++ b/.config/nwg-wrapper/date-wttr.sh @@ -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 ''$time'' +echo $wttr'' \ No newline at end of file diff --git a/.config/nwg-wrapper/style.css b/.config/nwg-wrapper/style.css new file mode 100644 index 0000000..d4ca655 --- /dev/null +++ b/.config/nwg-wrapper/style.css @@ -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 +} diff --git a/.config/nwg-wrapper/timezones.css b/.config/nwg-wrapper/timezones.css new file mode 100644 index 0000000..bb4fdea --- /dev/null +++ b/.config/nwg-wrapper/timezones.css @@ -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) +} diff --git a/.config/nwg-wrapper/timezones.sh b/.config/nwg-wrapper/timezones.sh new file mode 100755 index 0000000..8dfe1ba --- /dev/null +++ b/.config/nwg-wrapper/timezones.sh @@ -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 'Brazil '$time'' + +echo '' +time=$(TZ='America/Atikokan' date +"%H:%M") +echo 'Canada '$time'' + +time=$(TZ='Europe/Dublin' date +"%H:%M") +echo 'Ireland '$time'' + +time=$(TZ='Asia/Kolkata' date +"%H:%M") +echo 'India '$time'' + +time=$(TZ='Asia/Shanghai' date +"%H:%M") +echo 'China '$time'' +echo '' \ No newline at end of file diff --git a/.config/sway/config b/.config/sway/config index da85ab2..a8ba63a 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -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 diff --git a/Dependencies.md b/Dependencies.md index f2cd4bc..c5e667c 100644 --- a/Dependencies.md +++ b/Dependencies.md @@ -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)`: diff --git a/examples/sway.png b/examples/sway.png index 7014bb8..be6fb9e 100644 Binary files a/examples/sway.png and b/examples/sway.png differ diff --git a/scripts/i3-gaps-install.sh b/scripts/i3-gaps-install.sh index a0499ba..a7b2bbd 100755 --- a/scripts/i3-gaps-install.sh +++ b/scripts/i3-gaps-install.sh @@ -114,9 +114,3 @@ else i3_gaps_install_stable_deb fi - - - - - - diff --git a/scripts/nwg-wrapper-install.sh b/scripts/nwg-wrapper-install.sh new file mode 100755 index 0000000..9281325 --- /dev/null +++ b/scripts/nwg-wrapper-install.sh @@ -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 +