diff --git a/ckb-next/.config/ckb-next/ckb-next.conf b/ckb-next/.config/ckb-next/ckb-next.conf index 12afe40e4..d1b6e7296 100644 --- a/ckb-next/.config/ckb-next/ckb-next.conf +++ b/ckb-next/.config/ckb-next/ckb-next.conf @@ -197,7 +197,7 @@ 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Lighting\Keys\y=#ffffff 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Lighting\Keys\z=#ffffff 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Lighting\UseRealNames=true -0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Modified=3508de03 +0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Modified=8c0bab97 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Name=Rainbow 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Performance\AngleSnap=false 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\0\Performance\DPI\0=@Point(400 400) @@ -425,7 +425,7 @@ 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Lighting\Keys\y=#ff0000 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Lighting\Keys\z=#ff0000 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Lighting\UseRealNames=true -0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Modified=57083d7b +0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Modified=84039248 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Name=Breathing 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Performance\AngleSnap=false 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\1\Performance\DPI\0=@Point(400 400) @@ -675,7 +675,7 @@ 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Lighting\Keys\y=#aa00ff 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Lighting\Keys\z=#aa00ff 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Lighting\UseRealNames=true -0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Modified=7ecd7df4 +0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Modified=c88bf273 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Name=Trippy 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Performance\AngleSnap=false 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\2\Performance\DPI\0=@Point(400 400) @@ -733,7 +733,7 @@ 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\CurrentMode={51EB6E3A-27A0-4AD6-A35C-6B67E0329A3D} 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\HwModified=7ffd 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\ModeCount=3 -0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\Modified=9777d5f0 +0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\Modified=c1bf720f 0E029022AF4C18835CBDCC7EF5001BC3\%7B5B1E2E81-ED4F-4F79-9EB5-F8ACA67D1BF0%7D\Name=Multi 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Binding\KeyMap=K68 GB 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Binding\UseRealNames=true @@ -929,7 +929,7 @@ 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Lighting\Keys\y=#ffffff 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Lighting\Keys\z=#ffffff 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Lighting\UseRealNames=true -0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Modified=ec072167 +0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Modified=d96e8c12 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Name=Rainbow 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Performance\AngleSnap=false 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\0\Performance\DPI\0=@Point(400 400) @@ -1157,7 +1157,7 @@ 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Lighting\Keys\y=#ff0000 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Lighting\Keys\z=#ff0000 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Lighting\UseRealNames=true -0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Modified=3104239e +0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Modified=77829f45 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Name=Breathing 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Performance\AngleSnap=false 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\1\Performance\DPI\0=@Point(400 400) @@ -1407,7 +1407,7 @@ 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Lighting\Keys\y=#aa00ff 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Lighting\Keys\z=#aa00ff 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Lighting\UseRealNames=true -0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Modified=b1ce4fea +0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Modified=e726344b 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Name=Trippy 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Performance\AngleSnap=false 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\2\Performance\DPI\0=@Point(400 400) @@ -1465,7 +1465,7 @@ 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\CurrentMode={11C11AE3-3195-4DFC-B8AC-2FEA703414E5} 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\HwModified=40b6f054 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\ModeCount=3 -0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\Modified=79fc734f +0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\Modified=fa2e2807 0E029022AF4C18835CBDCC7EF5001BC3\%7BBA7FC152-2D51-4C26-A7A6-A036CC93D924%7D\Name=Demo [Popups] diff --git a/clifm/.config/clifm/profiles/default/dirhist.clifm b/clifm/.config/clifm/profiles/default/dirhist.clifm index e69de29bb..267c7e6e7 100644 --- a/clifm/.config/clifm/profiles/default/dirhist.clifm +++ b/clifm/.config/clifm/profiles/default/dirhist.clifm @@ -0,0 +1 @@ +/home/repo/Development/lovesay diff --git a/clifm/.config/clifm/profiles/default/jump.clifm b/clifm/.config/clifm/profiles/default/jump.clifm new file mode 100644 index 000000000..14ef52341 --- /dev/null +++ b/clifm/.config/clifm/profiles/default/jump.clifm @@ -0,0 +1,2 @@ +1:1666276892:1666276892:/home/repo/Development/lovesay +@700 diff --git a/clifm/.config/clifm/profiles/default/preview.clifm b/clifm/.config/clifm/profiles/default/preview.clifm new file mode 100644 index 000000000..bdb1f46bd --- /dev/null +++ b/clifm/.config/clifm/profiles/default/preview.clifm @@ -0,0 +1,59 @@ + ###################################### + # Configuration file for Shotgun # + # CliFM's file previewer # + ###################################### + +# Commented and blank lines are omitted + +# It is recommended to edit this file setting your preferred applications +# first: the previewing process will be smoother and faster this way +# You can even remove whatever applications you don't use + +# For syntax details consult the mimelist.clifm file + +# Uncomment this line to use pistol (or any other previewing script) +#.*=pistol + +# Uncomment and edit this line to use Ranger's scope script: +#.*=/home/USER/.config/ranger/scope.sh %f 120 80 /tmp/clifm/ True + +# Directories +inode/directory=exa -a --tree --level=1 --;lsd -A --tree --depth=1 --color=always;tree -a -L 1;ls -Ap --color=always --indicator-style=none; + +# Web content +^text/html$=w3m -dump;lynx -dump --;elinks -dump;pandoc -s -t markdown --; + +# Text +^text/rtf=catdoc --; +N:.*\.json$=jq --color-output . ;python -m json.tool --; +N:.*\.md$=glow -s dark --;mdcat --; +^text/.*=highlight -f --out-format=xterm256 --force --;bat --style=plain --color=always --;cat --; + +# Office documents +N:.*\.xlsx$=xlsx2csv --;file -b --; +N:.*\.(odt|ods|odp|sxw)$=odt2txt;pandoc -s -t markdown --; +^application/(.*wordprocessingml.document|.*epub+zip|x-fictionbook+xml)=pandoc -s -t markdown --; +^application/msword=catdoc --;file -b --; +^application/ms-excel=xls2csv --;file -b --; + +# Archives +N:.*\.rar=unrar lt -p- --; +application/zstd=file -b --;true +application/(zip|gzip|x-7z-compressed|x-xz|x-bzip*|x-tar)=atool --list --;bsdtar --list --file; + +# PDF +^application/pdf$=pdftotext -l 10 -nopgbrk -q -- %f -;mutool draw -F txt -i --;exiftool; + +# Image, video, and audio +^image/vnd.djvu=djvutxt;exiftool; +^image/.*=exiftool; +^video/.*=mediainfo;exiftool; +^audio/.*=mediainfo;exiftool; + +# Torrent: +application/x-bittorrent=transmission-show --; + +# Fallback +.*=file -b --; +# Add true(1) to silence the 'no application found' warning +#.*=file -b --;true; diff --git a/dconf/.config/dconf/user b/dconf/.config/dconf/user index 0573cdfd6..c129c6d45 100644 Binary files a/dconf/.config/dconf/user and b/dconf/.config/dconf/user differ diff --git a/herbstluftwm/.config/herbstluftwm/autostart b/herbstluftwm/.config/herbstluftwm/autostart new file mode 100755 index 000000000..bd779c55a --- /dev/null +++ b/herbstluftwm/.config/herbstluftwm/autostart @@ -0,0 +1,190 @@ +#!/usr/bin/env bash +#-*-coding:utf-8 -*- +#Auto updated? +# Yes +#File: +# autostart +#Author: +# The-Repo-Club [wayne6324@gmail.com] +#Github: +# https://github.com/The-Repo-Club/ +# +#Created: +# Sat 15 October 2022, 09:01:26 PM [GMT+1] +#Modified: +# Sun 16 October 2022, 01:52:54 AM [GMT+1] +# +#Description: +# Config for herbstluftwm +# +#Dependencies: +# bash, herbstluftwm +# +# shellcheck disable=all + +if command -v autorandr &>/dev/null; then + autorandr --load 'herbstluft' & +fi + +if [ -f $HOME/.config/herbstluftwm/extra/config ]; then + . $HOME/.config/herbstluftwm/extra/config +fi + +if [ -f $HOME/.config/herbstluftwm/extra/panel ]; then + sh $HOME/.config/herbstluftwm/extra/panel & +fi + +if command -v /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &>/dev/null; then + if ! pgrep -f "/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1" >/dev/null; then + /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 & + else + echo "polkit-gnome already Running" + fi +fi + +if command -v xroot &>/dev/null; then + if ! pgrep -f "xroot" >/dev/null; then + if command -v xmenu_desktop &>/dev/null; then + if ! pgrep -f "xmenu_desktop" >/dev/null; then + xroot -r xmenu_desktop & + else + echo "xroot already Running" + fi + fi + else + echo "xroot already Running" + fi +fi + +if command -v clipmenu-daemon &>/dev/null; then + if ! pgrep -f "clipmenu-daemon" >/dev/null; then + clipmenu-daemon & + else + echo "clipmenu-daemon already Running" + fi +fi + +if ! command -v picom &>/dev/null; then + echo "picom could not be found" +else + if ! pgrep -x "picom" >/dev/null; then + picom -CGb --experimental-backend --config "$HOME"/.config/i3/picom.conf & + else + echo "picom already Running" + fi +fi + +################ +## Tray Icons ## +################ + +if ! command -v ckb-next &>/dev/null; then + echo "ckb-next could not be found" +else + if ! pgrep -x "ckb-next" >/dev/null; then + ckb-next --background & + else + echo "ckb-next already Running" + fi +fi + +if command -v nm-applet &>/dev/null; then + if ! pgrep -x "nm-applet" >/dev/null; then + nm-applet & + else + echo "nm-applet already Running" + fi +fi + +if command -v blueman-applet &>/dev/null; then + if ! pgrep -x "blueman-applet" >/dev/null; then + blueman-applet & + else + echo "blueman-applet already Running" + fi +fi + +if command -v touchpad-indicator &>/dev/null; then + if ! pgrep -f "touchpad-indicator" >/dev/null; then + touchpad-indicator & + else + echo "touchpad-indicator already Running" + fi +fi + +if command -v numlockx &>/dev/null; then + numlockx on & +fi + +if command -v volumeicon &>/dev/null; then + if ! pgrep -x "volumeicon" >/dev/null; then + volumeicon & + else + echo "volumeicon already Running" + fi +fi + +if command -v cbatticon &>/dev/null; then + if ! pgrep -x "cbatticon" >/dev/null; then + cbatticon & + else + echo "cbatticon already Running" + fi +fi + +#################### +## Fix Background ## +#################### +if ! command -v feh &>/dev/null; then + echo "feh could not be found" +else + if ! test -f "$HOME/.fehbg"; then + echo "$HOME/.fehbg could not be found" + else + sh "$HOME/.fehbg" & + sleep 2s + sh "$HOME/.fehbg" & + fi +fi + +############### +## Auto Lock ## +############### + +if command -v xidlehook &>/dev/null; then + # shellcheck disable=SC2155 + export PRIMARY_DISPLAY="$(xrandr | awk '/ primary/{print $1}')" + if ! pgrep -x "xidlehook" >/dev/null; then + xidlehook \ + --not-when-fullscreen \ + --not-when-audio \ + --timer 300 \ + "xrandr --output $PRIMARY_DISPLAY --brightness .1" \ + "xrandr --output $PRIMARY_DISPLAY --brightness 1" \ + --timer 30 \ + "xrandr --output $PRIMARY_DISPLAY --brightness 1; multimonitorlock -l -- --time-str=%I:%M:%S %p" \ + "" \ + --timer 3600 \ + "systemctl suspend" \ + "" & + else + echo "xidlehook already Running" + fi +fi + +################ +## Other Junk ## +################ + +systemctl --user import-environment DISPLAY XAUTHORITY + +if command -v dbus-update-activation-environment >/dev/null 2>&1; then + dbus-update-activation-environment DISPLAY XAUTHORITY +fi + +# see https://wiki.archlinux.org/title/GNOME/Keyring#xinitrc +eval "$(/usr/bin/gnome-keyring-daemon --start)" +export SSH_AUTH_SOCK + +# see https://github.com/NixOS/nixpkgs/issues/14966#issuecomment-520083836 +mkdir -p "$HOME"/.local/share/keyrings diff --git a/herbstluftwm/.config/herbstluftwm/extra/config b/herbstluftwm/.config/herbstluftwm/extra/config new file mode 100755 index 000000000..63859bb13 --- /dev/null +++ b/herbstluftwm/.config/herbstluftwm/extra/config @@ -0,0 +1,230 @@ +#!/usr/bin/env bash +#-*-coding:utf-8 -*- +#Auto updated? +# Yes +#File: +# autostart +#Author: +# The-Repo-Club [wayne6324@gmail.com] +#Github: +# https://github.com/The-Repo-Club/ +# +#Created: +# Sat 15 October 2022, 09:01:26 PM [GMT+1] +#Modified: +# Thu 20 October 2022, 04:11:37 PM [GMT+1] +# +#Description: +# Config for herbstluftwm +# +#Dependencies: +# bash, herbstluftwm +# +# shellcheck disable=all + +hc() { + herbstclient "$@" +} + +hc emit_hook reload + +#----------------# +# Setup Commands # +#----------------# + +editor='code' +menu='repomenu_run -i -l 10 -w 600 -c -p "Launcher" -q "Launch a app"' +browser='firefox' +terminal='alacritty' +power='repomenue_powermenu' +vbox='virt-manager' +files='nemo' +mail='thunderbird' +kill='repomenue_kill' + +#---------------------------------# +# REMOVE ALL EXISTING KEYBINDINGS # +#---------------------------------# +hc keyunbind --all + +#-------------# +# KEYBINDINGS # +#-------------# + +MOD=Mod4 # Use the super key as the main modifier +ALT=Mod1 # Use the alt key as the alt modifier +SHIFT=Shift # Use the shift key as the shift modifier +CTRL=Control # Use the control key as the control modifier + +#-----------------# +# System controls # +#-----------------# +hc keybind $MOD-$SHIFT-r reload +hc keybind $MOD-q close +hc keybind $MOD-Return spawn "${TERMINAL:-$terminal}" +hc keybind $MOD-b spawn "sh $HOME/.config/polybar/scripts/toggle_bar.sh" + +#------------# +# Programing # +#------------# + +hc keybind $MOD-$CTRL-c spawn $editor + +#----------# +# Browsers # +#----------# + +hc keybind $MOD-$CTRL-f spawn $browser + +#-------# +# Files # +#-------# + +hc keybind $MOD-$SHIFT-Return spawn $files + +#-----------# +# Launchers # +#-----------# + +hc keybind $MOD-m spawn $menu +hc keybind $MOD-$SHIFT-e spawn $power +hc keybind $MOD-$SHIFT-q spawn $kill + +#-------------# +# ScratchPads # +#-------------# + +hc keybind $CTRL-Return spawn scratchpad +hc keybind $ALT-Return spawn scratch terminal +hc keybind $ALT-c spawn scratch files +hc keybind $ALT-v spawn scratch volume + +#-----------------# +# Focusing Client # +#-----------------# + +hc keybind $MOD-Up focus up +hc keybind $MOD-Down focus down +hc keybind $MOD-Left focus left +hc keybind $MOD-Right focus right + +# Moving clients in tiling and floating mode # + +hc keybind $MOD-$SHIFT-Up shift up +hc keybind $MOD-$SHIFT-Down shift down +hc keybind $MOD-$SHIFT-Left shift left +hc keybind $MOD-$SHIFT-Right shift right + +#------------------# +# Splitting Frames # +#------------------# + +hc keybind $MOD-u split bottom 0.6 +hc keybind $MOD-o split right 0.6 + +#----------------------------------------------# +# let the current frame explode into subframes # +#----------------------------------------------# + +hc keybind $MOD-$CTRL-space split explode + +#--------------------------------------# +# resizing frames and floating clients # +#--------------------------------------# + +resizestep=0.02 +hc keybind $MOD-$CTRL-Up resize up +$resizestep +hc keybind $MOD-$CTRL-Down resize down +$resizestep +hc keybind $MOD-$CTRL-Left resize left +$resizestep +hc keybind $MOD-$CTRL-Right resize right +$resizestep + +#------# +# tags # +#------# +"" +tag_names=({1..9} 0) +tag_keys=({1..9} 0) + +hc rename default "${tag_names[0]}" || true +for i in "${!tag_names[@]}" ; do + hc add "${tag_names[$i]}" + hc set_layout horizontal + hc set default_frame_layout 1 + key="${tag_keys[$i]}" + if ! [ -z "$key" ] ; then + hc keybind "$MOD-$key" use_index "$i" + hc keybind "$MOD-$SHIFT-$key" move_index "$i" + fi +done + +#-----------# +# Layouting # +#-----------# + +hc keybind $ALT-r remove +hc keybind $ALT-f fullscreen toggle + +#-------# +# Focus # +#-------# + +hc keybind $MOD-BackSpace cycle_monitor +hc keybind $MOD-Tab cycle_all +1 +hc keybind $MOD-$SHIFT-Tab cycle_all -1 +hc keybind $MOD-c cycle +hc keybind $MOD-i jumpto urgent + +#-------# +# MOUSE # +#-------# + +hc mouseunbind --all +hc mousebind $MOD-Button1 move +hc mousebind $MOD-Button2 zoom +hc mousebind $MOD-Button3 resize + +#-------# +# RULES # +#-------# + +hc unrule -F # clear rules + +#-------# +# THEME # +#-------# + +if [ -f $HOME/.config/herbstluftwm/extra/theme ]; +then + . $HOME/.config/herbstluftwm/extra/theme +fi + +#----------# +# PROGRAMS # +#----------# + +hc rule class~'([Aa]lacritty|[Kk]itty)' tag='1' + +#-------------# +# SCRATCHPADS # +#-------------# + +hc rule title~'scratchpad' floating=on floatplacement=center floating_geometry=1000x500 +hc rule title~'clifm' floating=on floatplacement=center floating_geometry=1000x500 + +hc rule focus=on # normally focus new clients +hc rule floatplacement=center +#hc rule float_geometry=250x100 +#hc rule focus=off # normally do not focus new clients +# give focus to most common terminals +hc rule windowtype~'_NET_WM_WINDOW_TYPE_(DIALOG|UTILITY|SPLASH)' floating=on floatplacement=center +hc rule windowtype='_NET_WM_WINDOW_TYPE_DIALOG' focus=on floatplacement=smart +hc rule windowtype~'_NET_WM_WINDOW_TYPE_(NOTIFICATION|DOCK|DESKTOP)' manage=off + +hc set tree_style '╾│ ├└╼─┐' + +#--------# +# UNLOCK # +#--------# + +hc unlock +hc detect_monitors \ No newline at end of file diff --git a/herbstluftwm/.config/herbstluftwm/extra/panel b/herbstluftwm/.config/herbstluftwm/extra/panel new file mode 100755 index 000000000..df3be56c5 --- /dev/null +++ b/herbstluftwm/.config/herbstluftwm/extra/panel @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +# shellcheck disable=all +WM=$(wmctrl -m | grep Name | cut -d: -f2) +WM=${WM//[[:space:]]/} + +if [ "$WM" == "herbstluftwm" ]; then + if ! command -v polybar &>/dev/null; then + echo "polybar could not be found" + else + if ! pgrep -x "polybar" >/dev/null; then + if ! test -f "$HOME/.config/polybar/launch.sh"; then + echo "$HOME/.config/polybar/launch.sh could not be found" + else + sh $HOME/.config/polybar/launch.sh + echo "Bars launched..." + fi + else + echo "polybar already Running" + fi + fi +fi diff --git a/herbstluftwm/.config/herbstluftwm/extra/theme b/herbstluftwm/.config/herbstluftwm/extra/theme new file mode 100755 index 000000000..1efcefc83 --- /dev/null +++ b/herbstluftwm/.config/herbstluftwm/extra/theme @@ -0,0 +1,62 @@ +#!/usr/bin/env bash +#-*-coding:utf-8 -*- +#Auto updated? +# Yes +#File: +# autostart +#Author: +# The-Repo-Club [wayne6324@gmail.com] +#Github: +# https://github.com/The-Repo-Club/ +# +#Created: +# Sat 15 October 2022, 09:01:26 PM [GMT+1] +#Modified: +# Sun 16 October 2022, 02:52:53 PM [GMT+1] +# +#Description: +# Config for herbstluftwm +# +#Dependencies: +# bash, herbstluftwm +# +# shellcheck disable=all + +hc attr theme.tiling.reset 1 +hc attr theme.floating.reset 1 +hc set frame_border_active_color '#000000' +hc set frame_border_normal_color '#101010' +hc set frame_bg_normal_color '#565656' +hc set frame_bg_active_color '#345F0C' +hc set frame_border_width 1 +hc set always_show_frame 0 +hc set frame_bg_transparent 1 +hc set frame_transparent_width 0 +hc set frame_gap 0 + +hc attr theme.active.color '#000000' +hc attr theme.active.border_width 10 +hc attr theme.active.inner_width 1 +hc attr theme.active.outer_width 4 +hc attr theme.active.outer_color '#005f87' + +hc attr theme.normal.color '#242424' +hc attr theme.normal.border_width 10 +hc attr theme.normal.inner_width 1 + +hc attr theme.urgent.color orange +hc attr theme.inner_color '#ffffff' + +hc attr theme.floating.border_width 10 +hc attr theme.floating.outer_width 4 +hc attr theme.floating.outer_color '#5f875f' +hc attr theme.floating.inner_width 1 + +hc set window_gap 2 +hc set frame_padding 0 +hc set smart_window_surroundings true +hc set smart_frame_surroundings false +hc set mouse_recenter_gap 0 +hc set focus_crosses_monitor_boundaries 1 +hc set swap_monitors_to_get_tag 0 +hc set focus_follows_mouse 1 diff --git a/i3/.config/i3/config b/i3/.config/i3/config index ad054c4eb..6e6183291 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -226,7 +226,7 @@ $super_b+$shift+r \ restart $super_b+$controlr+r \ - $exec autostart + $exe autostart ## Category: i3-Config; # Description: Reload the configuration file; @@ -242,12 +242,12 @@ $super_b+$shift+c \ ## Category: i3-Config; # Description: Kill focused window; $super_b+q \ - kill + $exe i3_kill ## Category: i3-Config; # Description: Kill focused window; $super_b+$shift+q \ - kill + $exe i3_kill #################################################################################################################### ################# Moving around in i3 ################# diff --git a/localbin/.local/bin/i3_kill b/localbin/.local/bin/i3_kill new file mode 100755 index 000000000..f99153a03 --- /dev/null +++ b/localbin/.local/bin/i3_kill @@ -0,0 +1,36 @@ +#!/usr/bin/env bash +#-*-coding:utf-8 -*- +#Auto updated? +# Yes +#File: +# i3_kill +#Author: +# The-Repo-Club [wayne6324@gmail.com] +#Github: +# https://github.com/The-Repo-Club/ +# +#Created: +# Fri 21 October 2022, 06:55:58 AM [GMT+1] +#Modified: +# Fri 21 October 2022, 07:12:58 AM [GMT+1] +# +#Description: +# +# +#Dependencies: +# +# + +i3_kill() { + do_not_kill=("dropdown-terminal") + app_id="$(i3-msg -t get_tree 2>/dev/null | jq -r '.. | select(.focused?).window_properties.class')" + + for value in "${do_not_kill[@]}"; do + if [[ $value == "$app_id" ]]; then + exit 0 + fi + done + i3-msg kill +} + +i3_kill diff --git a/localbin/.local/bin/pacsync b/localbin/.local/bin/pacsync index a903dbbc1..03a09f118 100755 --- a/localbin/.local/bin/pacsync +++ b/localbin/.local/bin/pacsync @@ -1,4 +1,4 @@ -#!/usr/bin/bash +#!/usr/bin/env bash # Dependencies: # pacman, yay, fzf diff --git a/mpv/.config/mpv/mpv.conf b/mpv/.config/mpv/mpv.conf new file mode 100644 index 000000000..1546fc3b4 --- /dev/null +++ b/mpv/.config/mpv/mpv.conf @@ -0,0 +1 @@ +ytdl-format=bestvideo[height<=420]+bestaudio \ No newline at end of file diff --git a/polybar/.config/polybar/config_top.ini b/polybar/.config/polybar/config_top.ini index 4c688c65b..da53163d8 100644 --- a/polybar/.config/polybar/config_top.ini +++ b/polybar/.config/polybar/config_top.ini @@ -135,10 +135,11 @@ module-margin-right = 0 ; font-3 = FontAwesome:size=10 ; See the Fonts wiki page for more details -font-0 = "Source Code Pro:size=8;2" -font-1 = "Siji:size=10;2" -font-2 = "MaterialIcons:size=10;2" -font-3 = "xos4 Terminus:size=12;2" +font-0 = "Source Code Pro:antialias=true:size=10;2" +font-1 = "Wuncon Siji:pixelsize=8:size=10;2" +font-2 = "MaterialIcons:antialias=true:size=10;2" +font-3 = "xos4 Terminus:antialias=true:size=12;2" +font-4 = "Noto Sans CJK JP:antialias=true:size=10;2" ; Modules are added to one of the available blocks ; modules-left = cpu ram diff --git a/polybar/.config/polybar/modules.ini b/polybar/.config/polybar/modules.ini index ef92abc3d..bf266a4cd 100644 --- a/polybar/.config/polybar/modules.ini +++ b/polybar/.config/polybar/modules.ini @@ -315,16 +315,16 @@ reverse-scroll = false fuzzy-match = false -ws-icon-1 = 1: Terminal; -ws-icon-2 = 2: Editor; -ws-icon-3 = 3: Files; -ws-icon-4 = 4: Graphics; -ws-icon-5 = 5: Music; -ws-icon-6 = 6: WebBrowser; -ws-icon-7 = 7: Mail; -ws-icon-8 = 8: VirtualBox; -ws-icon-9 = 9: Chat; -ws-icon-0 = 10: Settings; +ws-icon-1 = 1: Terminal;一 +ws-icon-2 = 2: Editor;二 +ws-icon-3 = 3: Files;三 +ws-icon-4 = 4: Graphics;四 +ws-icon-5 = 5: Music;五 +ws-icon-6 = 6: WebBrowser;六 +ws-icon-7 = 7: Mail;七 +ws-icon-8 = 8: Games;八 +ws-icon-9 = 9: Chat;九 +ws-icon-0 = 10: Settings;零 ws-icon-default = "" format = diff --git a/qtile/.config/qtile/config.py b/qtile/.config/qtile/config.py index d580072e3..f3c3537fc 100644 --- a/qtile/.config/qtile/config.py +++ b/qtile/.config/qtile/config.py @@ -277,10 +277,10 @@ groups = Groups.groups # Define scratchpads groups.append( ScratchPad("scratchpad", [ - DropDown("term", "alacritty --class=scratch", width=0.8, height=0.8, x=0.1, y=0.1, opacity=1), + DropDown("term", "kitty --class=scratch", width=0.8, height=0.8, x=0.1, y=0.1, opacity=1), DropDown("cheat", cheater, width=0.4, height=0.7, x=0.3, y=0.2, opacity=0.9), - DropDown("clifm", "alacritty --class=clifm -e clifm", width=0.8, height=0.8, x=0.1, y=0.1, opacity=0.9), - DropDown("btop", "alacritty --class=btop -e btop", width=0.8, height=0.8, x=0.1, y=0.1, opacity=0.9), + DropDown("clifm", "kitty --class=clifm -e clifm", width=0.8, height=0.8, x=0.1, y=0.1, opacity=0.9), + DropDown("btop", "kitty --class=btop -e btop", width=0.8, height=0.8, x=0.1, y=0.1, opacity=0.9), DropDown("volume", "pavucontrol", width=0.8, height=0.8, x=0.1, y=0.1, opacity=0.9), ]))