Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
beaussan committed Oct 16, 2018
1 parent 7e34d0e commit 1c6a6cf
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 26 deletions.
4 changes: 3 additions & 1 deletion general/i3config
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ assign [class="Google-chrome"] $workspace2
assign [class="Slack"] $workspace5
assign [class="Spotify"] $workspace5
assign [class="GitKraken"] $workspace1
assign [class="TelegramDesktop"] $workspace1


# HIDE EDGE BORDERS
Expand Down Expand Up @@ -196,8 +197,9 @@ gaps inner 10
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle

exec --no-startup-id feh --bg-scale ~/.dotfiles/laptop/wall.jpg
#exec --no-startup-id feh --bg-scale ~/.dotfiles/laptop/wall.jpg
#exec --no-startup-id xautolock -time 10 -locker /home/mathieu/scripts/lock.sh -secure
exec --no-startup-id ~/scripts/random_wallpaper.sh
exec --no-startup-id xautolock -time 10 -locker ~/scripts/lock.sh -secure
exec --no-startup-id exec compton -cb --config .compton.conf
exec --no-startup-id exec compton -cb --config .compton.conf
Expand Down
13 changes: 12 additions & 1 deletion general/polybar.config
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ font-4 = MaterialIcons:size=10;-1

modules-left = i3
modules-center = xwindow
modules-right = volume pkg date Shutdown
modules-right = volume pkg date background Shutdown

tray-detached = false
tray-position = right
Expand Down Expand Up @@ -400,6 +400,17 @@ click-middle = xdotool key super+shift+e
format-padding = 1
format-foreground = ${colors.secondary}

[module/background]
type = custom/script
exec = echo ""
click-left = ~/scripts/random_wallpaper.sh
click-right = ~/scripts/random_wallpaper.sh
click-middle = ~/scripts/random_wallpaper.sh
format-padding = 1
format-foreground = ${colors.secondary}



[global/wm]
margin-top = 5
margin-bottom = 5
Expand Down
26 changes: 3 additions & 23 deletions general/scripts/lock.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
#!/bin/bash

cd "/home/beaussan/.i3/"

icon="$HOME/.i3/pad.png"

tmpbg='/tmp/screen.png'

# (( $# )) && { icon=$1; }

scrot "$tmpbg"
notify-send --urgency low "Locking..."
convert "$tmpbg" -scale 10% -scale 1000% "$tmpbg"
convert "$tmpbg" "$icon" -gravity center -composite -matte "$tmpbg"
i3lock -i "$tmpbg" --textcolor=eee8d5ff --ringcolor=07364295 --keyhlcolor=268bd295 --bshlcolor=dc322f95 --insidecolor=002b3695 --insidevercolor=268bd295 --ringvercolor=268bd295 --insidewrongcolor=dc322f95 --ringwrongcolor=dc322f95 --linecolor=07364295 --separatorcolor=07364295;


#import -silent -window root lock.png;
#notify-send --urgency low "Locking..."
#convert lock.png -scale 25% -blur 0x20 -scale 400% lock.png;
#convert lock.png -scale 10% -scale 1000% lock.png;
#composite -gravity center pad.png lock.png lock.png;

#i3lock -i lock.png --textcolor=eee8d5ff --ringcolor=07364295 --keyhlcolor=268bd295 --bshlcolor=dc322f95 --insidecolor=002b3695 --insidevercolor=268bd295 --ringvercolor=268bd295 --insidewrongcolor=dc322f95 --ringwrongcolor=dc322f95 --linecolor=07364295 --separatorcolor=07364295;
scrot /tmp/screenshot.png
convert /tmp/screenshot.png -blur 0x5 /tmp/screenshotblur.png
i3lock -b -i /tmp/screenshotblur.png

5 changes: 5 additions & 0 deletions general/scripts/lock.sh.save
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
scrot /tmp/screenshot.png
convert /tmp/screenshot.png -blur 0x5 /tmp/screenshotblur.png
i3lock -b -i /tmp/screenshotblur.png

4 changes: 4 additions & 0 deletions general/scripts/random_wallpaper.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
FILE=/tmp/wallpaper.jpg
wallhaven forest --no-people --no-anime -r -o $FILE
feh --bg-scale $FILE
3 changes: 2 additions & 1 deletion general/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ zmodload zsh/complist

plugins=(git common-aliases gradle mvn alias-tips gitignore zsh-autosuggestions yarn zsh-syntax-highlighting)

export PATH="~/.npm-global/bin:$PATH:/usr/lib/jvm/default/bin/:~/bin/"
export PATH="~/scripts:~/bin:~/.npm-global/bin:$PATH:/usr/lib/jvm/default/bin/:~/bin/"



Expand Down Expand Up @@ -67,3 +67,4 @@ source /usr/share/nvm/init-nvm.sh

# added by travis gem
[ -f /home/beaussan/.travis/travis.sh ] && source /home/beaussan/.travis/travis.sh
source /usr/share/zsh/site-functions/git-flow-completion.zsh

0 comments on commit 1c6a6cf

Please sign in to comment.