update rice
This commit is contained in:
parent
cd1a0366b9
commit
d2711ab3ad
18
README.md
18
README.md
|
@ -1,20 +1,24 @@
|
|||
<p align="center">
|
||||
<img width="40%" src="https://github.com/Mangeshrex/Bspdots/blob/main/assets/IMG_20210721_155345_773.png" />
|
||||
<img width="40%" src="https://github.com/Mangeshrex/Bspdots/blob/main/assets/pepe.png" />
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<b>🔥 Rex's Linux Dotfiles 🔥</b>
|
||||
</p>
|
||||
|
||||
<p align="left">
|
||||
<img src="../etc/bspwm.png">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<img src="https://img.shields.io/github/forks/Mangeshrex/dotfiles?color=6CBAD1&labelColor=131a1c&style=for-the-badge"> <img src="https://img.shields.io/github/stars/Mangeshrex/dotfiles?color=f65b5b&labelColor=131a1c&style=for-the-badge"> <img src="https://img.shields.io/github/issues/Mangeshrex/dotfiles?color=b185db&labelColor=131a1c&style=for-the-badge">
|
||||
<img src="https://img.shields.io/github/stars/Mangeshrex/dotfiles?color=e5c76b&labelColor=22292b&style=for-the-badge"> <img src="https://img.shields.io/github/issues/Mangeshrex/dotfiles?color=67b0e8&labelColor=22292b&style=for-the-badge">
|
||||
<img src="https://img.shields.io/static/v1?label=license&message=MIT&color=8ccf7e&labelColor=22292b&style=for-the-badge">
|
||||
<img src="https://img.shields.io/github/forks/Mangeshrex/dotfiles?color=e74c4c&labelColor=1b2224&style=for-the-badge">
|
||||
|
||||
</p>
|
||||
|
||||
- Repo to my Vim-dotfiles : https://github.com/Mangeshrex/vim-dots.
|
||||
|
||||
# Nord Bspwm Screenshot
|
||||
![Nord](https://user-images.githubusercontent.com/82205152/119094670-f6fd7600-ba2e-11eb-934d-b494e6714c6e.png)
|
||||
- ![config](https://github.com/mangeshrex/dotfiles/tree/nord)
|
||||
# Everblush
|
||||
![Everblush](https://raw.githubusercontent.com/Mangeshrex/dotfiles/main/etc/everblush-rice.png)
|
||||
|
||||
# To be Noted
|
||||
- Install All the Below Listed Polybar fonts.
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 177 KiB |
Binary file not shown.
Before Width: | Height: | Size: 560 KiB |
3
bin/hex
Executable file
3
bin/hex
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
pcs() { for i in {0..7}; do echo -en "\e[${1}$((30+$i))m \u2588\u2588 \e[0m"; done; }
|
||||
printf "\n%s\n%s\n\n" "$(pcs)" "$(pcs '1;')"
|
146
bin/rxfetch
Executable file
146
bin/rxfetch
Executable file
|
@ -0,0 +1,146 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
#colors
|
||||
#bold="(tput bold)"
|
||||
magenta="\033[1;35m"
|
||||
green="\033[1;32m"
|
||||
white="\033[1;37m"
|
||||
blue="\033[1;34m"
|
||||
red="\033[1;31m"
|
||||
black="\033[1;40;30m"
|
||||
yellow="\033[1;33m"
|
||||
cyan="\033[1;36m"
|
||||
reset="\033[0m"
|
||||
bgyellow="\033[1;43;33m"
|
||||
bgwhite="\033[1;47;37m"
|
||||
c0=${reset}
|
||||
c1=${magenta}
|
||||
c2=${green}
|
||||
c3=${white}
|
||||
c4=${blue}
|
||||
c5=${red}
|
||||
c6=${yellow}
|
||||
c7=${cyan}
|
||||
c8=${black}
|
||||
c9=${bgyellow}
|
||||
c10=${bgwhite}
|
||||
|
||||
# Setup fonts
|
||||
setup_fonts() {
|
||||
os=$(uname -o)
|
||||
if [ "$os" = "Android" ]; then
|
||||
if [ ! -f "$HOME/.termux/fonts/Material.ttf" ]; then
|
||||
cp ttf-material-design-icons/* "$HOME/.termux/fonts/"
|
||||
termux-reload-settings
|
||||
fi
|
||||
elif ! fc-match :family='Material' | grep -Eq '^Material.ttf'; then
|
||||
mkdir -p "$HOME/.local/share/fonts"
|
||||
cp ttf-material-design-icons/* "$HOME/.local/share/fonts"
|
||||
fc-cache -vf &>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
# Get the init
|
||||
get_init() {
|
||||
os=$(uname -o)
|
||||
if [ "$os" = "Android" ]; then
|
||||
echo 'init.rc'
|
||||
elif pidof -q systemd; then
|
||||
echo 'systemd'
|
||||
elif [ -f '/sbin/openrc' ]; then
|
||||
echo 'openrc'
|
||||
else
|
||||
cut -d ' ' -f 1 /proc/1/comm
|
||||
fi
|
||||
}
|
||||
|
||||
# Get count of packages installed
|
||||
get_pkg_count() {
|
||||
package_managers=('xbps-install' 'apk' 'apt' 'pacman' 'nix' 'dnf' 'rpm' 'emerge')
|
||||
for package_manager in ${package_managers[@]}; do
|
||||
if command -v $package_manager 2>/dev/null>&2; then
|
||||
case "$package_manager" in
|
||||
xbps-install ) xbps-query -l | wc -l ;;
|
||||
apk ) apk search | wc -l ;;
|
||||
apt ) apt list --installed 2>/dev/null | wc -l ;;
|
||||
pacman ) pacman -Q | wc -l ;;
|
||||
nix ) nix-env -qa --installed '*' | wc -l ;;
|
||||
dnf ) dnf list installed | wc -l ;;
|
||||
rpm ) rpm -qa | wc -l ;;
|
||||
emerge ) qlist -I | wc -l ;;
|
||||
esac
|
||||
|
||||
# if a package manager is found return from the function
|
||||
return
|
||||
fi
|
||||
done
|
||||
echo 'Unknown'
|
||||
}
|
||||
|
||||
# Get distro name
|
||||
get_distro_name() {
|
||||
os=$(uname -o)
|
||||
if [ "$os" = "Android" ] ; then
|
||||
echo 'Android'
|
||||
else
|
||||
awk -F '"' '/PRETTY_NAME/ { print $2 }' /etc/os-release
|
||||
fi
|
||||
}
|
||||
|
||||
# Get root partition space used
|
||||
get_storage_info() {
|
||||
df -h --output=used,size / | awk 'NR == 2 { print $1" / "$2 }'
|
||||
}
|
||||
|
||||
# Get Memory usage
|
||||
get_mem() {
|
||||
free --mega | awk 'NR == 2 { print $3" / "$2" MB" }'
|
||||
}
|
||||
|
||||
# Get uptime
|
||||
get_uptime() {
|
||||
uptime -p | sed 's/up//'
|
||||
}
|
||||
|
||||
# Get DE/WM
|
||||
# Reference: https://github.com/unixporn/robbb/blob/master/fetcher.sh
|
||||
get_de_wm() {
|
||||
wm="${XDG_CURRENT_DESKTOP#*:}"
|
||||
[ "$wm" ] || wm="$DESKTOP_SESSION"
|
||||
|
||||
# for most WMs
|
||||
[ ! "$wm" ] && [ "$DISPLAY" ] && command -v xprop >/dev/null && {
|
||||
id=$(xprop -root -notype _NET_SUPPORTING_WM_CHECK)
|
||||
id=${id##* }
|
||||
wm=$(xprop -id "$id" -notype -len 100 -f _NET_WM_NAME 8t | grep '^_NET_WM_NAME' | cut -d\" -f 2)
|
||||
}
|
||||
|
||||
# for non-EWMH WMs
|
||||
[ ! "$wm" ] || [ "$wm" = "LG3D" ] &&
|
||||
wm=$(ps -e | grep -m 1 -o \
|
||||
-e "sway" \
|
||||
-e "kiwmi" \
|
||||
-e "wayfire" \
|
||||
-e "sowm" \
|
||||
-e "catwm" \
|
||||
-e "fvwm" \
|
||||
-e "dwm" \
|
||||
-e "2bwm" \
|
||||
-e "monsterwm" \
|
||||
-e "tinywm" \
|
||||
-e "xmonad")
|
||||
|
||||
echo ${wm:-unknown}
|
||||
}
|
||||
|
||||
setup_fonts
|
||||
|
||||
echo " "
|
||||
echo -e " ${c3}•${c8}_${c3}•${c0} ${c7}pkgs${c3} $(get_pkg_count)"
|
||||
echo -e " ${c8}${c0}${c9}oo${c0}${c8}|${c0} ${c4}sh${c3} ${SHELL##*/}"
|
||||
echo -e " ${c8}/${c0}${c10} ${c0}${c8}'\'${c0} ${c6}ram${c3} $(get_mem)"
|
||||
echo -e " ${c9}(${c0}${c8}\_;/${c0}${c9})${c0} ${c1}init${c3} $(get_init)"
|
||||
echo -e " ${c2}de/wm${c3} $(get_de_wm)"
|
||||
echo -e " "
|
||||
echo -e " ${c6} ${c6}${c2} ${c2}${c4} ${c4}${c5} ${c5}${c7} ${c7}"
|
||||
echo -e " \033[0m"
|
72
bin/status
Executable file
72
bin/status
Executable file
|
@ -0,0 +1,72 @@
|
|||
|
||||
#!/bin/sh
|
||||
|
||||
# a single script to display any status i want
|
||||
|
||||
# ARGS: vol/volume. bat/battery, music/playerctl
|
||||
|
||||
status_volume() {
|
||||
vol=$(pamixer --sink @DEFAULT_SINK@ --get-volume)
|
||||
echo "墳 $vol"
|
||||
}
|
||||
|
||||
status_battery() {
|
||||
CHARGE=$(cat /sys/class/power_supply/BAT0/capacity)
|
||||
if (($CHARGE > 95)); then
|
||||
printf " "
|
||||
elif (($CHARGE > 70)); then
|
||||
printf " "
|
||||
elif ((CHARGE > 50)); then
|
||||
printf " "
|
||||
elif (($CHARGE > 30)); then
|
||||
printf " "
|
||||
else
|
||||
printf " "
|
||||
fi
|
||||
}
|
||||
|
||||
status_temperature() {
|
||||
read -r tmp </sys/class/thermal/thermal_zone0/temp
|
||||
printf '%s°C\n' "${tmp%???}"
|
||||
}
|
||||
|
||||
status_wifi() {
|
||||
if [ "$(cat /sys/class/net/wlan0/operstate)" = "up" ]; then
|
||||
echo " "
|
||||
else
|
||||
echo "睊"
|
||||
fi
|
||||
}
|
||||
|
||||
status_playerctl() {
|
||||
player_status=$(playerctl status 2> /dev/null)
|
||||
if [ "$player_status" = "Playing" ]; then
|
||||
echo " $(playerctl metadata artist) - $(playerctl metadata title)"
|
||||
elif [ "$player_status" = "Paused" ]; then
|
||||
echo " $(playerctl metadata artist) - $(playerctl metadata title)"
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
}
|
||||
|
||||
while [ "$1" ]; do
|
||||
case "$1" in
|
||||
vol)
|
||||
status_volume
|
||||
exit ;;
|
||||
bat)
|
||||
status_battery
|
||||
exit ;;
|
||||
temp)
|
||||
status_temperature
|
||||
exit ;;
|
||||
music)
|
||||
status_playerctl
|
||||
exit ;;
|
||||
wifi)
|
||||
status_wifi
|
||||
exit ;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
22
bin/thiccHex
Executable file
22
bin/thiccHex
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
#colorscheme script
|
||||
#inspired by u/dkeg
|
||||
|
||||
f=3 b=4
|
||||
for j in f b; do
|
||||
for i in {0..7}; do
|
||||
printf -v $j$i %b "\e[${!j}${i}m"
|
||||
done
|
||||
done
|
||||
d=$'\e[1m'
|
||||
t=$'\e[0m'
|
||||
v=$'\e[7m'
|
||||
|
||||
cat << EOF
|
||||
|
||||
$f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t
|
||||
$f1███$d██$t $f2███$d██$t $f3███$d██$t $f4███$d██$t $f5███$d██$t $f6███$d██$t
|
||||
$f15███$d$f15██$1 $f15███$d$f15██$1 $f15███$d$f15██$1 $f15███$d$f15██$1 $f15███$d$f15██$1 $f15███$d$f15██$1
|
||||
red grn ylw blu mag cya
|
||||
|
||||
EOF
|
33
cfg/bspwm/bspwmrc
Executable file
33
cfg/bspwm/bspwmrc
Executable file
|
@ -0,0 +1,33 @@
|
|||
#! /bin/sh
|
||||
|
||||
xrdb -merge ~/.Xresources
|
||||
pgrep -x sxhkd > /dev/null || sxhkd &
|
||||
#bspc monitor -d WEB CODE FILES CHAT MUSIC
|
||||
bspc monitor -d WEB CODE FILES CHAT MUSIC
|
||||
############Window Settings ####################
|
||||
bspc config border_width 1
|
||||
bspc config window_gap 5
|
||||
bspc config focus_follows_pointer true
|
||||
bspc config split_ratio 0.50
|
||||
bspc config borderless_monocle false
|
||||
bspc config gapless_monocle true
|
||||
bspc config border_radius 5
|
||||
|
||||
########## Border Colors #################
|
||||
bspc config focused_border_color "#131a1c"
|
||||
bspc config normal_border_color "#131a1c"
|
||||
|
||||
######### Program settings ################
|
||||
bspc rule -a KotatogramDesktop desktop='^4'
|
||||
bspc rule -a firefox desktop='^1'
|
||||
bspc rule -a Zathura state=tiled
|
||||
dunst &
|
||||
|
||||
######### Other Settings ################
|
||||
xsetroot -cursor_name left_ptr &
|
||||
xinput set-prop 12 309 1
|
||||
compix &
|
||||
|
||||
######## THe real beauty behind rice ####
|
||||
xwallpaper --zoom ~/wallpaper/personal-5.jpg
|
||||
tint2
|
198
cfg/eww/systray/eww.scss
Normal file
198
cfg/eww/systray/eww.scss
Normal file
|
@ -0,0 +1,198 @@
|
|||
$pink: #ee9cdd;
|
||||
$magenta: #c47fd5;
|
||||
$red: #e06e6e;
|
||||
$yellow: #d8b25b;
|
||||
$green: #8ccf7e;
|
||||
$teal: #8ad8ef;
|
||||
$blue: #5dc1dd;
|
||||
$sky: #5db7cb;
|
||||
$lavender: #bab3e5;
|
||||
$black0: #1b2224;
|
||||
$black1: #232a2c;
|
||||
$black2: #181f21;
|
||||
$black3: #22282b;
|
||||
$black4: #202729;
|
||||
$gray0: #b3b9b8;
|
||||
$gray1: #bdc3c2;
|
||||
$gray3: #636a6c;
|
||||
$white: #777e80;
|
||||
$background: $black0;
|
||||
$background-dark: $black2;
|
||||
|
||||
* {
|
||||
all: unset;
|
||||
}
|
||||
|
||||
.window {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.settings-panel {
|
||||
border-radius: 1rem;
|
||||
padding: 1rem;
|
||||
background-color: $background;
|
||||
}
|
||||
|
||||
.daily {
|
||||
font-family: 'Cartograph CF';
|
||||
font-style: italic;
|
||||
font-size: 1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
padding-top: 1em;
|
||||
}
|
||||
|
||||
.daily-date {
|
||||
border-radius: 0.5em;
|
||||
background-color: $background-dark;
|
||||
color: $magenta;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.daily-weather {
|
||||
border-radius: 0.5em;
|
||||
background-color: $background-dark;
|
||||
color: $green;
|
||||
margin-left: 0.5rem;
|
||||
padding: 1.5rem;
|
||||
}
|
||||
|
||||
.circle-volume-box {
|
||||
background: $background;
|
||||
padding: 1.5rem 2.3rem 1.5rem 2.3rem;
|
||||
margin: .5rem;
|
||||
border-radius: 2rem 0;
|
||||
}
|
||||
|
||||
.volume-radial {
|
||||
background-color: $background-dark
|
||||
}
|
||||
|
||||
.volume-radial-label {
|
||||
padding: 2.5rem;
|
||||
}
|
||||
|
||||
.volume-radial {
|
||||
color: $pink;
|
||||
}
|
||||
|
||||
.fetchContent {
|
||||
padding: 1rem 0 1rem 0;
|
||||
font-family: 'Cartograph CF';
|
||||
font-style: italic;
|
||||
font-size: 1rem;
|
||||
color: $lavender;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-family: 'JetBrainsMono Nerd Font';
|
||||
font-size: 4.5rem;
|
||||
color: $blue;
|
||||
margin-left: -2rem;
|
||||
}
|
||||
|
||||
.fetch {
|
||||
background-color: $background-dark;
|
||||
border-radius: .5em;
|
||||
color: $teal
|
||||
}
|
||||
|
||||
.fetchTitles {
|
||||
color: $blue;
|
||||
margin-left: -1.5rem;
|
||||
}
|
||||
|
||||
.fetchDetails{
|
||||
padding-left: .5rem;
|
||||
color: $lavender;
|
||||
}
|
||||
|
||||
.volume {
|
||||
border-radius: 0.5em;
|
||||
background-color: $background-dark;
|
||||
margin-top: 0.1rem;
|
||||
}
|
||||
|
||||
.volume-scale trough highlight {
|
||||
all: unset;
|
||||
background-color: $sky;
|
||||
border-radius: 0.7em;
|
||||
}
|
||||
|
||||
.volume-down, .volume-up {
|
||||
font-family: "feather";
|
||||
font-size: 2rem;
|
||||
color: $teal;
|
||||
padding: 0 1rem 0 1rem;
|
||||
}
|
||||
|
||||
.brightness {
|
||||
border-radius: 0.5em;
|
||||
background-color: $black1;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.brightness-scale trough highlight {
|
||||
all: unset;
|
||||
background-color: $sky;
|
||||
border-radius: 0.7em;
|
||||
}
|
||||
|
||||
.brightness-down, .brightness-up {
|
||||
font-family: "feather";
|
||||
font-size: 1.5rem;
|
||||
padding: 0 1rem 0 1rem;
|
||||
color: $lavender;
|
||||
}
|
||||
|
||||
.volume-scale trough, .brightness-scale trough{
|
||||
min-height: 1.5rem;
|
||||
border-radius: 0.7em;
|
||||
background-color: $black1;
|
||||
}
|
||||
|
||||
.systemmenu {
|
||||
background-color: $background-dark;
|
||||
border-radius: 1em;
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
.system-menu-icon {
|
||||
font-family: "feather";
|
||||
margin-bottom: 0.5rem;
|
||||
margin-top: 0.5rem;
|
||||
border-radius: 1rem;
|
||||
font-size: 2.5rem;
|
||||
background-color: $background-dark;
|
||||
}
|
||||
|
||||
.system-menu-icon:nth-child(1) {
|
||||
color: $red;
|
||||
padding: 15px;
|
||||
}
|
||||
.system-menu-icon:nth-child(2) {
|
||||
margin-right: 0.1em;
|
||||
margin-left: 0.1em;
|
||||
color: $green;
|
||||
padding: 15px;
|
||||
}
|
||||
.system-menu-icon:nth-child(3) {
|
||||
color: $blue;
|
||||
margin-right: 0.1em;
|
||||
margin-left: 0.1em;
|
||||
padding: 15px;
|
||||
}
|
||||
.system-menu-icon:nth-child(4) {
|
||||
color: $yellow;
|
||||
margin-right: 0.1em;
|
||||
margin-left: 0.1em;
|
||||
padding: 15px
|
||||
}
|
||||
.system-menu-icon:nth-child(5) {
|
||||
color: lavender;
|
||||
margin-right: 0.1rem;
|
||||
margin-left: 0.1rem;
|
||||
padding: 15px;
|
||||
}
|
||||
.system-menu-icon:hover{
|
||||
background-color: $black0;
|
||||
border-radius: 0.5em;
|
||||
}
|
1
cfg/eww/systray/eww.yuck
Normal file
1
cfg/eww/systray/eww.yuck
Normal file
|
@ -0,0 +1 @@
|
|||
(include "./windows/settings-panel/index.yuck")
|
4
cfg/eww/systray/scripts/disk
Executable file
4
cfg/eww/systray/scripts/disk
Executable file
|
@ -0,0 +1,4 @@
|
|||
# Get Memory usage
|
||||
get_mem() {
|
||||
free --mega | awk 'NR == 2 { print $3" / "$2" MB" }'
|
||||
}
|
11
cfg/eww/systray/scripts/fetch
Executable file
11
cfg/eww/systray/scripts/fetch
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$1" = "os" ]; then
|
||||
awk '/^ID=/' /etc/*-release | awk -F'=' '{ print tolower($2) }'
|
||||
elif [ "$1" = "sh" ]; then
|
||||
basename $SHELL
|
||||
elif [ "$1" = "up" ]; then
|
||||
uptime -p | sed -e 's/up //;s/ hours,/h/;s/ hour,/h/;s/ minutes/m/;s/ minute/m/'
|
||||
elif [ "$1" = "wm" ]; then
|
||||
xprop -id $(xprop -root -notype | awk '$1=="_NET_SUPPORTING_WM_CHECK:"{print $5}') -notype -f _NET_WM_NAME 8t | grep "WM_NAME" | cut -f2 -d \"
|
||||
fi
|
27
cfg/eww/systray/scripts/pkgs
Executable file
27
cfg/eww/systray/scripts/pkgs
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
if [ "$1" = "check" ]; then
|
||||
echo -e "
|
||||
██████╗ ██╗ ██╗ ██████╗ ███████╗
|
||||
██╔══██╗██║ ██╔╝██╔════╝ ██╔════╝
|
||||
██████╔╝█████╔╝ ██║ ███╗███████╗
|
||||
██╔═══╝ ██╔═██╗ ██║ ██║╚════██║
|
||||
██║ ██║ ██╗╚██████╔╝███████║
|
||||
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝
|
||||
|
||||
██╗ ██╗███████╗████████╗
|
||||
██║ ██║██╔════╝╚══██╔══╝
|
||||
██║ ██║███████╗ ██║
|
||||
██║ ██║╚════██║ ██║
|
||||
███████╗██║███████║ ██║
|
||||
╚══════╝╚═╝╚══════╝ ╚═╝
|
||||
"
|
||||
sleep 1
|
||||
echo "Listing..."
|
||||
pacman -Qe && echo "Listing Successfully" || echo "Failed"
|
||||
echo "press <Enter> to exit"
|
||||
read -r _
|
||||
|
||||
else
|
||||
pacman -Q | wc -l
|
||||
fi
|
||||
|
7
cfg/eww/systray/scripts/popup
Executable file
7
cfg/eww/systray/scripts/popup
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
if [ "$1" = "update" ]; then
|
||||
bspc rule -a kitty -o state=floating follow=on center=true rectangle=490x310+0+0 && kitty ~/.config/eww/systray/scripts/update Up
|
||||
elif [ "$1" = "check" ]; then
|
||||
bspc rule -a kitty -o state=floating follow=on center=true rectangle=490x310+0+0 && kitty ~/.config/eww/systray/scripts/pkgs check
|
||||
fi
|
22
cfg/eww/systray/scripts/update
Executable file
22
cfg/eww/systray/scripts/update
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
updates_arch=$(checkupdates 2> /dev/null | wc -l );
|
||||
[ -z "$updates_arch" ] && updates_arch=0
|
||||
|
||||
updates_aur=$(checkupdates-aur 2> /dev/null | wc -l)
|
||||
[ -z "$updates_aur" ] && updates_aur=0
|
||||
|
||||
updates=$((updates_arch + updates_aur))
|
||||
|
||||
if [ "$1" = "Up" ]; then
|
||||
echo "Updates available for $updates Packages"
|
||||
sleep 1
|
||||
echo "Updating..."
|
||||
yay -Syu && echo "Updated Successfully" || echo "Failed"
|
||||
echo "press <Enter> to exit"
|
||||
read -r _
|
||||
|
||||
else
|
||||
echo "$updates"
|
||||
fi
|
||||
|
8
cfg/eww/systray/scripts/wifi
Executable file
8
cfg/eww/systray/scripts/wifi
Executable file
|
@ -0,0 +1,8 @@
|
|||
status_wifi() {
|
||||
if [ "$(cat /sys/class/net/wlan0/operstate)" = "up" ]; then
|
||||
echo " "
|
||||
else
|
||||
echo "睊"
|
||||
fi
|
||||
}
|
||||
|
15
cfg/eww/systray/windows/settings-panel/brightness.yuck
Normal file
15
cfg/eww/systray/windows/settings-panel/brightness.yuck
Normal file
|
@ -0,0 +1,15 @@
|
|||
(defpoll current-brightness :interval "1s" "brightnessctl -m -d amdgpu_bl0 | awk -F, '{print substr($4, 0, length($4)-1)}' | tr -d '%'")
|
||||
(defwidget brightness[]
|
||||
(box
|
||||
:orientation "h"
|
||||
:class "brightness"
|
||||
:space-evenly false
|
||||
(label :text "" :class "brightness-down")
|
||||
(scale
|
||||
:class "brightness-scale"
|
||||
:hexpand true
|
||||
:min 0
|
||||
:max 101
|
||||
:value current-brightness
|
||||
:onchange "brightnessctl set {}%")
|
||||
(label :text "" :class "brightness-up")))
|
25
cfg/eww/systray/windows/settings-panel/daily.yuck
Normal file
25
cfg/eww/systray/windows/settings-panel/daily.yuck
Normal file
|
@ -0,0 +1,25 @@
|
|||
(defpoll get-weather :interval "3600s"
|
||||
`curl wttr.in/Pune?format="%l:+%t"`)
|
||||
|
||||
(defpoll day :interval "3600s" "date +%d")
|
||||
(defpoll month :interval "3600s" "date +%b")
|
||||
(defpoll year :interval "3600s" "date +%G")
|
||||
|
||||
(defwidget date[]
|
||||
(box
|
||||
:class "daily-date"
|
||||
:orientation "h"
|
||||
day
|
||||
month))
|
||||
|
||||
(defwidget daily[]
|
||||
(box
|
||||
:height 20
|
||||
:space-evenly false
|
||||
; :halign "start"
|
||||
:halign "fill"
|
||||
:class "daily"
|
||||
(date)
|
||||
(box
|
||||
:class "daily-weather"
|
||||
get-weather)))
|
56
cfg/eww/systray/windows/settings-panel/fetch.yuck
Normal file
56
cfg/eww/systray/windows/settings-panel/fetch.yuck
Normal file
|
@ -0,0 +1,56 @@
|
|||
(defwidget txt [label]
|
||||
(box :halign 'start' label ))
|
||||
|
||||
(defwidget title[]
|
||||
(box :class 'fetchTitles' :orientation 'v'
|
||||
(txt :label 'os')
|
||||
(txt :label 'wm')
|
||||
(txt :label 'sh')
|
||||
|
||||
))
|
||||
|
||||
(defwidget details[]
|
||||
(box :class 'fetchDetails' :orientation 'v'
|
||||
(txt :label os)
|
||||
(txt :label wm)
|
||||
(txt :label shell)
|
||||
))
|
||||
|
||||
(defwidget updateMgr[]
|
||||
(box :orientation 'v'
|
||||
:space-evenly 'false'
|
||||
:valign 'center'
|
||||
:class "pkgmgr"
|
||||
(box :orientation 'h' :class 'pkg_count'
|
||||
(button :class "pkgs_label" :onclick "~/.config/eww/systray/scripts/popup check" "")
|
||||
(label :class "pkgs" :text "${pkgs} pkgs"))
|
||||
(box :orientation 'h' :class 'update_pkg'
|
||||
(button :class "update_pkgs" :onclick "~/.config/eww/systray/scripts/popup update" "")
|
||||
(label :class "upt" :text "${update} updates"))
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget fetch[]
|
||||
(box :class 'fetch'
|
||||
(box :class 'logo' '' )
|
||||
(box :orientation 'h' :class 'fetchContent' :space-evenly false
|
||||
(title)
|
||||
(details)
|
||||
)
|
||||
))
|
||||
|
||||
;fetch
|
||||
(defpoll os :interval '10000s'
|
||||
'scripts/fetch os')
|
||||
|
||||
(defpoll shell :interval '100000s'
|
||||
'scripts/fetch sh')
|
||||
|
||||
(defpoll wm :interval '100000s'
|
||||
'scripts/fetch wm')
|
||||
|
||||
;update
|
||||
(defpoll update :interval "1s"
|
||||
"$HOME/.config/eww/systray/scripts/update")
|
||||
(defpoll pkgs :interval "1s"
|
||||
"scripts/pkgs")
|
26
cfg/eww/systray/windows/settings-panel/index.yuck
Normal file
26
cfg/eww/systray/windows/settings-panel/index.yuck
Normal file
|
@ -0,0 +1,26 @@
|
|||
(include "./windows/settings-panel/daily.yuck")
|
||||
(include "./windows/settings-panel/volume.yuck")
|
||||
(include "./windows/settings-panel/brightness.yuck")
|
||||
(include "./windows/settings-panel/system-menu.yuck")
|
||||
(include "./windows/settings-panel/fetch.yuck")
|
||||
|
||||
(defwindow settings-panel
|
||||
:monitor 0
|
||||
:geometry (geometry :x "1%"
|
||||
:y "-3%"
|
||||
; :width "30%"
|
||||
; :height "30px"
|
||||
:anchor "bottom left")
|
||||
:stacking "fg"
|
||||
:reserve (struts :distance "0px" :side "bottom")
|
||||
:windowtype "dock"
|
||||
:wm-ignore false
|
||||
(box
|
||||
:class "settings-panel"
|
||||
:orientation "v"
|
||||
:valign "start"
|
||||
(fetch)
|
||||
(daily)
|
||||
(volume)
|
||||
|
||||
(system-menu)))
|
14
cfg/eww/systray/windows/settings-panel/settings-panel.yuck
Normal file
14
cfg/eww/systray/windows/settings-panel/settings-panel.yuck
Normal file
|
@ -0,0 +1,14 @@
|
|||
(include "./widgets/settings-panel/daily.yuck")
|
||||
|
||||
(defwindow settings-panel
|
||||
:monitor 0
|
||||
:geometry (geometry :x "0%"
|
||||
:y "20px"
|
||||
:width "30%"
|
||||
:height "30px"
|
||||
:anchor "top center")
|
||||
:stacking "fg"
|
||||
:reserve (struts :distance "40px" :side "top")
|
||||
:windowtype "dock"
|
||||
:wm-ignore false
|
||||
(daily))
|
10
cfg/eww/systray/windows/settings-panel/system-menu.yuck
Normal file
10
cfg/eww/systray/windows/settings-panel/system-menu.yuck
Normal file
|
@ -0,0 +1,10 @@
|
|||
(defwidget system-menu[]
|
||||
(box :class "systemmenu"
|
||||
:space-evenly true
|
||||
(button :onclick "systemctl poweroff" :class "system-menu-icon" :cursor "pointer" "")
|
||||
(button :onclick "systemctl reboot" :class "system-menu-icon" :cursor
|
||||
"pointer" "ﰇ")
|
||||
(button :onclick "bspc quit" :class "system-menu-icon" :cursor "pointer" "")
|
||||
(button :onclick "slock" :class "system-menu" :cursor "pointer" ""
|
||||
)
|
||||
)
|
16
cfg/eww/systray/windows/settings-panel/volume.yuck
Normal file
16
cfg/eww/systray/windows/settings-panel/volume.yuck
Normal file
|
@ -0,0 +1,16 @@
|
|||
(defpoll current-volume :interval "1s" "amixer -D pulse sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }' | tr -d '%'")
|
||||
(defwidget volume[]
|
||||
(box
|
||||
:orientation "h"
|
||||
:class "volume"
|
||||
:space-evenly false
|
||||
(label :text "" :class "volume-down")
|
||||
(scale
|
||||
:class "volume-scale"
|
||||
:hexpand false
|
||||
:width 170
|
||||
:height 4
|
||||
:min 0
|
||||
:max 95
|
||||
:value current-volume
|
||||
:onchange "amixer -D pulse sset Master {}%")))
|
16
cfg/mksh/.mkshrc
Normal file
16
cfg/mksh/.mkshrc
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Setting PROMPT
|
||||
|
||||
PS1=$'\e[1;33m\e[0m\E[0m \e[1;36m$(pwd | sed "s,^$HOME,~,")\E[0m $ '
|
||||
|
||||
alias ls="lsd"
|
||||
alias ps="pacman -S"
|
||||
alias nv="nvim"
|
||||
alias gc="git clone"
|
||||
alias rel="xrdb merge ~/.Xresources && kill -USR1 $(pidof st)"
|
||||
|
||||
# History
|
||||
HISTFILE="$HOME/.mksh_history"
|
||||
HISTSIZE=5000
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
#source ~/.mksh-powerline.sh
|
||||
|
324
cfg/polybar/config
Normal file
324
cfg/polybar/config
Normal file
|
@ -0,0 +1,324 @@
|
|||
|
||||
[colors]
|
||||
background = ${xrdb:background}
|
||||
foreground = ${xrdb:foreground}
|
||||
color0 = ${xrdb:color0}
|
||||
color1 = ${xrdb:color1}
|
||||
color2 = ${xrdb:color2}
|
||||
color3 = ${xrdb:color3}
|
||||
color4 = ${xrdb:color4}
|
||||
color5 = ${xrdb:color5}
|
||||
color6 = ${xrdb:color6}
|
||||
color7 = ${xrdb:color7}
|
||||
color8 = ${xrdb:color8}
|
||||
color9 = ${xrdb:color9}
|
||||
color10 = ${xrdb:color10}
|
||||
color11 = ${xrdb:color11}
|
||||
color12 = ${xrdb:color12}
|
||||
color13 = ${xrdb:color13}
|
||||
color14 = ${xrdb:color14}
|
||||
color15 = ${xrdb:color15}
|
||||
dark-light = #272A2B
|
||||
active-light = #313435
|
||||
|
||||
[bar/herbs]
|
||||
#tray-position = right
|
||||
;monitor = LVDS1
|
||||
width = 98%
|
||||
height = 35
|
||||
padding-left = 1
|
||||
padding-right = 1
|
||||
radius = 15
|
||||
offset-x = 1%
|
||||
offset-y = 1%
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
bottom = false
|
||||
|
||||
line-size = 1
|
||||
wm-restack = bspwm
|
||||
|
||||
modules-left = herbs
|
||||
modules-center =
|
||||
modules-right = alsa mem battery wlan round-left time round-right settings
|
||||
|
||||
font-0 = CaskaydiaCove Nerd Font:style=Bold:pixelsize=11;3
|
||||
font-1 = CaskaydiaCove Nerd Font:size=15;3
|
||||
font-2 = Material Design Icons:style=Bold:size=13;3
|
||||
font-3 = Dejavu Serif:fontformat=truetype:size=10:antialias=true;3
|
||||
|
||||
[module/mpd]
|
||||
type = internal/mpd
|
||||
interval = 2
|
||||
format-online = <icon-prev><toggle><icon-next>
|
||||
icon-play-foreground = ${colors.color1}
|
||||
icon-play =
|
||||
icon-pause-foreground = ${colors.color1}
|
||||
icon-pause =
|
||||
icon-stop-foreground = ${colors.color1}
|
||||
icon-stop =
|
||||
icon-prev-foreground = ${colors.color4}
|
||||
icon-prev =
|
||||
icon-next-foreground = ${colors.color4}
|
||||
icon-next =
|
||||
icon-play-underline = ${colors.color3}
|
||||
icon-next-underline = ${colors.color3}
|
||||
icon-pause-underline = ${colors.color3}
|
||||
icon-prev-underline = ${colors.color3}
|
||||
|
||||
|
||||
[module/alsa]
|
||||
type = internal/alsa
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume =
|
||||
label-volume-foreground = ${colors.color4}
|
||||
|
||||
format-muted-foreground = ${colors.foreground}
|
||||
label-muted =
|
||||
|
||||
format-muted-padding = 1
|
||||
format-muted-background = #131a1c
|
||||
|
||||
bar-volume-width = 10
|
||||
bar-volume-foreground-0 = #58acc4
|
||||
bar-volume-foreground-1 = #58acc4
|
||||
bar-volume-foreground-2 = #58acc4
|
||||
bar-volume-foreground-3 = #58acc4
|
||||
bar-volume-foreground-4 = #58acc4
|
||||
bar-volume-foreground-5 = #58acc4
|
||||
bar-volume-foreground-6 = #58acc4
|
||||
bar-volume-gradient = true
|
||||
bar-volume-indicator =
|
||||
bar-volume-indicator-foreground = #58acc4
|
||||
bar-volume-indicator-font = 1
|
||||
bar-volume-fill = ━
|
||||
bar-volume-fill-foreground = #61afef
|
||||
bar-volume-fill-font = 1
|
||||
bar-volume-empty = ━
|
||||
bar-volume-empty-font = 1
|
||||
bar-volume-empty-foreground = ${colors.foreground}
|
||||
format-volume-padding = 1
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
warn-temperature = 65
|
||||
label-foreground = ${colors.color7}
|
||||
format = <ramp> <label>
|
||||
;format-underline = #b48ead
|
||||
format-warn = <ramp> <label-warn>
|
||||
format-warn-underline = #b48ead
|
||||
;format-background = ${colors.color8}
|
||||
|
||||
label = %temperature-c%
|
||||
label-warn = %temperature-c%
|
||||
label-warn-backgroud = #b48ead
|
||||
format-padding = 0
|
||||
ramp-0 =
|
||||
ramp-foreground = ${colors.color11}
|
||||
|
||||
[module/spaces]
|
||||
type = custom/text
|
||||
content = %{T3} %{T-}
|
||||
|
||||
[module/herbs]
|
||||
type = internal/xworkspaces
|
||||
|
||||
pin-workspaces = false
|
||||
|
||||
enable-click = true
|
||||
enable-scroll = false
|
||||
|
||||
format-padding = 0
|
||||
format = "<label-state>"
|
||||
|
||||
label-active = " "
|
||||
label-active-padding-right = 0
|
||||
label-active-padding-left = 0
|
||||
|
||||
label-empty = " "
|
||||
label-empty-padding-right = 0
|
||||
label-empty-padding-left = 0
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
;format-volume = <ramp-volume> <bar-volume>
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
;label-volume = VOL %percentage%%
|
||||
label-volume =
|
||||
label-volume-foreground =${colors.color12}
|
||||
;extra added
|
||||
;format-volume-background = ${colors.yellow}
|
||||
format-volume-background = ${colors.background}
|
||||
format-volume-padding = 1
|
||||
label-muted-padding = 1
|
||||
;ramp-volume-0 =
|
||||
;ramp-volume-1 =
|
||||
;ramp-volume-2 =
|
||||
;ramp-volume-foreground = ${colors.background}
|
||||
;will remove
|
||||
label-muted = muted
|
||||
label-muted-foreground = #666
|
||||
|
||||
bar-volume-width = 10
|
||||
bar-volume-foreground-0 =
|
||||
bar-volume-foreground-1 = #61afef
|
||||
bar-volume-foreground-2 = #61afef
|
||||
bar-volume-foreground-3 = #61afef
|
||||
bar-volume-foreground-4 = #61afef
|
||||
bar-volume-foreground-5 = #61afef
|
||||
bar-volume-foreground-6 = #61afef
|
||||
bar-volume-gradient = false
|
||||
bar-volume-indicator =
|
||||
bar-volume-indicator-font = 4
|
||||
bar-volume-fill = ─
|
||||
bar-volume-fill-font = 4
|
||||
bar-volume-empty = ─
|
||||
bar-volume-empty-font = 4
|
||||
bar-volume-empty-foreground = ${colors.foreground}
|
||||
|
||||
[module/time]
|
||||
type = internal/date
|
||||
interval = 60
|
||||
|
||||
format = <label>
|
||||
format-background = ${colors.color5}
|
||||
|
||||
date = %{F#131a1c} %{F-}%{F#131a1c}%H:%M%{F-}
|
||||
time-alt = %{F#131a1c} %{F-}%{F#131a1c}%a, %b %d%{F-}
|
||||
format-padding = 1
|
||||
|
||||
label = %date%%time%
|
||||
# For users having Voi Linux
|
||||
[module/updates]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/xbps-updates
|
||||
format = <label>
|
||||
label = %output%
|
||||
label-padding =1
|
||||
label-background = ${colors.color8}
|
||||
label-foreground = ${colors.color1}
|
||||
|
||||
# For users using arch linux
|
||||
[module/pacup]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/pacup.sh
|
||||
format = <label>
|
||||
label = %output%
|
||||
label-padding =1
|
||||
label-background = ${colors.color8}
|
||||
label-foreground = ${colors.color1}
|
||||
|
||||
[module/mem]
|
||||
type = custom/script
|
||||
exec = free -m | sed -n 's/^Mem:\s\+[0-9]\+\s\+\([0-9]\+\)\s.\+/\1/p'
|
||||
format = <label>
|
||||
format-prefix =
|
||||
#format-background = ${colors.color8}
|
||||
format-padding = 0
|
||||
label = %output%M used
|
||||
label-foreground = ${colors.foreground}
|
||||
label-padding = 1
|
||||
format-prefix-foreground = ${colors.color2}
|
||||
format-margin = 0
|
||||
|
||||
[module/menu]
|
||||
type = custom/text
|
||||
content =
|
||||
;content-background = #81A1C1
|
||||
content-foreground = #61afef
|
||||
click-left = rofi -show drun
|
||||
;content-underline = #4C566A
|
||||
content-padding= 1
|
||||
|
||||
[module/xbacklight]
|
||||
type = internal/xbacklight
|
||||
format = <label>
|
||||
format-prefix = " "
|
||||
label = %percentage%
|
||||
format-prefix-foreground = #e5c07b
|
||||
label-foreground = #abb2bf
|
||||
format-padding = 1
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlan0
|
||||
interval = 3.0
|
||||
format-connected = <label-connected>
|
||||
label-connected = " "
|
||||
label-connected-foreground = ${colors.color1}
|
||||
label-disconnected = " "
|
||||
label-disconnedted-foreground = ${colors.color1}
|
||||
#label-connected-background = ${colors.color8}
|
||||
label-disconnected-bacoground = ${colors.color1}
|
||||
label-connected-padding = 0
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
adapter = AC0
|
||||
full-at = 98
|
||||
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
label-charging = %percentage%%
|
||||
format-charging-foreground = ${colors.color4}
|
||||
format-charging-background = ${colors.background}
|
||||
|
||||
format-discharging = <ramp-capacity> <label-discharging>
|
||||
label-discharging = %percentage%%
|
||||
format-discharging-foreground = ${colors.color4}
|
||||
format-discharging-background = ${colors.background}
|
||||
|
||||
format-full-prefix = " "
|
||||
format-full-prefix-foreground = ${colors.color4}
|
||||
format-foreground = ${colors.color4}
|
||||
format-background = ${colors.background}
|
||||
format-full-padding = 1
|
||||
|
||||
label-discharging-foreground = ${colors.foreground}
|
||||
label-charging-foreground = ${colors.color7}
|
||||
label-padding = 1
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-3 =
|
||||
ramp-capacity-4 =
|
||||
ramp-capacity-foreground = ${colors.color4}
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-3 =
|
||||
animation-charging-4 =
|
||||
animation-charging-foreground = ${colors.color4}
|
||||
animation-charging-framerate = 750
|
||||
|
||||
format-charging-padding = 1
|
||||
format-discharging-padding = 1
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2.5
|
||||
|
||||
format = <label>
|
||||
format-padding = 1
|
||||
format-margin = 0
|
||||
|
||||
label = %{F#98c379} %{F-}%percentage%%
|
||||
;format-backgoound = ${colors.color12}
|
||||
format-foreground =${colors.color7}
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
|
||||
label = %title%
|
||||
label-maxlen = 20
|
||||
label-foreground = ${colors.foreground}
|
||||
label-padding = 1
|
||||
|
||||
; Used instead of label when there is no window title
|
||||
label-empty = ""
|
||||
;label-empty-foreground = ${color.blue-light}
|
||||
label-empty-padding = 2
|
346
cfg/polybar/config.ini
Normal file
346
cfg/polybar/config.ini
Normal file
|
@ -0,0 +1,346 @@
|
|||
|
||||
[colors]
|
||||
background = ${xrdb:background}
|
||||
foreground = ${xrdb:foreground}
|
||||
color0 = ${xrdb:color0}
|
||||
color1 = ${xrdb:color1}
|
||||
color2 = ${xrdb:color2}
|
||||
color3 = ${xrdb:color3}
|
||||
color4 = ${xrdb:color4}
|
||||
color5 = ${xrdb:color5}
|
||||
color6 = ${xrdb:color6}
|
||||
color7 = ${xrdb:color7}
|
||||
color8 = ${xrdb:color8}
|
||||
color9 = ${xrdb:color9}
|
||||
color10 = ${xrdb:color10}
|
||||
color11 = ${xrdb:color11}
|
||||
color12 = ${xrdb:color12}
|
||||
color13 = ${xrdb:color13}
|
||||
color14 = ${xrdb:color14}
|
||||
color15 = ${xrdb:color15}
|
||||
dark-light = #272A2B
|
||||
active-light = #313435
|
||||
|
||||
[bar/example]
|
||||
#tray-position = right
|
||||
;monitor = LVDS1
|
||||
width = 98%
|
||||
height = 35
|
||||
padding-left = 1
|
||||
padding-right = 1
|
||||
radius = 15
|
||||
offset-x = 1%
|
||||
offset-y = 1%
|
||||
background = ${colors.background}
|
||||
foreground = ${colors.foreground}
|
||||
bottom = false
|
||||
|
||||
line-size = 1
|
||||
wm-restack = bspwm
|
||||
|
||||
modules-left = bspwm
|
||||
modules-center =
|
||||
modules-right = alsa mem battery wlan round-left time round-right settings
|
||||
|
||||
font-0 = CaskaydiaCove Nerd Font:style=Bold:pixelsize=11;3
|
||||
font-1 = CaskaydiaCove Nerd Font:size=15;3
|
||||
font-2 = Material Design Icons:style=Bold:size=13;3
|
||||
font-3 = Dejavu Serif:fontformat=truetype:size=10:antialias=true;3
|
||||
|
||||
[module/mpd]
|
||||
type = internal/mpd
|
||||
interval = 2
|
||||
format-online = <icon-prev><toggle><icon-next>
|
||||
icon-play-foreground = ${colors.color1}
|
||||
icon-play =
|
||||
icon-pause-foreground = ${colors.color1}
|
||||
icon-pause =
|
||||
icon-stop-foreground = ${colors.color1}
|
||||
icon-stop =
|
||||
icon-prev-foreground = ${colors.color4}
|
||||
icon-prev =
|
||||
icon-next-foreground = ${colors.color4}
|
||||
icon-next =
|
||||
icon-play-underline = ${colors.color3}
|
||||
icon-next-underline = ${colors.color3}
|
||||
icon-pause-underline = ${colors.color3}
|
||||
icon-prev-underline = ${colors.color3}
|
||||
|
||||
|
||||
[module/alsa]
|
||||
type = internal/alsa
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
label-volume =
|
||||
label-volume-foreground = ${colors.color4}
|
||||
|
||||
format-muted-foreground = ${colors.foreground}
|
||||
label-muted =
|
||||
|
||||
format-muted-padding = 1
|
||||
format-muted-background = #131a1c
|
||||
|
||||
bar-volume-width = 10
|
||||
bar-volume-foreground-0 = #58acc4
|
||||
bar-volume-foreground-1 = #58acc4
|
||||
bar-volume-foreground-2 = #58acc4
|
||||
bar-volume-foreground-3 = #58acc4
|
||||
bar-volume-foreground-4 = #58acc4
|
||||
bar-volume-foreground-5 = #58acc4
|
||||
bar-volume-foreground-6 = #58acc4
|
||||
bar-volume-gradient = true
|
||||
bar-volume-indicator =
|
||||
bar-volume-indicator-foreground = #58acc4
|
||||
bar-volume-indicator-font = 1
|
||||
bar-volume-fill = ━
|
||||
bar-volume-fill-foreground = #61afef
|
||||
bar-volume-fill-font = 1
|
||||
bar-volume-empty = ━
|
||||
bar-volume-empty-font = 1
|
||||
bar-volume-empty-foreground = ${colors.foreground}
|
||||
format-volume-padding = 1
|
||||
|
||||
[module/temperature]
|
||||
type = internal/temperature
|
||||
thermal-zone = 0
|
||||
warn-temperature = 65
|
||||
label-foreground = ${colors.color7}
|
||||
format = <ramp> <label>
|
||||
;format-underline = #b48ead
|
||||
format-warn = <ramp> <label-warn>
|
||||
format-warn-underline = #b48ead
|
||||
;format-background = ${colors.color8}
|
||||
|
||||
label = %temperature-c%
|
||||
label-warn = %temperature-c%
|
||||
label-warn-backgroud = #b48ead
|
||||
format-padding = 0
|
||||
ramp-0 =
|
||||
ramp-foreground = ${colors.color11}
|
||||
|
||||
[module/spaces]
|
||||
type = custom/text
|
||||
content = %{T3} %{T-}
|
||||
|
||||
[module/bspwm]
|
||||
type = internal/bspwm
|
||||
|
||||
pin-workspaces = true
|
||||
inline-mode = true
|
||||
enable-click = true
|
||||
enable-scroll = true
|
||||
reverse-scroll = false
|
||||
|
||||
format = <label-state>
|
||||
|
||||
ws-icon-0 =WEB;%{F#f65b5b}
|
||||
ws-icon-1 =CODE;%{F#6bb05d}
|
||||
ws-icon-2 =FILES;%{F#e59e67}
|
||||
ws-icon-3 =CHAT;%{F#58acc4}
|
||||
ws-icon-4 =MUSIC;%{F#b185db}
|
||||
|
||||
label-focused = %icon% %name%
|
||||
label-focused-foreground = ${colors.foreground}
|
||||
label-focused-overline = #58acc4
|
||||
label-focused-padding = 1
|
||||
#label-focused-background = ${colors.color8}
|
||||
|
||||
label-occupied = %icon%
|
||||
label-occupied-foreground =
|
||||
label-occupied-padding = 1
|
||||
#label-occupied-background = ${colors.color8}
|
||||
label-occupied-overline = ${colors.color5}
|
||||
|
||||
label-empty = %icon%
|
||||
label-empty-foreground =#ffffff
|
||||
label-empty-padding = 1
|
||||
#label-empty-background = ${colors.color8}
|
||||
label-empty-overline = ${colors.color2}
|
||||
|
||||
label-urgent = %icon%
|
||||
label-urgent-foreground = #88C0D0
|
||||
label-urgent-padding = 1
|
||||
#label-urgent-background = ${colors.color8}
|
||||
label-urgent-overline = ${colors.color1}
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
;format-volume = <ramp-volume> <bar-volume>
|
||||
format-volume = <label-volume> <bar-volume>
|
||||
;label-volume = VOL %percentage%%
|
||||
label-volume =
|
||||
label-volume-foreground =${colors.color12}
|
||||
;extra added
|
||||
;format-volume-background = ${colors.yellow}
|
||||
format-volume-background = ${colors.background}
|
||||
format-volume-padding = 1
|
||||
label-muted-padding = 1
|
||||
;ramp-volume-0 =
|
||||
;ramp-volume-1 =
|
||||
;ramp-volume-2 =
|
||||
;ramp-volume-foreground = ${colors.background}
|
||||
;will remove
|
||||
label-muted = muted
|
||||
label-muted-foreground = #666
|
||||
|
||||
bar-volume-width = 10
|
||||
bar-volume-foreground-0 =
|
||||
bar-volume-foreground-1 = #61afef
|
||||
bar-volume-foreground-2 = #61afef
|
||||
bar-volume-foreground-3 = #61afef
|
||||
bar-volume-foreground-4 = #61afef
|
||||
bar-volume-foreground-5 = #61afef
|
||||
bar-volume-foreground-6 = #61afef
|
||||
bar-volume-gradient = false
|
||||
bar-volume-indicator =
|
||||
bar-volume-indicator-font = 4
|
||||
bar-volume-fill = ─
|
||||
bar-volume-fill-font = 4
|
||||
bar-volume-empty = ─
|
||||
bar-volume-empty-font = 4
|
||||
bar-volume-empty-foreground = ${colors.foreground}
|
||||
|
||||
[module/time]
|
||||
type = internal/date
|
||||
interval = 60
|
||||
|
||||
format = <label>
|
||||
format-background = ${colors.color5}
|
||||
|
||||
date = %{F#131a1c} %{F-}%{F#131a1c}%H:%M%{F-}
|
||||
time-alt = %{F#131a1c} %{F-}%{F#131a1c}%a, %b %d%{F-}
|
||||
format-padding = 1
|
||||
|
||||
label = %date%%time%
|
||||
# For users having Voi Linux
|
||||
[module/updates]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/xbps-updates
|
||||
format = <label>
|
||||
label = %output%
|
||||
label-padding =1
|
||||
label-background = ${colors.color8}
|
||||
label-foreground = ${colors.color1}
|
||||
|
||||
# For users using arch linux
|
||||
[module/pacup]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/scripts/pacup.sh
|
||||
format = <label>
|
||||
label = %output%
|
||||
label-padding =1
|
||||
label-background = ${colors.color8}
|
||||
label-foreground = ${colors.color1}
|
||||
|
||||
[module/mem]
|
||||
type = custom/script
|
||||
exec = free -m | sed -n 's/^Mem:\s\+[0-9]\+\s\+\([0-9]\+\)\s.\+/\1/p'
|
||||
format = <label>
|
||||
format-prefix =
|
||||
#format-background = ${colors.color8}
|
||||
format-padding = 0
|
||||
label = %output%M used
|
||||
label-foreground = ${colors.foreground}
|
||||
label-padding = 1
|
||||
format-prefix-foreground = ${colors.color2}
|
||||
format-margin = 0
|
||||
|
||||
[module/menu]
|
||||
type = custom/text
|
||||
content =
|
||||
;content-background = #81A1C1
|
||||
content-foreground = #61afef
|
||||
click-left = rofi -show drun
|
||||
;content-underline = #4C566A
|
||||
content-padding= 1
|
||||
|
||||
[module/xbacklight]
|
||||
type = internal/xbacklight
|
||||
format = <label>
|
||||
format-prefix = " "
|
||||
label = %percentage%
|
||||
format-prefix-foreground = #e5c07b
|
||||
label-foreground = #abb2bf
|
||||
format-padding = 1
|
||||
|
||||
[module/wlan]
|
||||
type = internal/network
|
||||
interface = wlan0
|
||||
interval = 3.0
|
||||
format-connected = <label-connected>
|
||||
label-connected = " "
|
||||
label-connected-foreground = ${colors.color1}
|
||||
label-disconnected = " "
|
||||
label-disconnedted-foreground = ${colors.color1}
|
||||
#label-connected-background = ${colors.color8}
|
||||
label-disconnected-bacoground = ${colors.color1}
|
||||
label-connected-padding = 0
|
||||
|
||||
[module/battery]
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
adapter = AC0
|
||||
full-at = 98
|
||||
|
||||
format-charging = <animation-charging> <label-charging>
|
||||
label-charging = %percentage%%
|
||||
format-charging-foreground = ${colors.color4}
|
||||
format-charging-background = ${colors.background}
|
||||
|
||||
format-discharging = <ramp-capacity> <label-discharging>
|
||||
label-discharging = %percentage%%
|
||||
format-discharging-foreground = ${colors.color4}
|
||||
format-discharging-background = ${colors.background}
|
||||
|
||||
format-full-prefix = " "
|
||||
format-full-prefix-foreground = ${colors.color4}
|
||||
format-foreground = ${colors.color4}
|
||||
format-background = ${colors.background}
|
||||
format-full-padding = 1
|
||||
|
||||
label-discharging-foreground = ${colors.foreground}
|
||||
label-charging-foreground = ${colors.color7}
|
||||
label-padding = 1
|
||||
|
||||
ramp-capacity-0 =
|
||||
ramp-capacity-1 =
|
||||
ramp-capacity-2 =
|
||||
ramp-capacity-3 =
|
||||
ramp-capacity-4 =
|
||||
ramp-capacity-foreground = ${colors.color4}
|
||||
|
||||
animation-charging-0 =
|
||||
animation-charging-1 =
|
||||
animation-charging-2 =
|
||||
animation-charging-3 =
|
||||
animation-charging-4 =
|
||||
animation-charging-foreground = ${colors.color4}
|
||||
animation-charging-framerate = 750
|
||||
|
||||
format-charging-padding = 1
|
||||
format-discharging-padding = 1
|
||||
|
||||
[module/cpu]
|
||||
type = internal/cpu
|
||||
interval = 2.5
|
||||
|
||||
format = <label>
|
||||
format-padding = 1
|
||||
format-margin = 0
|
||||
|
||||
label = %{F#98c379} %{F-}%percentage%%
|
||||
;format-backgoound = ${colors.color12}
|
||||
format-foreground =${colors.color7}
|
||||
|
||||
[module/xwindow]
|
||||
type = internal/xwindow
|
||||
|
||||
label = %title%
|
||||
label-maxlen = 20
|
||||
label-foreground = ${colors.foreground}
|
||||
label-padding = 1
|
||||
|
||||
; Used instead of label when there is no window title
|
||||
label-empty = ""
|
||||
;label-empty-foreground = ${color.blue-light}
|
||||
label-empty-padding = 2
|
128
cfg/sxhkd/sxhkdrc
Executable file
128
cfg/sxhkd/sxhkdrc
Executable file
|
@ -0,0 +1,128 @@
|
|||
# wm independent hotkeys
|
||||
#
|
||||
|
||||
# terminal emulator
|
||||
super + Return
|
||||
st
|
||||
# program launcher
|
||||
super + space
|
||||
dmenu_run
|
||||
# make sxhkd reload its configuration files:
|
||||
super + Escape
|
||||
pkill -USR1 -x sxhkd
|
||||
|
||||
# EWW Keybinds
|
||||
super + e
|
||||
eww -c ~/.config/eww/systray open settings-panel
|
||||
|
||||
super + shift + e
|
||||
eww -c ~/.config/eww/systray close settings-panel
|
||||
|
||||
super + Print
|
||||
maim "/home/$USER/Pictures/$(date).png"
|
||||
super + shift + x
|
||||
maim -s -o "/home/$USER/Pictures/$(date).png"
|
||||
#
|
||||
# bspwm hotkeys
|
||||
#
|
||||
|
||||
# quit/restart bspwm
|
||||
super + alt + {q,r}
|
||||
bspc {quit,wm -r}
|
||||
|
||||
# close and kill
|
||||
super + {_,shift + }w
|
||||
bspc node -{c,k}
|
||||
|
||||
# alternate between the tiled and monocle layout
|
||||
super + m
|
||||
bspc desktop -l next
|
||||
|
||||
# send the newest marked node to the newest preselected node
|
||||
super + y
|
||||
bspc node newest.marked.local -n newest.!automatic.local
|
||||
|
||||
# swap the current node and the biggest window
|
||||
super + g
|
||||
bspc node -s biggest.window
|
||||
|
||||
#
|
||||
# state/flags
|
||||
#
|
||||
|
||||
# set the window state
|
||||
super + {t,shift + t,s,f}
|
||||
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
|
||||
# set the node flags
|
||||
super + ctrl + {m,x,y,z}
|
||||
bspc node -g {marked,locked,sticky,private}
|
||||
|
||||
#
|
||||
# focus/swap
|
||||
#
|
||||
|
||||
# focus the node in the given direction
|
||||
super + {_,shift + }{h,j,k,l}
|
||||
bspc node -{f,s} {west,south,north,east}
|
||||
|
||||
# focus the node for the given path jump
|
||||
super + {p,b,comma,period}
|
||||
bspc node -f @{parent,brother,first,second}
|
||||
|
||||
# focus the next/previous window in the current desktop
|
||||
super + {_,shift + }c
|
||||
bspc node -f {next,prev}.local.!hidden.window
|
||||
|
||||
# focus the next/previous desktop in the current monitor
|
||||
super + bracket{left,right}
|
||||
bspc desktop -f {prev,next}.local
|
||||
|
||||
# focus the last node/desktop
|
||||
super + {grave,Tab}
|
||||
bspc {node,desktop} -f last
|
||||
|
||||
# focus the older or newer node in the focus history
|
||||
super + {o,i}
|
||||
bspc wm -h off; \
|
||||
bspc node {older,newer} -f; \
|
||||
bspc wm -h on
|
||||
|
||||
# focus or send to the given desktop
|
||||
super + {_,shift + }{1-9,0}
|
||||
bspc {desktop -f,node -d} '^{1-9,10}'
|
||||
|
||||
#
|
||||
# preselect
|
||||
#
|
||||
|
||||
# preselect the direction
|
||||
super + ctrl + {h,j,k,l}
|
||||
bspc node -p {west,south,north,east}
|
||||
|
||||
# preselect the ratio
|
||||
super + ctrl + {1-9}
|
||||
bspc node -o 0.{1-9}
|
||||
|
||||
# cancel the preselection for the focused node
|
||||
super + ctrl + space
|
||||
bspc node -p cancel
|
||||
|
||||
# cancel the preselection for the focused desktop
|
||||
super + ctrl + shift + space
|
||||
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
|
||||
|
||||
#
|
||||
# move/resize
|
||||
#
|
||||
|
||||
# expand a window by moving one of its side outward
|
||||
super + alt + {h,j,k,l}
|
||||
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
|
||||
|
||||
# contract a window by moving one of its side inward
|
||||
super + alt + shift + {h,j,k,l}
|
||||
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
|
||||
|
||||
# move a floating window
|
||||
super + {Left,Down,Up,Right}
|
||||
bspc node -v {-20 0,0 20,0 -20,20 0}
|
BIN
etc/bspwm.png
Normal file
BIN
etc/bspwm.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.5 KiB |
BIN
etc/city-topview.png
Normal file
BIN
etc/city-topview.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 MiB |
BIN
etc/everblush-rice.png
Normal file
BIN
etc/everblush-rice.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 MiB |
BIN
etc/pepe.png
Normal file
BIN
etc/pepe.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 125 KiB |
Loading…
Reference in a new issue