Added scripts from home and fixed deploy

This commit is contained in:
Pavel Kachalouski
2019-04-21 11:30:33 +02:00
parent fc0e2cc500
commit 4ff1b7524c
5 changed files with 12 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
rsync -rp $HOME/scripts .
rsync -rp $HOME/.config/i3 .
rsync -rp /etc/nixos .

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
rsync -rp i3 $HOME/.config/i3
rsync -rp nixos /etc/nixos
rsync -rp scripts $HOME
rsync -rp i3 $HOME/.config
#rsync -rp nixos /etc

View File

@@ -180,7 +180,7 @@ bindsym $mod+i exec idea-community
bindsym $mod+o exec firefox
bindsym $mod+g exec gedit
bindsym $mod+n exec nautilus
bindsym $mod+l exec '/home/nnm/Apps/lock.sh'
bindsym $mod+l exec '$HOME/scripts/lock.sh'
# audio
bindsym XF86AudioRaiseVolume exec "pactl set-sink-mute 0 false ; pactl set-sink-volume 0 +5%"
@@ -229,4 +229,4 @@ exec --no-startup-id firefox
exec --no-startup-id st -f "Liberation Mono:pixelsize=16:antialias=true:autohint=true"
exec --no-startup-id telegram-desktop
exec --no-startup-id mattermost-desktop
exec --no-startup-id xautolock -time 10 -locker '/home/nnm/Apps/lock.sh'
exec --no-startup-id xautolock -time 10 -locker '$HOME/scripts/lock.sh'

View File

@@ -139,8 +139,7 @@
unrar
tcpdump
tcpflow
falkon
androidenv.androidPkgs_9_0.platform-tools
#androidenv.androidPkgs_9_0.platform-tools
(python2.withPackages(ps: with ps; [ virtualenvwrapper jenkins-job-builder ]))
];

5
scripts/lock.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env bash
scrot /tmp/screen-000.png
convert /tmp/screen-000.png -scale 10% -scale 1000% /tmp/screen-000.png
i3lock -n -t -i /tmp/screen-000.png