Move to scripts dir and edit autostart script

This commit is contained in:
samedamci 2020-03-22 14:43:49 +01:00
parent 270b1a62b6
commit 1125ab4372
6 changed files with 28 additions and 42 deletions

View File

@ -2,8 +2,8 @@
LocationMode=path-bar LocationMode=path-bar
ShowHidden=true ShowHidden=true
ShowSizeColumn=true ShowSizeColumn=true
GeometryX=540 GeometryX=538
GeometryY=237 GeometryY=223
GeometryWidth=840 GeometryWidth=840
GeometryHeight=630 GeometryHeight=630
SortColumn=name SortColumn=name

View File

@ -120,7 +120,8 @@ let g:fzf_colors =
\ 'spinner': ['fg', 'Label'], \ 'spinner': ['fg', 'Label'],
\ 'header': ['fg', 'Comment'] } \ 'header': ['fg', 'Comment'] }
let g:fzf_layout = { 'down': '~20%' } let g:fzf_layout = { 'down': '~40%' }
let g:fzf_preview_window = 'right:60%'
" gitgutter " gitgutter
set updatetime=1000 set updatetime=1000

View File

@ -1,6 +1,6 @@
[FileDialog] [FileDialog]
history=file:///home/samedamci/Pictures/Screenshots, file:///home/samedamci/.scripts/rofi-keepassxc history=file:///home/samedamci/Pictures/Screenshots, file:///home/samedamci/.scripts/rofi-keepassxc, file:///home/samedamci/Pictures
lastVisited=file:///home/samedamci/.scripts/rofi-keepassxc lastVisited=file:///home/samedamci/Pictures/Screenshots
qtVersion=5.14.1 qtVersion=5.14.1
shortcuts=file:, file:///home/samedamci shortcuts=file:, file:///home/samedamci
sidebarWidth=90 sidebarWidth=90

View File

@ -5,55 +5,39 @@
# | (_| | |_| | || (_) \__ \ || (_| | | | |_ # | (_| | |_| | || (_) \__ \ || (_| | | | |_
# \__,_|\__,_|\__\___/|___/\__\__,_|_| \__| # \__,_|\__,_|\__\___/|___/\__\__,_|_| \__|
#~~~~~~ # Load .Xresources
# APPS xrdb ~/.Xresources
#~~~~~~ # Wallpaper
# MPD feh --bg-fill --randomize /home/samedamci/.config/wallpapers/1920x1080/ &
killall -q mpd
while pgrep -u $UID -x mpd >/dev/null; do sleep 1; done # Polybar
mpd &
# POLYBAR
killall -q polybar killall -q polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
polybar polybarexe & polybar polybarexe &
# SXHKD # Polybar
killall -q sxhkd killall -q sxhkd
while pgrep -u $UID -x sxhkd >/dev/null; do sleep 1; done while pgrep -u $UID -x sxhkd >/dev/null; do sleep 1; done
sxhkd & sxhkd &
# DUNST # Dunst
killall -q dunst killall -q dunst
while pgrep -u $UID -x dunst >/dev/null; do sleep 1; done while pgrep -u $UID -x dunst >/dev/null; do sleep 1; done
dunst & dunst &
# LXSESSION # Picom
killall -q lxsession
while pgrep -u $UID -x lxsession >/dev/null; do sleep 1; done
lxsession &
# PICOM
killall -q picom killall -q picom
while pgrep -u $UID -x picom >/dev/null; do sleep 1; done while pgrep -u $UID -x picom >/dev/null; do sleep 1; done
picom & picom &
# TELEGRAM
kkillall -q telegram-desktop
while pgrep -u $UID -x telegram-desktop >/dev/null; do sleep 1; done
telegram-desktop &
#~~~~~~~ # Set keyboard layout & key swaping
# OTHER
#~~~~~~~
# Welcome notify
dunstify "Hello ${USER}!"
# Wallpaper
feh --bg-fill --randomize /home/samedamci/.config/wallpapers/1920x1080/ &
# Keyboard layout & key swaping
setxkbmap -layout 'pl' -option caps:swapescape & setxkbmap -layout 'pl' -option caps:swapescape &
# Cursor # Cursor
xsetroot -cursor_name left_ptr & # change the cursor shape from "x" to normal xsetroot -cursor_name left_ptr & # change the cursor shape from "x" to normal
# Refresh .Xresources
xrdb ~/.Xresources
# udiskie
killall -q udiskie
while pgrep -u $UID -x udiskie >/dev/null; do sleep 1; done
udiskie &
# clipmenud
clipmenud &
# Not reload
[[ -z $(pgrep udiskie) ]] && udiskie &
[[ -z $(pgrep clipmenud) ]] && clipmenud &
[[ -z $(pgrep mpd) ]] && mpd &
[[ -z $(pgrep dunst) ]] && dunst &
telegram-desktop &
# Welcome notify
dunstify "Hello ${USER}!"

View File

@ -1,10 +1,10 @@
#!/usr/bin/env sh #!/usr/bin/env sh
bookmarks="redd.it\narch wiki\ninvidio.us\ngithub\ngitlab\ndotfiles\npython doc\nvulcan" bookmarks="redd.it\narch wiki\ninvidio.us\ngithub\ngitlab\ndotfiles\npython doc\nvulcan"
PHRASE=$(printf "${bookmarks}" | dmenu -h 24 -p "Web search:") PHRASE="$(printf "${bookmarks}" | dmenu -h 24 -p "Web search:")"
case "$PHRASE" in case "$PHRASE" in
"redd.it") PG="https://old.reddit.com" ;; "redd.it") PG="https://reddit.com" ;;
"arch wiki") PG="https://wiki.archlinux.org" ;; "arch wiki") PG="https://wiki.archlinux.org" ;;
"invidio.us") PG="https://invidio.us" ;; "invidio.us") PG="https://invidio.us" ;;
"github") PG="https://github.com" ;; "github") PG="https://github.com" ;;

View File

@ -70,6 +70,7 @@ alias mirrors='sudo reflector --latest 200 --protocol http --protocol https --so
alias copy='xclip -selection clipboard' alias copy='xclip -selection clipboard'
alias battery='upower -i /org/freedesktop/UPower/devices/battery_BAT0' alias battery='upower -i /org/freedesktop/UPower/devices/battery_BAT0'
alias c256='(x=`tput op` y=`printf %76s`;for i in {0..256};do o=00$i;echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}$x;done)' alias c256='(x=`tput op` y=`printf %76s`;for i in {0..256};do o=00$i;echo -e ${o:${#o}-3:3} `tput setaf $i;tput setab $i`${y// /=}$x;done)'
alias ...='cd ~/Dotfiles'
#~~~~~~~~~~~~~~~~~ #~~~~~~~~~~~~~~~~~
# Commands Colors # Commands Colors