From 7e2a6d3aa56f69959525fecb89192f340b25ccbf Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Mon, 22 Mar 2021 09:04:33 +0100 Subject: [PATCH] dock and undock scripts --- cal/.config/khal/config | 1 - shell/.local/bin/tmuxmail | 3 +-- vim/.vim/spell/en.utf-8.add | 2 ++ x/.local/bin/dock.sh | 8 ++++++++ x/.local/bin/scr | 2 +- x/.local/bin/undock.sh | 11 +++++++++++ x/.local/bin/xrandr-merge-hdmi.sh | 0 7 files changed, 23 insertions(+), 4 deletions(-) create mode 100755 x/.local/bin/dock.sh create mode 100755 x/.local/bin/undock.sh mode change 100644 => 100755 x/.local/bin/xrandr-merge-hdmi.sh diff --git a/cal/.config/khal/config b/cal/.config/khal/config index 737bbbd..1b50244 100644 --- a/cal/.config/khal/config +++ b/cal/.config/khal/config @@ -40,7 +40,6 @@ longdatetimeformat = %Y-%m-%d %H:%M firstweekday = 0 [default] -default_command = calendar default_calendar = mart show_all_days = True diff --git a/shell/.local/bin/tmuxmail b/shell/.local/bin/tmuxmail index 839abc1..a0ff713 100755 --- a/shell/.local/bin/tmuxmail +++ b/shell/.local/bin/tmuxmail @@ -2,8 +2,7 @@ tmux -f ~/.config/tmux/config\ new-session -s mail -d 'update && offlineimap' \;\ new-window 'mutt' \;\ - new-window 'ssh helheim' \;\ - new-window 'newsboat -r' \;\ + new-window 'ssh ygdrassil' \;\ new-session -s work \;\ attach-session -t mail \;\ select-window -t:1 diff --git a/vim/.vim/spell/en.utf-8.add b/vim/.vim/spell/en.utf-8.add index 7d3d1b2..dc2deae 100644 --- a/vim/.vim/spell/en.utf-8.add +++ b/vim/.vim/spell/en.utf-8.add @@ -26,3 +26,5 @@ typeclasses datatypes deserialization tagless +Brightspace +GitLab diff --git a/x/.local/bin/dock.sh b/x/.local/bin/dock.sh new file mode 100755 index 0000000..16178c7 --- /dev/null +++ b/x/.local/bin/dock.sh @@ -0,0 +1,8 @@ +#!/bin/sh +sudo ifdown enp0s31f6 +sudo ifdown wlp1s0 +sudo ifup enp0s31f6 +xrandr-extend-hdmi.sh +setxkbmap -option +setxkbmap dvorak,ru ,phonetic_dvorak compose:ralt,grp:shifts_toggle,grp_led:scroll +mount /mnt/data diff --git a/x/.local/bin/scr b/x/.local/bin/scr index ab6e6c2..bcbbda3 100755 --- a/x/.local/bin/scr +++ b/x/.local/bin/scr @@ -1,5 +1,5 @@ #!/bin/sh -e [ "$#" -ne 1 ] && CROP="" || CROP="-window root" URL="scr/$(date +%F_%H-%M-%S).png" -import $CROP png:- | ssh helheim cat \> /var/www/martlubbers.net/$URL +import $CROP png:- | ssh helheim2 cat \> /var/www/martlubbers.net/$URL echo "http://martlubbers.net/$URL" | cloo.gl | xclip -f | xargs -I{} notify-send {} diff --git a/x/.local/bin/undock.sh b/x/.local/bin/undock.sh new file mode 100755 index 0000000..6b3e0af --- /dev/null +++ b/x/.local/bin/undock.sh @@ -0,0 +1,11 @@ +#!/bin/sh +sudo ifdown enp0s31f6 +sudo ifdown wlp1s0 +sudo ifup wlp1s0 +xrandr-only-laptop.sh +setxkbmap -option +setxkbmap dvorak,ru ,phonetic_dvorak ctrl:swapcaps,compose:ralt,grp:shifts_toggle,grp_led:scroll +if mountpoint /mnt/data +then + umount /mnt/data +fi diff --git a/x/.local/bin/xrandr-merge-hdmi.sh b/x/.local/bin/xrandr-merge-hdmi.sh old mode 100644 new mode 100755 -- 2.20.1