diff --git a/.config/systemd/user/interfacelift.service b/.config/systemd/user/interfacelift.service index f244afd..ac273f2 100644 --- a/.config/systemd/user/interfacelift.service +++ b/.config/systemd/user/interfacelift.service @@ -3,7 +3,7 @@ Description=Download new wallpaper [Service] Type=forking -ExecStart=/home/user/scripts/bash/interfaceliftdownloader/interfacelift.sh -c /home/user/scripts/bash/interfaceliftdownloader/wallpaper.conf +ExecStart=/home/user/dev/git/interfaceliftdownloader/interfacelift.sh -c /home/user/dev/git/interfaceliftdownloader/wallpaper.conf [Install] WantedBy=default.target diff --git a/.i3/config b/.i3/config index 79d5f78..23ccef8 100644 --- a/.i3/config +++ b/.i3/config @@ -1,52 +1,30 @@ -# This file has been auto-generated by i3-config-wizard(1). -# It will not be overwritten, so edit it as you like. -# -# Should you change your keyboard layout some time, delete -# this file and re-run i3-config-wizard(1). -# - # i3 config file (v4) # # Please see http://i3wm.org/docs/userguide.html for a complete reference! +# mod key set $mod Mod4 -# Font for window titles. Will also be used by the bar unless a different font -# is used in the bar {} block below. +# fonts font pango: hack, Icons 10 # resolv i3 transparancy bug new_window pixel -# This font is widely installed, provides lots of unicode glyphs, right-to-left -# text rendering and scalability on retina/hidpi displays (thanks to pango). -#font pango:DejaVu Sans Mono 8 +# start a terminal +bindsym $mod+Return exec urxvtc -# Before i3 v4.8, we used to recommend this one as the default: -# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 -# The font above is very space-efficient, that is, it looks good, sharp and -# clear in small sizes. However, its unicode glyph coverage is limited, the old -# X core fonts rendering does not support right-to-left and this being a bitmap -# font, it doesn’t scale on retina/hidpi displays. +# start dmenu +bindsym $mod+d exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p '>' -b -w 400 -q -o 0.9" + +############################################################################################################################# # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod -# start a terminal -#bindsym $mod+Return exec i3-sensible-terminal -bindsym $mod+Return exec urxvtc - # kill focused window bindsym $mod+Shift+a kill -# start dmenu (a program launcher) -# bindsym $mod+d exec dmenu_run -# There also is the (new) i3-dmenu-desktop which only displays applications -# shipping a .desktop file. It is a wrapper around dmenu, so you need that -# installed. - -bindsym $mod+d exec --no-startup-id j4-dmenu-desktop --dmenu="dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p '>' -b -w 400 -q -o 0.9" - # change focus bindsym $mod+j focus left bindsym $mod+k focus down @@ -97,86 +75,100 @@ bindsym $mod+q focus parent # focus the child container #bindsym $mod+d focus child +#scratchpad +bindsym $mod+twosuperior scratchpad show +bindsym $mod+Shift+twosuperior move scratchpad + +#Swith with same key to precedent workspace +workspace_auto_back_and_forth yes + +############################################################################################################################# + # set workspace names set $tag1 "1:" set $tag2 "2:" set $tag3 "3:" set $tag4 "4:" -set $tag5 "5:" -set $tag6 "6:" -set $tag7 "7:" -set $tag8 "8:" -set $tag9 "9:" -set $tag10 "10:" +set $tag5 "5:" +set $tag6 "6:" +set $tag7 "7:" +set $tag8 "8:" +set $tag9 "9:" +set $tag10 "10:" # exec startup apps exec --no-startup-id i3-msg 'workspace $tag1; exec firefox' -exec --no-startup-id i3-msg 'workspace $tag2; exec urxvtc -e ~/scripts/bash/sshaddmotd/motdprint.sh && urxvtc; workspace $tag1' +exec --no-startup-id i3-msg 'workspace $tag2; exec urxvtc -e ~/dev/bash/sshaddmotd/motdprint.sh && urxvtc; workspace $tag1' exec --no-startup-id i3-msg 'workspace $tag3; exec thunderbird; workspace $tag1' -exec --no-startup-id i3-msg 'workspace $tag4; exec urxvtc -e screen -rd weechat; workspace $tag2' +exec --no-startup-id i3-msg 'workspace $tag4; exec urxvtc -e screen -rd weechat; workspace $tag1' +exec --no-startup-id i3-msg 'workspace $tag5; exec google-chrome-stable --app=http://127.0.0.1/ompd; workspace $tag2' + +#colors +# class border backgr. text indicator child_border +client.focused #FFFFFF #A4A4A4 #000000 #ffffff #333333 +client.focused_inactive #333333 #5f676a #ffffff #484e50 #000000 +client.unfocused #333333 #222222 #888888 #292d2e #222222 +client.urgent #2f343a #900000 #ffffff #900000 #900000 +client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c + +############################################################################################################################# -################################################################################### #zmenu bindsym $mod+Shift+q exec ~/.i3/zmenu.sh #wappslocalmenu -bindsym $mod+Control+Left exec ~/.i3/wappslocalmenu.sh +bindsym $mod+x exec ~/.i3/wappslocalmenu.sh -#wappslocalmenu -bindsym $mod+Control+Right exec ~/.i3/wappsmenu.sh - -#screenbug -bindsym $mod+Control+x exec ~/screenbug.sh - -# lock screen -#bindsym $mod+Control+Delete exec "~/.i3/i3lock-fancy-multimonitor/lock" +#wappsmenu +bindsym $mod+w exec ~/dev/git/dmenu2-web/launcher.sh # apps bindsym $mod+Control+t exec thunar bindsym $mod+Control+w exec wicd-client -n -# class confs +# by class +## floatings for_window [class="Cssh"] floating enable, border normal for_window [class="XTerm"] floating enable, border normal for_window [class="feh"] floating enable, border normal -#for_window [class="Hedgewars"] move to workspace $tag5, layout tabbed -#for_window [class="Pavucontrol"] move scratchpad -#for_window [class="Cadence"] move scratchpad -for_window [class="Wine"] move to workspace $tag6 -for_window [class="Virt-manager"] move to workspace $tag7, layout tabbed -for_window [class="Bitwig Studio"] move to workspace $tag10 -#for_window [class="Conky"] floating enable, border none -#for_window [class="Conky"] move scratchpad, scratchpad show +## workspace 5 +for_window [class="127.0.0.1__ompd"] move to workspace $tag5, layout tabbed +for_window [class="Spotify"] move to workspace $tag5 +## workspace 6 +for_window [class="localhost__transmission_web"] move to workspace $tag6, layout tabbed +for_window [class="nicotine.py"] move to workspace $tag6, layout tabbed +## workspace 7 +for_window [class="www.netflix.com"] move to workspace $tag7, layout tabbed +## workspace 8 +for_window [class="Hedgewars"] move to workspace $tag8, layout tabbed +## workspace 10 +for_window [class="Pavucontrol"] move to workspace $tag10 +for_window [class="Cadence"] move to workspace $tag10 +for_window [class="wicd-client.py"] move to workspace $tag10 #mpd controls -bindsym $mod+Control+Down exec ~/.i3/mpcmenu.sh -bindsym $mod+Control+Up exec ~/scripts/bash/lyricsdownloader/graphicalrapgenius.sh -#bindsym $mod+Control+Prior exec "cd ~/scripts/bash/interfaceliftdownloader/ ; ./interfacelift.sh -c ./wallpaper.conf ; ./interfacelift.sh -c ./wallpaper_DP1-1.conf ; ./interfacelift.sh -c ./wallpaper_HDMI1.conf ; ./interfacelift.sh -c ./wallpaper_HDMI2.conf" -bindsym $mod+Control+Prior exec "cd ~/scripts/bash/interfaceliftdownloader/ ; ./interfacelift.sh -c ./wallpaper.conf" -bindsym $mod+Control+Next exec ~/scripts/bash/interfaceliftdownloader/interfacelift.sh -sc ~/scripts/bash/interfaceliftdownloader/wallpaper.conf +bindsym $mod+Control+Left exec mpc prev +bindsym $mod+Control+Down exec mpc toggle +bindsym $mod+Control+Right exec mpc next +bindsym $mod+Control+Up exec ~/dev/git/lyricsdownloader/graphicalrapgenius.sh +bindsym $mod+Control+Prior exec "cd ~/dev/git/interfaceliftdownloader/ ; ./interfacelift.sh -c ./wallpaper.conf" +bindsym $mod+Control+Next exec ~/dev/git/interfaceliftdownloader/interfacelift.sh -sc ~/dev/git/interfaceliftdownloader/wallpaper.conf #toggle workspace's display screen bindsym $mod+less move workspace to output left bindsym $mod+Shift+less move workspace to output right #assign workspace to screens -workspace $tag1 output DP1-1 -workspace $tag2 output eDP1 -workspace $tag3 output eDP1 -workspace $tag4 output eDP1 -workspace $tag5 output eDP1 -workspace $tag6 output DP1-1 -workspace $tag7 output DP1-1 -workspace $tag8 output DP1-1 -workspace $tag9 output eDP1 -workspace $tag10 output DP1-2 - -#scratchpad -bindsym $mod+twosuperior scratchpad show -bindsym $mod+Shift+twosuperior move scratchpad - -#Swith with same key to precedent workspace -#workspace_auto_back_and_forth yes +workspace $tag1 output DP-1-1 +workspace $tag2 output eDP-1 +workspace $tag3 output eDP-1 +workspace $tag4 output eDP-1 +workspace $tag5 output eDP-1 +#workspace $tag6 output DP-1-1 +#workspace $tag7 output DP-1-1 +#workspace $tag8 output DP-1-1 +#workspace $tag9 output eDP-1 +#workspace $tag10 output DP-1-2 ################################################################################### @@ -213,18 +205,11 @@ bindsym $mod+Shift+r restart # resize window (you can also use the mouse for that) mode "resize" { - # These bindings trigger as soon as you enter the resize mode - - # Pressing left will shrink the window’s width. - # Pressing right will grow the window’s width. - # Pressing up will shrink the window’s height. - # Pressing down will grow the window’s height. bindsym j resize shrink width 10 px or 10 ppt bindsym k resize grow height 10 px or 10 ppt bindsym l resize shrink height 10 px or 10 ppt bindsym m resize grow width 10 px or 10 ppt - # same bindings, but for the arrow keys bindsym Left resize shrink width 10 px or 10 ppt bindsym Down resize grow height 10 px or 10 ppt bindsym Up resize shrink height 10 px or 10 ppt @@ -237,8 +222,7 @@ mode "resize" { bindsym $mod+r mode "resize" -# Start i3bar to display a workspace bar (plus the system information i3status -# finds out, if available) +# i3bars bar { position top strip_workspace_numbers yes diff --git a/.i3/conkyrc-top b/.i3/conkyrc-top index 1c3cbcd..3130600 100644 --- a/.i3/conkyrc-top +++ b/.i3/conkyrc-top @@ -57,12 +57,12 @@ ${if_match "${execi 120 ping -q -w 2 -c 1 176.34.135.167 > /dev/null && echo ok} {"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\ $endif - #WEATHER -# {"full_text":"${execi 1800 ~/.i3/weather.sh | cut -d' ' -f1} ","color":"\#c5c5c5","separator":false,"separator_block_width":0},\ -# {"full_text":" ${execi 1800 ~/.i3/weather.sh | cut -d' ' -f2}","color":"\#4285F4","separator":false,"separator_block_width":0},\ -# {"full_text":" ${execi 1800 ~/.i3/weather.sh | cut -d' ' -f3}","color":"\#c5c5c5","separator":false,"separator_block_width":0},\ -# {"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":20},\ - + #PIP + ${if_match "${execi 1900 pip list --outdated --timeout 1 --retries 1 | wc -l}"!="0"}\ + {"full_text":" ${execi 1900 pip list --outdated --timeout 1 --retries 1| wc -l}","color":"\#E7AD00","separator":false,"separator_block_width":0},\ + #SEPARATOR + {"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\ + $endif $endif #VOLUME @@ -85,7 +85,7 @@ $endif {"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\ #BACKLIGHT -{"full_text":"  ${exec xbacklight -get | cut -d"." -f1}","color":"\#c5c5c5","separator":false,"separator_block_width":6},\ +{"full_text":"  ${exec light -G | cut -d"." -f1}","color":"\#c5c5c5","separator":false,"separator_block_width":6},\ #SEPARATOR {"full_text":" ","color":"\#2aa198","separator":false,"separator_block_width":15},\ @@ -116,7 +116,7 @@ $endif #VPN CONNECTED ${if_match "${exec ip address show | grep tun}" != "" }\ -{"full_text":" VPN","color":"\#F15D25","separator":false,"separator_block_width":6},\ +{"full_text":"  VPN","color":"\#F15D25","separator":false,"separator_block_width":6},\ $endif #TOR CONNECTED diff --git a/.i3/mpcmenu.sh b/.i3/mpcmenu.sh deleted file mode 100755 index e90a1d7..0000000 --- a/.i3/mpcmenu.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash -action=$(echo -e "toggle\nprev\nnext" | dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p "mpc >" -w 150 -o 0.9 -y 21 -l 3) -if [[ "$action" == "toggle" ]] -then - mpc toggle -fi - -if [[ "$action" == "prev" ]] -then - mpc prev -fi - -if [[ "$action" == "next" ]] -then - mpc next -fi diff --git a/.i3/wappslocalmenu.sh b/.i3/wappslocalmenu.sh index f950199..11369cd 100755 --- a/.i3/wappslocalmenu.sh +++ b/.i3/wappslocalmenu.sh @@ -1,5 +1,5 @@ #!/bin/bash -action=$(echo -e "ompd\ntransmission" | dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p "wapps >" -w 190 -o 0.9 -y 21 -l 2) +action=$(echo -e "ompd\nspotify\ntransmission\nnicotine\nstreamstudio\nnetflix\nmps-youtube" | dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p "wapps >" -w 190 -o 0.9 -y 21 -l 7) if [[ "$action" == "ompd" ]] then @@ -11,3 +11,27 @@ then /usr/bin/google-chrome-stable --app="http://localhost:9091/transmission/web/" fi +if [[ "$action" == "streamstudio" ]] +then + streamstudio +fi + +if [[ "$action" == "netflix" ]] +then + /usr/bin/google-chrome-stable --app="https://www.netflix.com" +fi + +if [[ "$action" == "mps-youtube" ]] +then + urxvtc -e mpsyt +fi + +if [[ "$action" == "nicotine" ]] +then + nicotine.py +fi + +if [[ "$action" == "spotify" ]] +then + blockify +fi diff --git a/.i3/wappsmenu.sh b/.i3/wappsmenu.sh deleted file mode 100755 index 7009e72..0000000 --- a/.i3/wappsmenu.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -urll=$(echo -e | dmenu -fn 'hack-10' -h 20 -nb '#202020' -nf '#FFFFFF' -sf '#dc322f' -sb '#202020' -p "gsearch >" -w 500 -o 0.9 -y 21 -q) - -lucky(){ url=$(echo "http://www.google.com/search?hl=en&q=$@&btnI=I%27m+Feeling+Lucky&aq=f&oq=" | sed 's/ /+/g'); google-chrome-stable --app=$url; }; - -if [[ $urll != "" ]] -then - lucky $urll -fi diff --git a/.vimrc b/.vimrc index add179d..2a2f63d 100644 --- a/.vimrc +++ b/.vimrc @@ -8,6 +8,8 @@ syntax on set background=dark colorscheme solarized hi Normal ctermbg=none +let g:solarized_termtrans=1 +" highlight NonText ctermbg=none " no tab when pasting " set paste " mouse selection to not have line numbers diff --git a/.xbindkeysrc b/.xbindkeysrc index befff0d..12338a7 100644 --- a/.xbindkeysrc +++ b/.xbindkeysrc @@ -49,11 +49,11 @@ m:0x0 + c:123 XF86AudioRaiseVolume -"xbacklight -dec 5" +"light -U 5" m:0x0 + c:232 XF86MonBrightnessDown -"xbacklight -inc 5" +"light -A 5" m:0x0 + c:233 XF86MonBrightnessUp diff --git a/.xinitrc b/.xinitrc index 2235951..23f77e6 100644 --- a/.xinitrc +++ b/.xinitrc @@ -34,5 +34,5 @@ fi # source .xprofile [ -f ~/.xprofile ] && source ~/.xprofile -exec i3 -#exec i3 -V >> ~/i3log-$(date +'%F-%k-%M-%S') 2>&1 +#exec i3 +exec i3 -V >> ~/i3log-$(date +'%F-%k-%M-%S') 2>&1 diff --git a/.xprofile b/.xprofile index 69fc2a4..cdcde0e 100644 --- a/.xprofile +++ b/.xprofile @@ -2,7 +2,8 @@ urxvtd -q -o -f & #compton launch -compton -GCb --config $HOME/.i3/compton.conf & +#compton -GCb --config $HOME/.i3/compton.conf & +compton --backend glx --vsync opengl-swc -GCb --config $HOME/.i3/compton.conf & #set background feh --bg-scale ~/img/wallpaper/current_wp.jpg & diff --git a/.zshrc b/.zshrc index a81b973..5eba94f 100644 --- a/.zshrc +++ b/.zshrc @@ -13,8 +13,10 @@ alias zshconfig="vi ~/.zshrc_node" alias zshconfig_global="vi ~/.zshrc" alias vimconfig="vi ~/.vimrc" alias sshconfig="vi ~/.ssh/config" -alias lh="du -hsc * | sort -hr" -alias lha="du -hsc .* | sort -hr" +alias lh="du -hs * | sort -h" +alias lha="du -hs .* | sort -h" +alias lhs="(lh;lha) | sort -h" +#lhs() { for list in $(ls -a | sed 's/\ /\\ /g'); do du -hs $list; done | sort -hr } alias sprunge="curl -F 'sprunge=<-' http://sprunge.us" alias ix="curl -s -F 'f:1=<-' ix.io" alias upics="curl -F c=@- https://ptpb.pw <" @@ -22,6 +24,7 @@ alias vi="vim" alias sudo="sudo " alias installed="pacman -Qqen" alias tmux="tmux -2" +chromeapp() { google-chrome-stable --app=$1 } #exports export EDITOR='vim' @@ -43,6 +46,7 @@ export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" source ~/.zshrc_node #zshconf +autoload -U zmv plugins=(git python) source $ZSH/oh-my-zsh.sh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh