Skip to content

Commit

Permalink
Wed Jul 3 02:41:05 PM EDT 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
danhab99 committed Jul 3, 2024
1 parent 47d0fbd commit bac7525
Show file tree
Hide file tree
Showing 2,935 changed files with 459 additions and 515 deletions.
Binary file removed .Xauthority
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
23 changes: 16 additions & 7 deletions bash/.bash_aliases → bash/_.bash_aliases_/.bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ alias vv="gvim -v ."
alias vi3="gvim -v ~/.config/i3/config"
alias valias="gvim -v ~/.bash_aliases"
alias vssh="gvim -v ~/.ssh/config"
alias vfz='gvim -v $(fzf)'
alias vf='gvim -v $(fzf)'


# alias l="ls"
alias l="ls"
alias inspireme="fortune | cowsay | lolcat"
alias git-fix="git submodule sync --recursive; git submodule update --init --recursive"
alias src="source ~/.bashrc"
Expand Down Expand Up @@ -86,24 +86,33 @@ alias clip="xclip -selection c"
alias upgrade-dashboard="kubectl rollout restart -n default deployment lime-dashboard"
alias screen-normal="source ~/.screenlayout/normal.sh"
alias screen-lime="source ~/.screenlayout/lime.sh"
alias cfzf='cd "$(dirname $(fzf))"'
alias tf="terraform"
alias rmr="rm -r"
alias tn="textnote"
alias edithosts="sudo vim /etc/hosts"
alias c="cat"
alias d="docker"
alias lg="lazygit"

scrape() {
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--no-parent \
$1
}

alias lg="lazygit"
alias tfa="terraform apply"
alias tfaa="terraform apply --auto-approve"
alias tfd="terraform destroy"
alias tfdd="terraform destroy --auto-approve"
alias tfp="terraform plan"
alias tfi="terraform init"

docker-send() {
docker_send() {
docker save $1 | ssh -C $2 docker load
}

alias zadd="zoxide add"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"12": { "key": "e" },
"13": { "key": "r" },
"14": { "key": "q" },
"15": { "key": "F2" },
"16": { "key": "F1" },
"15": { "key": "s" },
"16": { "key": "j" },
"17": { "key": "p" },
"18": { "key": "x" },
"19": { "key": "z" },
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
43 changes: 20 additions & 23 deletions config/i3/config → config/i3/_i3_/config
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ floating_modifier $mod
# start a terminal
bindsym $mod+Return exec urxvt
bindsym $mod+Ctrl+Return exec rm /tmp/workdir && urxvt
bindsym $mod+Shift+Return exec urxvt -e ssh -XY remotestation
bindsym $mod+Shift+Return exec urxvt -e ssh desktop
#bindsym $mod+Return exec i3-sensible-terminal
#bindsym $mod+Return exec terminator --config .config/terminator.conf

Expand All @@ -56,6 +56,12 @@ bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right

# # Move workspace between screens
# bindsym $mod+Ctrl+Left move workspace to output left
# bindsym $mod+Ctrl+Right move workspace to output right
# bindsym $mod+Ctrl+h move workspace to output left
# bindsym $mod+Ctrl+l move workspace to output right

# move focused window
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
Expand Down Expand Up @@ -145,8 +151,6 @@ workspace $ws8 output $SCREEN_CENTER
workspace $ws9 output $SCREEN_RIGHT
workspace $ws10 output $SCREEN_LEFT

# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
Expand Down Expand Up @@ -200,8 +204,8 @@ for_window [class="^.*"] border pixel 0
# start dmenu (a program launcher)
# bindsym $mod+d exec rofi -show run -lines $rofi-lines -eh $rofi-height -padding 800 -opacity $rofi-opacity -bw 0 -bc -theme $rofi-theme
bindsym $mod+d exec $HOME/.config/rofi/launchers/misc/launcher.sh
# bindsym $mod+Tab exec rofi -show-icons -show window -lines $rofi-lines -eh $rofi-height -padding 800 -opacity $rofi-opacity -bw 0 -bc -theme $rofi-theme
# bindsym $mod+Shift+Tab exec rofi -show ssh -lines $rofi-lines -eh $rofi-height -padding 800 -opacity $rofi-opacity -bw 0 -bc -theme $rofi-theme -terminal $rofi-terminal
bindsym $mod+Tab exec rofi -show-icons -show window -lines $rofi-lines -eh $rofi-height -padding 800 -opacity $rofi-opacity -bw 0 -bc -theme $rofi-theme
bindsym $mod+Shift+Tab exec rofi -show ssh -lines $rofi-lines -eh $rofi-height -padding 800 -opacity $rofi-opacity -bw 0 -bc -theme $rofi-theme -terminal $rofi-terminal

# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
Expand All @@ -219,21 +223,22 @@ bar {
}
}

