This commit is contained in:
The-Repo-Club 2023-08-26 21:24:34 +01:00
parent 1b81716b01
commit 43b1f6ea9c
No known key found for this signature in database
GPG Key ID: E30EC2FBFB05C44F
7 changed files with 3 additions and 503 deletions

Binary file not shown.

View File

@ -0,0 +1,2 @@
[General]
notifications=true

View File

@ -1,2 +1,2 @@
LastUsed=1693073708 LastUsed=1693082250
Message='Fully Updated' Message='Fully Updated'

View File

@ -1,190 +0,0 @@
#!/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:
# Mon 21 August 2023, 11:19:00 PM [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 xcompmgr &>/dev/null; then
echo "xcompmgr could not be found"
else
if ! pgrep -x "xcompmgr" >/dev/null; then
xcompmgr &
else
echo "xcompmgr 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

View File

@ -1,228 +0,0 @@
#!/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:
# Fri 17 February 2023, 09:49:52 PM [GMT]
#
#Description:
# Config for herbstluftwm
#
#Dependencies:
# bash, herbstluftwm
#
# shellcheck disable=all
hc() {
herbstclient "$@"
}
hc emit_hook reload
#----------------#
# Setup Commands #
#----------------#
editor='code'
menu='menu'
browser='firefox'
terminal='alacritty'
power='rofi -show powermenu -config ~/.config/rofi/powermenu.rasi'
vbox='virt-manager'
files='nemo'
mail='thunderbird'
#---------------------------------#
# 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
#-------------#
# 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

View File

@ -1,22 +0,0 @@
#!/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

View File

@ -1,62 +0,0 @@
#!/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