diff --git a/README.md b/README.md index 80454db..e54ed23 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,24 @@

- +

🔥 Rex's Linux Dotfiles 🔥

+

+ +

+

- + + + +

-- 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. diff --git a/assets/IMG_20210721_155345_773.png b/assets/IMG_20210721_155345_773.png deleted file mode 100644 index 0da3bb2..0000000 Binary files a/assets/IMG_20210721_155345_773.png and /dev/null differ diff --git a/assets/uwu-nvchad.png b/assets/uwu-nvchad.png deleted file mode 100644 index 307e1a4..0000000 Binary files a/assets/uwu-nvchad.png and /dev/null differ diff --git a/bin/eww b/bin/eww new file mode 100755 index 0000000..589fe7c Binary files /dev/null and b/bin/eww differ diff --git a/bin/hex b/bin/hex new file mode 100755 index 0000000..4092316 --- /dev/null +++ b/bin/hex @@ -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;')" diff --git a/bin/rxfetch b/bin/rxfetch new file mode 100755 index 0000000..305dced --- /dev/null +++ b/bin/rxfetch @@ -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" diff --git a/bin/status b/bin/status new file mode 100755 index 0000000..1d9cadb --- /dev/null +++ b/bin/status @@ -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 /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 + + diff --git a/bin/thiccHex b/bin/thiccHex new file mode 100755 index 0000000..a9e6f62 --- /dev/null +++ b/bin/thiccHex @@ -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 diff --git a/cfg/bspwm/bspwmrc b/cfg/bspwm/bspwmrc new file mode 100755 index 0000000..9b91973 --- /dev/null +++ b/cfg/bspwm/bspwmrc @@ -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 diff --git a/cfg/eww/systray/eww.scss b/cfg/eww/systray/eww.scss new file mode 100644 index 0000000..7f6e838 --- /dev/null +++ b/cfg/eww/systray/eww.scss @@ -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; +} diff --git a/cfg/eww/systray/eww.yuck b/cfg/eww/systray/eww.yuck new file mode 100644 index 0000000..a5c0a8b --- /dev/null +++ b/cfg/eww/systray/eww.yuck @@ -0,0 +1 @@ +(include "./windows/settings-panel/index.yuck") diff --git a/cfg/eww/systray/scripts/disk b/cfg/eww/systray/scripts/disk new file mode 100755 index 0000000..cbc61b2 --- /dev/null +++ b/cfg/eww/systray/scripts/disk @@ -0,0 +1,4 @@ +# Get Memory usage +get_mem() { + free --mega | awk 'NR == 2 { print $3" / "$2" MB" }' +} diff --git a/cfg/eww/systray/scripts/fetch b/cfg/eww/systray/scripts/fetch new file mode 100755 index 0000000..67cc589 --- /dev/null +++ b/cfg/eww/systray/scripts/fetch @@ -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 \ No newline at end of file diff --git a/cfg/eww/systray/scripts/pkgs b/cfg/eww/systray/scripts/pkgs new file mode 100755 index 0000000..f769ae2 --- /dev/null +++ b/cfg/eww/systray/scripts/pkgs @@ -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 to exit" + read -r _ + +else + pacman -Q | wc -l +fi + diff --git a/cfg/eww/systray/scripts/popup b/cfg/eww/systray/scripts/popup new file mode 100755 index 0000000..063aaa9 --- /dev/null +++ b/cfg/eww/systray/scripts/popup @@ -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 diff --git a/cfg/eww/systray/scripts/update b/cfg/eww/systray/scripts/update new file mode 100755 index 0000000..464786d --- /dev/null +++ b/cfg/eww/systray/scripts/update @@ -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 to exit" + read -r _ + +else + echo "$updates" +fi + diff --git a/cfg/eww/systray/scripts/wifi b/cfg/eww/systray/scripts/wifi new file mode 100755 index 0000000..6644b18 --- /dev/null +++ b/cfg/eww/systray/scripts/wifi @@ -0,0 +1,8 @@ +status_wifi() { + if [ "$(cat /sys/class/net/wlan0/operstate)" = "up" ]; then + echo " " + else + echo "睊" + fi + } + diff --git a/cfg/eww/systray/windows/settings-panel/brightness.yuck b/cfg/eww/systray/windows/settings-panel/brightness.yuck new file mode 100644 index 0000000..c461c99 --- /dev/null +++ b/cfg/eww/systray/windows/settings-panel/brightness.yuck @@ -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"))) \ No newline at end of file diff --git a/cfg/eww/systray/windows/settings-panel/daily.yuck b/cfg/eww/systray/windows/settings-panel/daily.yuck new file mode 100644 index 0000000..0c41d10 --- /dev/null +++ b/cfg/eww/systray/windows/settings-panel/daily.yuck @@ -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))) diff --git a/cfg/eww/systray/windows/settings-panel/fetch.yuck b/cfg/eww/systray/windows/settings-panel/fetch.yuck new file mode 100644 index 0000000..ef7b0e6 --- /dev/null +++ b/cfg/eww/systray/windows/settings-panel/fetch.yuck @@ -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") diff --git a/cfg/eww/systray/windows/settings-panel/index.yuck b/cfg/eww/systray/windows/settings-panel/index.yuck new file mode 100644 index 0000000..504eff8 --- /dev/null +++ b/cfg/eww/systray/windows/settings-panel/index.yuck @@ -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))) diff --git a/cfg/eww/systray/windows/settings-panel/settings-panel.yuck b/cfg/eww/systray/windows/settings-panel/settings-panel.yuck new file mode 100644 index 0000000..c5be257 --- /dev/null +++ b/cfg/eww/systray/windows/settings-panel/settings-panel.yuck @@ -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)) diff --git a/cfg/eww/systray/windows/settings-panel/system-menu.yuck b/cfg/eww/systray/windows/settings-panel/system-menu.yuck new file mode 100644 index 0000000..56ed0b9 --- /dev/null +++ b/cfg/eww/systray/windows/settings-panel/system-menu.yuck @@ -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" "" + ) +) diff --git a/cfg/eww/systray/windows/settings-panel/volume.yuck b/cfg/eww/systray/windows/settings-panel/volume.yuck new file mode 100644 index 0000000..5ad42f8 --- /dev/null +++ b/cfg/eww/systray/windows/settings-panel/volume.yuck @@ -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 {}%"))) diff --git a/cfg/mksh/.mkshrc b/cfg/mksh/.mkshrc new file mode 100644 index 0000000..74e8900 --- /dev/null +++ b/cfg/mksh/.mkshrc @@ -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 + diff --git a/cfg/polybar/config b/cfg/polybar/config new file mode 100644 index 0000000..98c3932 --- /dev/null +++ b/cfg/polybar/config @@ -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-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 =  +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 =