From 1452f265f56bd90790816a732c9be2192ea00669 Mon Sep 17 00:00:00 2001 From: Zoey Date: Fri, 27 Oct 2023 19:56:44 +0200 Subject: [PATCH] update 2023 --- configs/home/.config/bspwm/bspwmrc | 90 +++ configs/home/.config/bspwm/bspwmrcbu | 43 ++ .../home/{config => .config}/cmus/autosave | 0 configs/home/{config => .config}/cmus/cache | Bin .../{config => .config}/cmus/command-history | 0 configs/home/{config => .config}/cmus/lib.pl | 0 .../cmus/playlists/default | 0 .../{config => .config}/cmus/search-history | 0 configs/home/.config/nvim/init.lua | 31 + .../home/{config => .config}/nvim/init.vim | 0 configs/home/.config/nvim/lazy-lock.json | 12 + .../.config/nvim/lua/plugins/activate.lua | 10 + .../.config/nvim/lua/plugins/telescope.nvim | 4 + configs/home/.config/polybar/Scripts/gmr.sh | 9 + configs/home/.config/polybar/Scripts/peep | 31 + configs/home/.config/polybar/Scripts/pipe.sh | 15 + .../polybar/checkupdates.sh | 0 .../home/{config => .config}/polybar/config | 0 configs/home/.config/polybar/config.ini | 462 ++++++++++++ .../home/{config => .config}/polybar/configi3 | 0 .../{config => .config}/polybar/configuwu | 0 configs/home/.config/polybar/cpuper.sh | 1 + .../home/{config => .config}/polybar/eth.sh | 2 +- .../home/{config => .config}/polybar/ethprice | 0 .../{config => .config}/polybar/kblocks.py | 0 .../{config => .config}/polybar/launch.sh | 2 +- configs/home/.config/polybar/launch2.sh | 16 + .../{config => .config}/polybar/old/LICENSE | 0 .../{config => .config}/polybar/old/README.md | 0 .../{config => .config}/polybar/old/bars.ini | 0 .../polybar/old/colors.ini | 0 .../polybar/old/config.ini | 0 .../polybar/old/get-icon-list.sh | 0 .../polybar/old/images/polybar-example-1.jpg | Bin .../polybar/old/images/polybar-example-2.jpg | Bin .../images/polybar-example-3-awesomewm.jpg | Bin .../{config => .config}/polybar/old/launch.sh | 0 .../polybar/old/modules.ini | 0 .../polybar/old/preview.ini | 0 .../polybar/old/preview.sh | 0 .../polybar/old/scripts/bluetooth-profiles.sh | 0 .../polybar/old/scripts/cava.py | 0 .../polybar/old/scripts/check-all-updates.sh | 0 .../polybar/old/scripts/checkupdates | 0 .../polybar/old/scripts/get_mpris_status.sh | 0 .../polybar/old/scripts/get_spotify_status.sh | 0 .../polybar/old/scripts/launcher.sh | 0 .../polybar/old/scripts/network-traffic.sh | 0 .../polybar/old/scripts/polywins.sh | 0 .../polybar/old/scripts/powermenu.sh | 0 .../polybar/old/scripts/rofi/colors.rasi | 0 .../polybar/old/scripts/rofi/confirm.rasi | 0 .../polybar/old/scripts/rofi/launcher.rasi | 0 .../polybar/old/scripts/rofi/message.rasi | 0 .../polybar/old/scripts/rofi/networkmenu.rasi | 0 .../polybar/old/scripts/rofi/powermenu.rasi | 0 .../polybar/old/scripts/rofi/styles.rasi | 0 .../old/scripts/scroll_mpris_status.sh | 0 .../polybar/old/scripts/spotify.py | 0 .../polybar/old/scripts/style-switch.sh | 0 .../polybar/old/scripts/styles.sh | 0 .../scripts/system-bluetooth-bluetoothctl.sh | 0 .../polybar/old/scripts/updates.sh | 0 .../polybar/old/scripts/uptime.sh | 0 .../polybar/old/scripts/vpn-status.sh | 0 .../polybar/old/scripts/weather.py | 0 .../polybar/old/scripts/weather.sh | 0 .../polybar/old/user_modules.ini | 0 .../{config => .config}/polybar/player.py | 0 .../{config => .config}/polybar/player.sh | 0 .../polybar/popup-calendar.sh | 0 .../polybar/updates-aur.sh | 0 .../polybar/updates-aurpac.sh | 0 configs/home/.config/polybar/weatherjbc.sh | 4 + configs/home/.config/polybar/weatherriihi.sh | 5 + .../{config => .config}/ranger/commands.py | 0 .../ranger/commands_full.py | 0 .../home/{config => .config}/ranger/rc.conf | 4 +- .../{config => .config}/ranger/rifle.conf | 0 .../home/{config => .config}/ranger/scope.sh | 0 configs/home/.config/rofi/config.rasi | 1 + .../home/{config => .config}/sxhkd/sxhkdrc | 88 ++- configs/home/.zshrc | 104 +++ configs/home/90-libinput.conf | 6 - configs/home/config/bspwm/bspwmrc | 35 - configs/home/config/electron-flags.conf | 5 - configs/home/config/feh/themes | 3 - configs/home/config/kitty/kitty.conf | 7 - configs/home/config/picom.conf | 425 ----------- .../polybar/polybar-cryptocurrency/LICENSE | 674 ------------------ .../polybar/polybar-cryptocurrency/README.md | 43 -- .../polybar/polybar-cryptocurrency/coins.otf | Bin 528528 -> 0 bytes .../polybar/polybar-cryptocurrency/coins.svg | 304 -------- .../polybar/polybar-cryptocurrency/pcrypto.py | 47 -- .../polybar/polybar-cryptocurrency/setup.sh | 26 - configs/home/config/rofi/config.rasi | 3 - configs/home/zshrc | 69 -- 97 files changed, 911 insertions(+), 1670 deletions(-) create mode 100755 configs/home/.config/bspwm/bspwmrc create mode 100755 configs/home/.config/bspwm/bspwmrcbu rename configs/home/{config => .config}/cmus/autosave (100%) rename configs/home/{config => .config}/cmus/cache (100%) rename configs/home/{config => .config}/cmus/command-history (100%) rename configs/home/{config => .config}/cmus/lib.pl (100%) rename configs/home/{config => .config}/cmus/playlists/default (100%) rename configs/home/{config => .config}/cmus/search-history (100%) create mode 100644 configs/home/.config/nvim/init.lua rename configs/home/{config => .config}/nvim/init.vim (100%) create mode 100644 configs/home/.config/nvim/lazy-lock.json create mode 100644 configs/home/.config/nvim/lua/plugins/activate.lua create mode 100644 configs/home/.config/nvim/lua/plugins/telescope.nvim create mode 100755 configs/home/.config/polybar/Scripts/gmr.sh create mode 100755 configs/home/.config/polybar/Scripts/peep create mode 100755 configs/home/.config/polybar/Scripts/pipe.sh rename configs/home/{config => .config}/polybar/checkupdates.sh (100%) mode change 100644 => 100755 rename configs/home/{config => .config}/polybar/config (100%) create mode 100755 configs/home/.config/polybar/config.ini rename configs/home/{config => .config}/polybar/configi3 (100%) rename configs/home/{config => .config}/polybar/configuwu (100%) mode change 100644 => 100755 create mode 100755 configs/home/.config/polybar/cpuper.sh rename configs/home/{config => .config}/polybar/eth.sh (90%) mode change 100644 => 100755 rename configs/home/{config => .config}/polybar/ethprice (100%) mode change 100644 => 100755 rename configs/home/{config => .config}/polybar/kblocks.py (100%) mode change 100644 => 100755 rename configs/home/{config => .config}/polybar/launch.sh (96%) mode change 100644 => 100755 create mode 100755 configs/home/.config/polybar/launch2.sh rename configs/home/{config => .config}/polybar/old/LICENSE (100%) rename configs/home/{config => .config}/polybar/old/README.md (100%) rename configs/home/{config => .config}/polybar/old/bars.ini (100%) rename configs/home/{config => .config}/polybar/old/colors.ini (100%) rename configs/home/{config => .config}/polybar/old/config.ini (100%) rename configs/home/{config => .config}/polybar/old/get-icon-list.sh (100%) rename configs/home/{config => .config}/polybar/old/images/polybar-example-1.jpg (100%) rename configs/home/{config => .config}/polybar/old/images/polybar-example-2.jpg (100%) rename configs/home/{config => .config}/polybar/old/images/polybar-example-3-awesomewm.jpg (100%) rename configs/home/{config => .config}/polybar/old/launch.sh (100%) rename configs/home/{config => .config}/polybar/old/modules.ini (100%) rename configs/home/{config => .config}/polybar/old/preview.ini (100%) rename configs/home/{config => .config}/polybar/old/preview.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/bluetooth-profiles.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/cava.py (100%) rename configs/home/{config => .config}/polybar/old/scripts/check-all-updates.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/checkupdates (100%) rename configs/home/{config => .config}/polybar/old/scripts/get_mpris_status.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/get_spotify_status.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/launcher.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/network-traffic.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/polywins.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/powermenu.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/rofi/colors.rasi (100%) rename configs/home/{config => .config}/polybar/old/scripts/rofi/confirm.rasi (100%) rename configs/home/{config => .config}/polybar/old/scripts/rofi/launcher.rasi (100%) rename configs/home/{config => .config}/polybar/old/scripts/rofi/message.rasi (100%) rename configs/home/{config => .config}/polybar/old/scripts/rofi/networkmenu.rasi (100%) rename configs/home/{config => .config}/polybar/old/scripts/rofi/powermenu.rasi (100%) rename configs/home/{config => .config}/polybar/old/scripts/rofi/styles.rasi (100%) rename configs/home/{config => .config}/polybar/old/scripts/scroll_mpris_status.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/spotify.py (100%) rename configs/home/{config => .config}/polybar/old/scripts/style-switch.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/styles.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/system-bluetooth-bluetoothctl.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/updates.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/uptime.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/vpn-status.sh (100%) rename configs/home/{config => .config}/polybar/old/scripts/weather.py (100%) rename configs/home/{config => .config}/polybar/old/scripts/weather.sh (100%) rename configs/home/{config => .config}/polybar/old/user_modules.ini (100%) rename configs/home/{config => .config}/polybar/player.py (100%) mode change 100644 => 100755 rename configs/home/{config => .config}/polybar/player.sh (100%) mode change 100644 => 100755 rename configs/home/{config => .config}/polybar/popup-calendar.sh (100%) mode change 100644 => 100755 rename configs/home/{config => .config}/polybar/updates-aur.sh (100%) mode change 100644 => 100755 rename configs/home/{config => .config}/polybar/updates-aurpac.sh (100%) mode change 100644 => 100755 create mode 100755 configs/home/.config/polybar/weatherjbc.sh create mode 100755 configs/home/.config/polybar/weatherriihi.sh rename configs/home/{config => .config}/ranger/commands.py (100%) rename configs/home/{config => .config}/ranger/commands_full.py (100%) rename configs/home/{config => .config}/ranger/rc.conf (99%) rename configs/home/{config => .config}/ranger/rifle.conf (100%) rename configs/home/{config => .config}/ranger/scope.sh (100%) create mode 100644 configs/home/.config/rofi/config.rasi rename configs/home/{config => .config}/sxhkd/sxhkdrc (69%) mode change 100644 => 100755 create mode 100755 configs/home/.zshrc delete mode 100644 configs/home/90-libinput.conf delete mode 100644 configs/home/config/bspwm/bspwmrc delete mode 100644 configs/home/config/electron-flags.conf delete mode 100644 configs/home/config/feh/themes delete mode 100644 configs/home/config/kitty/kitty.conf delete mode 100644 configs/home/config/picom.conf delete mode 100644 configs/home/config/polybar/polybar-cryptocurrency/LICENSE delete mode 100644 configs/home/config/polybar/polybar-cryptocurrency/README.md delete mode 100644 configs/home/config/polybar/polybar-cryptocurrency/coins.otf delete mode 100644 configs/home/config/polybar/polybar-cryptocurrency/coins.svg delete mode 100644 configs/home/config/polybar/polybar-cryptocurrency/pcrypto.py delete mode 100644 configs/home/config/polybar/polybar-cryptocurrency/setup.sh delete mode 100644 configs/home/config/rofi/config.rasi delete mode 100644 configs/home/zshrc diff --git a/configs/home/.config/bspwm/bspwmrc b/configs/home/.config/bspwm/bspwmrc new file mode 100755 index 0000000..430af58 --- /dev/null +++ b/configs/home/.config/bspwm/bspwmrc @@ -0,0 +1,90 @@ +#!/bin/sh + +# ┏┓┏┓┏┓┏┓╹┏┓ # +# ┏┛┃┃┃┃┃┃ ┗┓ # +# ┗┛┗┛┗┛┣┛ ┗┛ # +# ┓ # +# ┣┓┏┏┓┓┏┏┏┳┓ # +# ┗┛┛┣┛┗┻┛┛┗┗ # +# ┛ # + +pgrep -x sxhkd > /dev/null || sxhkd & + +# BSPC +bspc config focus_follows_pointer true + +bspc monitor DP-1 -d 'I' 'III' 'V' 'VII' 'IX' +bspc monitor HDMI-0 -d 'II' 'IV' 'VI' 'VIII' +bspc monitor DP-2 -d 'X' + +bspc config border_width 2 +bspc config normal_border_color "#201134" +bspc config focused_border_color "#A44BA0" +bspc config window_gap 0 + +bspc config split_ratio 0.5 + +bspc config borderless_monocle false +bspc config gapless_monocle false +bspc config single_monocle true + +# Rules +bspc rule -a Pavucontrol desktop='IX' & +bspc rule -a Galculator state=floating & + +# Vars +Scripts="/home/zoey/Documents/Scripts" && +Polybar="/home/zoey/.config/polybar" && + +export _JAVA_AWT_WM_NONREPARENTING=1 +export LIBVA_DRIVER_NAME=vdpau +export VDPAU_DRIVER=nvidia +export EDITOR=nvim + +# Game Vars +export VK_INSTANCE_LAYERS=VK_LAYER_MCOF_device_filter +export VK_DEVICE_FILTER=1060 +export DXVK_FILTER_DEVICE_NAME=1060 +export VKD3D_VULKAN_DEVICE=1 + +export OBS_USE_EGL=1 +export OBS_VKCAPTURE=1 + +# DAC +systemctl --user restart wireplumber && +systemctl --user restart pipewire && +$Scripts/b404hd.sh & + +# Autorun + +processes=("polybar" "sxhkd" "pavucontrol" "polkit-dumb-agent" "transmission-daemon") + +for process in "${processes[@]}"; do + if pidof -q "$process"; then + pkill -9 -x "$process" > /dev/null; sleep 0.1 + fi +done + +#pidof -q polkit-dumb-agent || { /usr/bin/polkit-dumb-agent & } +sxhkd -c $HOME/.config/sxhkd/sxhkdrc & +xsetroot -cursor_name left_ptr & +wmname LG3D & +pavucontrol & +transmission-daemon -t -p 9069 -a "127.0.0.1" & + +systemctl --user start --now opentabletdriver + +# Scripts +/home/zoey/.config/polybar/launch2.sh & + +# Inputs + +EBid=$(xinput list --id-only pointer:"G-SPY USB Gaming Mouse") && +#Zowieid=$(xinput list --id-only pointer:"Kingsis Peripherals ZOWIE Gaming mouse") && + +xinput --set-prop "${EBid}" 'libinput Accel Profile Enabled' 0, 1 & +#xinput --set-prop "${Zowieid}" 'libinput Accel Profile Enabled' 0, 1 & + +xsetwacom set 'Wacom Intuos S 2 Pen stylus' MapToOutput HEAD-0 & +xset s off -dpms & +setxkbmap -option caps:escape diff --git a/configs/home/.config/bspwm/bspwmrcbu b/configs/home/.config/bspwm/bspwmrcbu new file mode 100755 index 0000000..e9c34ab --- /dev/null +++ b/configs/home/.config/bspwm/bspwmrcbu @@ -0,0 +1,43 @@ +#! /bin/sh + +pgrep -x sxhkd > /dev/null || sxhkd & + +bspc config focus_follows_pointer true + +bspc monitor DP-1 -d 'I' 'III' 'V' 'VII' 'IX' +bspc monitor HDMI-0 -d 'II' 'IV' 'VI' 'VIII' 'X' +#bspc monitor DP-2 -d 'III' 'VI' 'IX' + +bspc config border_width 6 +bspc config focused_border_color "#cc4738" +bspc config window_gap 8 #12 + +bspc config split_ratio 0.5 + +bspc config borderless_monocle true +bspc config gapless_monocle true +bspc config single_monocle false + +xrandr --output HDMI-0 --mode 1920x1080 --rate 75 && +nitrogen --restore & +/usr/bin/polkit-dumb-agent & +sxhkd -c $HOME/.config/sxhkd/sxhkdrc & +xsetroot -cursor_name left_ptr & +$HOME/.config/polybar/launch2.sh & +flameshot & +#$HOME/.config/tint2/launch.sh & +#wmname LG3D & +xsetwacom set 'Wacom Intuos S 2 Pen stylus' MapToOutput HEAD-1 & +setxkbmap -option caps:escape & + + + +xinput --set-prop 12 'libinput Accel Profile Enabled' 0, 1 +xinput --set-prop 17 'libinput Accel Profile Enabled' 0, 1 + + +STEAM_APPS=~/.steam/steam/steamapps +grep name $STEAM_APPS/appmanifest* | cut -d\" -f4 | while read game; do + bspc rule -a "*:*:$game" desktop="^VI" state=fullscreen +done + diff --git a/configs/home/config/cmus/autosave b/configs/home/.config/cmus/autosave similarity index 100% rename from configs/home/config/cmus/autosave rename to configs/home/.config/cmus/autosave diff --git a/configs/home/config/cmus/cache b/configs/home/.config/cmus/cache similarity index 100% rename from configs/home/config/cmus/cache rename to configs/home/.config/cmus/cache diff --git a/configs/home/config/cmus/command-history b/configs/home/.config/cmus/command-history similarity index 100% rename from configs/home/config/cmus/command-history rename to configs/home/.config/cmus/command-history diff --git a/configs/home/config/cmus/lib.pl b/configs/home/.config/cmus/lib.pl similarity index 100% rename from configs/home/config/cmus/lib.pl rename to configs/home/.config/cmus/lib.pl diff --git a/configs/home/config/cmus/playlists/default b/configs/home/.config/cmus/playlists/default similarity index 100% rename from configs/home/config/cmus/playlists/default rename to configs/home/.config/cmus/playlists/default diff --git a/configs/home/config/cmus/search-history b/configs/home/.config/cmus/search-history similarity index 100% rename from configs/home/config/cmus/search-history rename to configs/home/.config/cmus/search-history diff --git a/configs/home/.config/nvim/init.lua b/configs/home/.config/nvim/init.lua new file mode 100644 index 0000000..221608c --- /dev/null +++ b/configs/home/.config/nvim/init.lua @@ -0,0 +1,31 @@ +vim.g.mapleader = ";" +vim.g.maplocalleader = ";" + +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not vim.loop.fs_stat(lazypath) then + vim.fn.system({ + "git", + "clone", + "--filter=blob:none", + "https://github.com/folke/lazy.nvim.git", + "--branch=stable", -- latest stable release + lazypath, + }) +end +vim.opt.rtp:prepend(lazypath) + +local plugins = { + "ms-jpq/coq_nvim", + "nvim-lua/plenary.nvim", + "nvim-telescope/telescope.nvim", + "kelly-lin/ranger.nvim", + "NTBBloodbath/galaxyline.nvim", + "romgrk/barbar.nvim", + "yamatsum/nvim-cursorline", + "nvim-treesitter/nvim-treesitter", + "kyazdani42/nvim-web-devicons", +} + +require("lazy").setup(plugins, opts) + + diff --git a/configs/home/config/nvim/init.vim b/configs/home/.config/nvim/init.vim similarity index 100% rename from configs/home/config/nvim/init.vim rename to configs/home/.config/nvim/init.vim diff --git a/configs/home/.config/nvim/lazy-lock.json b/configs/home/.config/nvim/lazy-lock.json new file mode 100644 index 0000000..8b6bbb8 --- /dev/null +++ b/configs/home/.config/nvim/lazy-lock.json @@ -0,0 +1,12 @@ +{ + "barbar.nvim": { "branch": "master", "commit": "283bceab39f549c5e5228212661750704fcfcd9e" }, + "coq_nvim": { "branch": "coq", "commit": "8bfc8742f32e30adfc92111ff3ebe53b95e3b271" }, + "galaxyline.nvim": { "branch": "main", "commit": "4d4f5fc8e20a10824117e5beea7ec6e445466a8f" }, + "lazy.nvim": { "branch": "main", "commit": "5aaafcb3019e04dd38a011b3d4c8a0f130c422ef" }, + "nvim-cursorline": { "branch": "main", "commit": "804f0023692653b2b2368462d67d2a87056947f9" }, + "nvim-treesitter": { "branch": "master", "commit": "957f3f8c15a88ef0f0c77ecd13edf2e2578f176e" }, + "nvim-web-devicons": { "branch": "master", "commit": "45d0237c427baba8cd05e0ab26d30e2ee58c2c82" }, + "plenary.nvim": { "branch": "master", "commit": "9ce85b0f7dcfe5358c0be937ad23e456907d410b" }, + "ranger.nvim": { "branch": "main", "commit": "5df4122f51b8fd07c7cadee9f2134059c93c89c2" }, + "telescope.nvim": { "branch": "master", "commit": "205f469244916716c49cc2b9026566749425c5ba" } +} \ No newline at end of file diff --git a/configs/home/.config/nvim/lua/plugins/activate.lua b/configs/home/.config/nvim/lua/plugins/activate.lua new file mode 100644 index 0000000..f9dc80e --- /dev/null +++ b/configs/home/.config/nvim/lua/plugins/activate.lua @@ -0,0 +1,10 @@ +return { + "roobert/activate.nvim", + keys = { + { + "P", + 'lua require("activate").list_plugins()', + desc = "Plugins", + }, + } +} diff --git a/configs/home/.config/nvim/lua/plugins/telescope.nvim b/configs/home/.config/nvim/lua/plugins/telescope.nvim new file mode 100644 index 0000000..7d27c49 --- /dev/null +++ b/configs/home/.config/nvim/lua/plugins/telescope.nvim @@ -0,0 +1,4 @@ +return { + "nvim-telescope/telescope.nvim", + dependencies = { "nvim-lua/plenary.nvim" } +} diff --git a/configs/home/.config/polybar/Scripts/gmr.sh b/configs/home/.config/polybar/Scripts/gmr.sh new file mode 100755 index 0000000..3774aaf --- /dev/null +++ b/configs/home/.config/polybar/Scripts/gmr.sh @@ -0,0 +1,9 @@ +#!/usr/bin/sh + +current=$(gamemoded -s) + +if [ "$current" = "gamemode is inactive" ]; then + echo "0" +else + echo "1" +fi diff --git a/configs/home/.config/polybar/Scripts/peep b/configs/home/.config/polybar/Scripts/peep new file mode 100755 index 0000000..0d7f5a0 --- /dev/null +++ b/configs/home/.config/polybar/Scripts/peep @@ -0,0 +1,31 @@ +#!/bin/dash + +getDefaultSink() { + defaultSink=$(pactl info | awk -F : '/Default Sink:/{print $2}') + description=$(pactl list sinks | sed -n "/${defaultSink}/,/Description/p; /Description/q" | sed -n 's/^.*Description: \(.*\)$/\1/p') + echo "${description}" +} + +getDefaultSource() { + defaultSource=$(pactl info | awk -F : '/Default Source:/{print $2}') + description=$(pactl list sources | sed -n "/${defaultSource}/,/Description/p; /Description/q" | sed -n 's/^.*Description: \(.*\)$/\1/p') + echo "${description}" +} + +VOLUME=$(pamixer --get-volume-human) +SINK=$(getDefaultSink) +SOURCE=$(getDefaultSource) + +case $1 in + "--up") + pamixer --increase 10 + ;; + "--down") + pamixer --decrease 10 + ;; + "--mute") + pamixer --toggle-mute + ;; + *) + echo "${VOLUME}" +esac diff --git a/configs/home/.config/polybar/Scripts/pipe.sh b/configs/home/.config/polybar/Scripts/pipe.sh new file mode 100755 index 0000000..b674cb7 --- /dev/null +++ b/configs/home/.config/polybar/Scripts/pipe.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +muted=$(pamixer --get-mute) + +if [ "$muted" = true ]; then + echo "--" +else + volume=$(pamixer --get-volume) + + if [ "$volume" -gt 49 ]; then + echo "$volume %" + else + echo "$volume %" + fi +fi diff --git a/configs/home/config/polybar/checkupdates.sh b/configs/home/.config/polybar/checkupdates.sh old mode 100644 new mode 100755 similarity index 100% rename from configs/home/config/polybar/checkupdates.sh rename to configs/home/.config/polybar/checkupdates.sh diff --git a/configs/home/config/polybar/config b/configs/home/.config/polybar/config similarity index 100% rename from configs/home/config/polybar/config rename to configs/home/.config/polybar/config diff --git a/configs/home/.config/polybar/config.ini b/configs/home/.config/polybar/config.ini new file mode 100755 index 0000000..253e1d4 --- /dev/null +++ b/configs/home/.config/polybar/config.ini @@ -0,0 +1,462 @@ +[fonts] +opensansreg = DroidSans:Regular:size=7.5 +opensanssemibold = DroidSans:SemiBold:size=7.5 +opensansbold = DroidSans:Bold:size=7.5 +opensansboldhigh = DroidSans:Bold:size=11 +opensansital = DroidSans:Italic:size=9 +xos = xos4\ Terminus:size=14;0 +nerd = TerminessTTF Nerd Font:size=12;0 +nerdsym = Symbols Nerd Font:size=12 + +[colors] +light-red = #D95B5B +light-green = #249824 +light-purple = #A44BA0 +menucol-yellow = #F7F272 +menucol-blue = #1771F1 +menucol-orange = #FFAF60 +menucol-red = #F85C50 +menucol-green = #77BD8B +menucol-sealine = #00CF91 +menucol-purple = #9A76B3 +menucol-pink = #FF77BF +menucol-deepblue = #6560FF +menucol-lightblue = #60FFF7 +menucol-peagreen = #30C154 +menucol-eth = #ADD8E6 +orangebby = #ddcc4738 +fav-purple = #6633FF +uwu-purple = #000B1E +uwutp-purple = #dd000B1E +blackbaby = #dd0f0f0f +dark = #111 +dark-red = #311 +dark-green = #131 +dark-purple = #201134 +light = #eee +gray = #999 +dark-gray = #333 + +mainbg = #000000 +oldmainbg = #212121 + +[bar/main] + +enable-ipc = true +override-redirect = false +monitor = ${env:MONITOR:DP-1} + + +fixed-center = true +bottom = false +width = 5% +height = 20px +offset-y = 0 ;+5 +offset-x = 0 ;+8 +padding = 0 + +background = ${colors.mainbg} +foreground = ${colors.light} + +line-color = ${colors.light-purple} +line-size = 3 + +;separator = " | " + +;List of fonts +font-0 = ${fonts.opensansreg} +font-1 = ${fonts.opensanssemibold} +font-2 = ${fonts.opensansbold} +font-3 = ${fonts.opensansital} +font-4 = ${fonts.xos} +font-5 = ${fonts.nerd} +font-6 = ${fonts.opensansboldhigh} + +wm-restack = bspwm + +modules-left = bspwm +;modules-center = mediaplayer media +;modules-right = layout memory memoryswap cpu popup-calendar pulse + +[bar/main2] +enable-ipc = true +override-redirect = false +monitor = ${env:MONITOR:DP-1} + + +background = ${colors.mainbg} +foreground = ${colors.light} +line-color = ${colors.light-purple} +line-size = 3 + +font-0 = ${fonts.opensansreg} +font-1 = ${fonts.opensanssemibold} +font-2 = ${fonts.opensansbold} +font-3 = ${fonts.opensansital} +font-4 = ${fonts.xos} +font-5 = ${fonts.nerd} +font-6 = ${fonts.opensansboldhigh} + +wm-restack = bspwm +bottom = false +width = 65.5% +height = 20px +offset-y = 0 ;+5 +offset-x = 6% +padding = 0 +fixed-center = true + +modules-left = weatherriihi weatherjbc +modules-center = mediaplayer media +modules-right = nvidiatemps + + +[bar/main3] +enable-ipc = true +override-redirect = false +monitor = ${env:MONITOR:DP-1} + +background = ${colors.mainbg} +foreground = ${colors.light} +line-color = ${colors.light-purple} +line-size = 3 + +font-0 = ${fonts.opensansreg} +font-1 = ${fonts.opensanssemibold} +font-2 = ${fonts.opensansbold} +font-3 = ${fonts.opensansital} +font-4 = ${fonts.xos} +font-5 = ${fonts.nerd} +font-6 = ${fonts.opensansboldhigh} + +wm-restack = bspwm +bottom = false +width = 20.5% +height = 20px +offset-y = 0 ;+5 +offset-x = 72% +padding = 0 +fixed-center = true + +tray-position = right +tray-padding = 5 +tray-offset-x = 130 +tray-offset-y = 0 +tray-detached = true + +modules-left = +modules-center = +modules-right = gmr updates layout memory memoryswap cpu popup-calendar + + +[bar/secondary] +monitor = ${env:MONITOR:HDMI-0} +enable-ipc = true +override-redirect = false + +bottom = false +width = 5% +height = 20px +offset-y = 0 ;+5 +offset-x = 0 ;+8 + +background = ${colors.mainbg} +foreground = ${colors.light} +line-color = ${colors.light-purple} +line-size = 3 + +;separator = " | " + +;List of fonts +font-0 = ${fonts.opensansreg} +font-1 = ${fonts.opensanssemibold} +font-2 = ${fonts.opensansbold} +font-3 = ${fonts.opensansital} +font-4 = ${fonts.xos} +font-5 = ${fonts.nerd} +font-6 = ${fonts.opensansboldhigh} + +wm-restack = bspwm +;tray-position = right + + +modules-left = bspwm +modules-center = +modules-right = + + +[bar/third] +monitor = ${env:MONITOR:DP-2} +enable-ipc = true +override-redirect = false + +bottom = false +width = 100% +height = 20px + +background = ${colors.blackbaby} +foreground = ${colors.light} + +line-color = ${colors.light-purple} +line-size = 3 + +;separator = " | " + +;List of fonts +font-0 = ${fonts.opensansreg} +font-1 = ${fonts.opensanssemibold} +font-2 = ${fonts.opensansbold} +font-3 = ${fonts.opensansital} +font-4 = ${fonts.xos} +font-5 = ${fonts.nerd} +font-6 = ${fonts.opensansboldhigh} + +wm-restack = bspwm +tray-position = left + + +modules-left = bspwm +modules-center = +modules-right = + +;weather +[module/weatherjbc] +type = custom/script +format =