mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
Compare commits
No commits in common. "edb3fb261aaf5b3ff7467596e8e0e055c2ac20f6" and "4c74aa7f5171a34b6280f736c0871b20b7de94ff" have entirely different histories.
edb3fb261a
...
4c74aa7f51
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1 @@
|
||||
gtk/.config/gtk-3.0/bookmarks
|
||||
zsh/.config/zsh/.zcompcache/
|
||||
|
3
dwm/.config/X11/xinitrc
Executable file
3
dwm/.config/X11/xinitrc
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
exec dwm
|
102
dwm/.local/share/dwm/autostart.sh
Executable file
102
dwm/.local/share/dwm/autostart.sh
Executable file
@ -0,0 +1,102 @@
|
||||
#!/bin/sh
|
||||
|
||||
###---Start app if not running already---###
|
||||
start_if_not_running() {
|
||||
count=1
|
||||
###---iceweasel/firefox is weird---###
|
||||
if [ "$1" = "iceweasel" ]; then
|
||||
PROCESS_NAME="iceweasel|MainThread"
|
||||
elif [ "$1" = "element-desktop-nightly" ]; then
|
||||
PROCESS_NAME="element-desktop"
|
||||
elif [ "$1" = "emacs" ]; then
|
||||
count=2
|
||||
else
|
||||
PROCESS_NAME=$1
|
||||
fi
|
||||
|
||||
if [ "$(pgrep -u "$(id -u)" -x "$PROCESS_NAME" | wc -l)" -lt $count ]; then
|
||||
if command -v "$1"; then
|
||||
eval "$1 &"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
###---Start app in alacritty if not running already---###
|
||||
start_shell_if_not_running() {
|
||||
if [ "$(pgrep -u "$(id -u)" -x "$1" | wc -l)" -lt 1 ]; then
|
||||
if command -v "$1"; then
|
||||
eval "st -c $1 -e $1 &"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# Set screen orientation if second monitor is connected
|
||||
SCREENCOUNT=$(xrandr | grep -c "\*")
|
||||
|
||||
# If multi screen add special mode for monitor so it supports 1440p over HDMI
|
||||
if [ "$SCREENCOUNT" -eq 2 ]; then
|
||||
if [ -f "$HOME/.local/bin/screen_desktop" ]; then
|
||||
screen_desktop &
|
||||
# Make sure mouse is on main screen so windows are launched there
|
||||
#xdotool mousemove 3360 1080 &
|
||||
fi
|
||||
else
|
||||
if [ -f "$HOME/.local/bin/screen" ]; then
|
||||
screen &
|
||||
fi
|
||||
fi
|
||||
|
||||
###---Set working directory---###
|
||||
cd ~ || exit
|
||||
|
||||
###---Load xresources---###
|
||||
xrdb -load ~/.config/X11/xresources &
|
||||
|
||||
###---Sxhkd---###
|
||||
start_if_not_running sxhkd
|
||||
|
||||
###---Keyboard---###
|
||||
setxkbmap -option caps:escape &
|
||||
|
||||
###---Wallpaper, colours & opacity---###
|
||||
~/.local/bin/wallpaper &
|
||||
wal -n -R &
|
||||
picom -b &
|
||||
sh ~/.cache/wal/colors.sh &
|
||||
|
||||
###---Switch off microphones---###
|
||||
# switch off microphones
|
||||
amixer -c 2 set Mic nocap &
|
||||
amixer -c 3 set Mic nocap &
|
||||
|
||||
###---Autostart---###
|
||||
start_if_not_running dunst
|
||||
start_if_not_running unclutter
|
||||
start_if_not_running xbanish
|
||||
start_if_not_running nm-applet
|
||||
start_if_not_running pasystray
|
||||
start_if_not_running redshift-gtk
|
||||
start_if_not_running syncthing-gtk
|
||||
start_if_not_running caffeine
|
||||
start_if_not_running dwmblocks
|
||||
|
||||
start_if_not_running brave
|
||||
start_if_not_running iceweasel
|
||||
start_if_not_running firefox
|
||||
start_if_not_running emacs
|
||||
start_if_not_running element-desktop
|
||||
start_if_not_running element-desktop-nightly
|
||||
|
||||
if [ "$SCREENCOUNT" -eq 2 ]; then
|
||||
start_shell_if_not_running castero
|
||||
start_if_not_running slack
|
||||
fi
|
||||
|
||||
###---System lock---###
|
||||
pkill -f xss-lock
|
||||
xset s 300 5 &
|
||||
env XSECURELOCK_FONT="Hack Nerd Font" xss-lock -n /usr/lib/xsecurelock/dimmer -l -- xsecurelock &
|
||||
|
||||
###---Misc---###
|
||||
# Needed for Jetbrains products to work
|
||||
wmname LG3D &
|
@ -272,9 +272,3 @@ typings/
|
||||
|
||||
# C
|
||||
.ccls-cache/
|
||||
|
||||
# VSCode
|
||||
.vscode
|
||||
|
||||
# Syncthing
|
||||
.stignore
|
||||
|
1
install
1
install
@ -123,6 +123,7 @@ if [ ! -d ~/.local/share/omf ]
|
||||
end
|
||||
|
||||
# Install oh-my-fish plugins
|
||||
install_omf_package_if_not_exist spacefish
|
||||
install_omf_package_if_not_exist colored-man-pages
|
||||
install_omf_package_if_not_exist extract
|
||||
install_omf_package_if_not_exist fzf
|
||||
|
@ -42,4 +42,6 @@ wait
|
||||
|
||||
mu index --muhome=~/.cache/mu --maildir=~/.local/share/mail 2>/dev/null
|
||||
|
||||
exit 0
|
||||
# Create a touch file that indicates the time of the last run of mailsync
|
||||
touch "/tmp/.mailsynclastrun"
|
||||
pkill -RTMIN+6 "${STATUSBAR:-dwmblocks}"
|
||||
|
@ -2,8 +2,8 @@
|
||||
"name": "dotfiles",
|
||||
"description": "My dotfiles",
|
||||
"devDependencies": {
|
||||
"@commitlint/config-conventional": "^17.1.0",
|
||||
"husky": "^8.0.1"
|
||||
"@commitlint/config-conventional": "^12.0.1",
|
||||
"husky": "^5.1.3"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
|
26
yarn.lock
26
yarn.lock
@ -2,12 +2,12 @@
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@commitlint/config-conventional@^17.1.0":
|
||||
version "17.1.0"
|
||||
resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-17.1.0.tgz#9bd852766e08842bfe0fe4deb40e152eb718ec1b"
|
||||
integrity sha512-WU2p0c9/jLi8k2q2YrDV96Y8XVswQOceIQ/wyJvQxawJSCasLdRB3kUIYdNjOCJsxkpoUlV/b90ZPxp1MYZDiA==
|
||||
"@commitlint/config-conventional@^12.0.1":
|
||||
version "12.0.1"
|
||||
resolved "https://registry.yarnpkg.com/@commitlint/config-conventional/-/config-conventional-12.0.1.tgz#7bf3bbf68bda967c5165135ebe8f2055decf1a83"
|
||||
integrity sha512-1ZhB135lh47zVmf1orwcjxuKuam11fJIH/bdVxW9XiQv8XPwC6iIp19knfl8FcOT78AVBnes1z6EVxgUeP2/4Q==
|
||||
dependencies:
|
||||
conventional-changelog-conventionalcommits "^5.0.0"
|
||||
conventional-changelog-conventionalcommits "^4.3.1"
|
||||
|
||||
array-ify@^1.0.0:
|
||||
version "1.0.0"
|
||||
@ -22,10 +22,10 @@ compare-func@^2.0.0:
|
||||
array-ify "^1.0.0"
|
||||
dot-prop "^5.1.0"
|
||||
|
||||
conventional-changelog-conventionalcommits@^5.0.0:
|
||||
version "5.0.0"
|
||||
resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-5.0.0.tgz#41bdce54eb65a848a4a3ffdca93e92fa22b64a86"
|
||||
integrity sha512-lCDbA+ZqVFQGUj7h9QBKoIpLhl8iihkO0nCTyRNzuXtcd7ubODpYB04IFy31JloiJgG0Uovu8ot8oxRzn7Nwtw==
|
||||
conventional-changelog-conventionalcommits@^4.3.1:
|
||||
version "4.5.0"
|
||||
resolved "https://registry.yarnpkg.com/conventional-changelog-conventionalcommits/-/conventional-changelog-conventionalcommits-4.5.0.tgz#a02e0b06d11d342fdc0f00c91d78265ed0bc0a62"
|
||||
integrity sha512-buge9xDvjjOxJlyxUnar/+6i/aVEVGA7EEh4OafBCXPlLUQPGbRUBhBUveWRxzvR8TEjhKEP4BdepnpG2FSZXw==
|
||||
dependencies:
|
||||
compare-func "^2.0.0"
|
||||
lodash "^4.17.15"
|
||||
@ -38,10 +38,10 @@ dot-prop@^5.1.0:
|
||||
dependencies:
|
||||
is-obj "^2.0.0"
|
||||
|
||||
husky@^8.0.1:
|
||||
version "8.0.1"
|
||||
resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.1.tgz#511cb3e57de3e3190514ae49ed50f6bc3f50b3e9"
|
||||
integrity sha512-xs7/chUH/CKdOCs7Zy0Aev9e/dKOMZf3K1Az1nar3tzlv0jfqnYtu235bstsWTmXOR0EfINrPa97yy4Lz6RiKw==
|
||||
husky@^5.1.3:
|
||||
version "5.1.3"
|
||||
resolved "https://registry.yarnpkg.com/husky/-/husky-5.1.3.tgz#1a0645a4fe3ffc006c4d0d8bd0bcb4c98787cc9d"
|
||||
integrity sha512-fbNJ+Gz5wx2LIBtMweJNY1D7Uc8p1XERi5KNRMccwfQA+rXlxWNSdUxswo0gT8XqxywTIw7Ywm/F4v/O35RdMg==
|
||||
|
||||
is-obj@^2.0.0:
|
||||
version "2.0.0"
|
||||
|
@ -231,8 +231,8 @@ ex=:\
|
||||
# Save history file in proper place
|
||||
HISTFILE=~/.cache/zsh/history
|
||||
|
||||
# Load zplug from xdg dir
|
||||
export ZPLUG_HOME="$XDG_DATA_HOME/zplug"
|
||||
# Load config files from their proper place
|
||||
ZDOTDIR=~/.config/zsh
|
||||
|
||||
# Use alternative muhome
|
||||
export MU_HOME="/home/alrayyes/.cache/mu"
|
Loading…
Reference in New Issue
Block a user