# bindsym $mod+shift+x exec /home/dan/.config/i3/lock.sh # Lock keybinding
# bindsym $mod+shift+x exec betterlockscreen -l
bindsym $mod+shift+x exec i3lock -c 000000ff
bindsym $mod+shift+x exec /home/dan/.config/i3/lock.sh # Lock keybinding
bindsym Pause exec /home/dan/.config/i3/lock.sh

#i3-gaps config
gaps inner 20
gaps outer 12

# Enviroment setup
exec_always xinput set-prop 11 336 1
exec_always xinput set-prop 12 309 1
exec_always xinput set-prop 12 311 1
exec_always xinput set-prop 12 317 1
exec_always xinput set-prop 13 'libinput Accel Speed' 5
exec_always xinput set-prop 14 'libinput Accel Speed' 5
exec_always xinput set-prop 11 'libinput Accel Speed' 0.8
exec_always xinput set-prop 11 'libinput Accel Speed' 0.8
exec_always xinput set-prop 11 'libinput Accel Speed' 0.8
exec_always xinput set-prop 11 'libinput Accel Speed' 0.8
# exec_always feh --bg-scale /home/dan/Pictures/wallpaper/.cache/current_wallpaper.png
exec_always nitrogen --restore
#exec_always compton --config ~/.config/i3/compton.conf
Expand Down Expand Up @@ -364,24 +369,16 @@ exec_always --no-startup-id python3 ~/Documents/install/center-mouse/i3-center-m
bindsym XF86Display exec arandr
bindsym XF86Messenger exec xpad -n

exec_always ( killall oneko || true ) && oneko -tofocus -position +30+0
exec_always ( killall oneko || true ) && oneko -tofocus -position +50+0
exec $HOME/.config/i3/battery.sh

for_window [class="xpad" instance="xpad"] floating enable

exec xpad
exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
# bindsym $mod+c exec deepin-calculator
bindsym $mod+n exec xpad -n

bindsym $mod+c exec deepin-calculator
bindsym $mod+n exec xpad -n


bindsym $mod+Shift+Ctrl+l exec sleep 0.5 && xdotool type https://www.linkedin.com/in/danhabot/
bindsym $mod+Ctrl+g exec sleep 0.5 && xdotool type https://github.com/danhab99
bindsym $mod+Ctrl+e exec sleep 0.5 && xdotool type [email protected]

bindsym $mod+Ctrl+a exec playerctl previous
bindsym $mod+Ctrl+d exec playerctl next
bindsym $mod+Ctrl+w exec amixer -D pulse sset Master 5%+
bindsym $mod+Ctrl+s exec amixer -D pulse sset Master 5%-
# bindsym $mod+Ctrl+l exec sleep 0.5 && xdotool type https://www.linkedin.com/in/danhabot/
# bindsym $mod+Ctrl+g exec sleep 0.5 && xdotool type https://github.com/danhab99
# bindsym $mod+Ctrl+e exec sleep 0.5 && xdotool type [email protected]
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions config/i3/_i3_/lock.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
set +x
dunstctl set-paused true
MEDIA_STATUS=$(playerctl status)
playerctl pause

#i3lock -t -i "$(grep -P -o '(?<=file=).*' ~/.config/nitrogen/bg-saved.cfg)" -n
betterlockscreen -l

dunstctl set-paused false

if [ "$MEDIA_STATUS" == "Playing" ]; then
playerctl play
fi
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 0 additions & 14 deletions config/i3/lock.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit bac7525

Please sign in to comment.