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 =