From be1692c02a4b4d17608abeaa26b5a93cbdb7c9ee Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Mon, 7 Aug 2023 11:05:54 +0500 Subject: [PATCH] idk --- bashrc | 11 +++++++---- config/i3/config | 31 +++++++++++++++++++++++-------- scripts/scrcpy-autostart | 2 +- 3 files changed, 31 insertions(+), 13 deletions(-) diff --git a/bashrc b/bashrc index c848eae..288a7ee 100644 --- a/bashrc +++ b/bashrc @@ -1,13 +1,15 @@ -PATH=$HOME/.scripts:/opt:/home/shihaam/.local/bin:$HOME/.shortcuts/wineprograms:$PATH + +# vars +PATH=$HOME/.scripts:/opt:/home/shihaam/.local/bin:$HOME/.shortcuts/wineprograms:$HOME/Applications:$PATH HISTSIZE=999999 HISTFILESIZE=999999 export GPG_TTY=$(tty) #Set GPG_TTY veriable, needed for signing git commits other gpg stuff #export SSH_CA_FILES=/home/shihaam/git/alliedmaldives/ops/ssh-ca -export SSH_CA_FILES=/home/shihaam/.ssh +export SSH_CA_FILES=$HOME/.ssh export SSH_CA_REVOCATION_LIST=$HOME/git/alliedmaldives/ops/ssh-ca/revoked_keys -export SSL_FILES=/home/shihaam/ssl/allied +export SSL_FILES=$HOME/git/alliedmaldives/ops/ssl-certs #load ble.sh source ~/.local/share/blesh/ble.sh @@ -22,8 +24,9 @@ cdl(){ cd $(cat ~/.cache/whereami);};cdl ####### ALIASES ########## -alias nano='nano -i' +alias nano='nano -l' alias hdd='cd /mnt/hdd' +alias drag=ripdrag ######################### diff --git a/config/i3/config b/config/i3/config index 8f4f69c..e737f10 100644 --- a/config/i3/config +++ b/config/i3/config @@ -195,30 +195,45 @@ bar { for_window [class="^.*"] border pixel 0 #restore displays -exec --no-startup-id /home/shihaam/.scripts/office2kdisplay.sh +exec --no-startup-id /home/shihaam/.scripts/home.sh +#exec --no-startup-id autorandr --change home +#exec --no-startup-id i3-resurrect --restore # flameshot -bindsym $mod+Shift+s exec flameshot gui +#bindsym $mod+Shift+s exec flameshot gui +bindsym Print exec flameshot gui +bindsym $mod+Print exec flameshot gui --raw | tesseract stdin stdout | xclip -in -selection clipboard +# rofi ssh +bindsym $mod+Shift+s exec rofi -show ssh # start the compositor at login exec --no-startup-id picom -# Start bluetooth system tray applet at login +# Start bluetooth system tray applet at login exec --no-startup-id blueman-applet exec --no-startup-id /home/shihaam/.scripts/scrcpy-autostart -# start activty watcher -exec --no-startup-id aw-qt - # start power mmanager exec --no-startup-id xfce4-power-manager # start activate-linux -exec --no-startup-id activate-linux +#exec --no-startup-id activate-linux + +# start ssh key monitoring +#exec --no-startup-id doas auditctl -w /home/shihaam/.ssh/id_ed25519 -p r -k ssh-key-read # Start dunst (notification service) exec --no-startup-id dunst # start ssh access notification script -exec --no-startup-id /home/shihaam/.scripts/notify-ssh-access.sh +#exec --no-startup-id /home/shihaam/.scripts/notify-ssh-access.sh + + +# start kde connect +exec --no-startup-id /usr/lib/kdeconnectd + +#set a wallpaper +exec --no-startup-id feh --no-fehbg --bg-scale /usr/share/backgrounds/archlinux/split.png + +#exec_always polybar diff --git a/scripts/scrcpy-autostart b/scripts/scrcpy-autostart index 0c8f3ee..2e0ebbe 100755 --- a/scripts/scrcpy-autostart +++ b/scripts/scrcpy-autostart @@ -4,7 +4,7 @@ while true; do if [ -L /dev/android_adb ] then -# scrcpy --turn-screen-off --stay-awake & sndcpy +# scrcpy --no-audio --turn-screen-off --stay-awake & sndcpy scrcpy --turn-screen-off --stay-awake else adb wait-for-device