summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-04-12 15:16:39 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2022-04-12 15:16:39 +0200
commita2ca771a797a295938a0ebae7f88f1173a8101c7 (patch)
tree35318f84ef85ba4cb2daf738d914563547316c8c /.local
parentNew script to show date as notification; (diff)
downloaddotfiles-bsd-a2ca771a797a295938a0ebae7f88f1173a8101c7.tar.gz
dotfiles-bsd-a2ca771a797a295938a0ebae7f88f1173a8101c7.tar.bz2
dotfiles-bsd-a2ca771a797a295938a0ebae7f88f1173a8101c7.tar.xz
dotfiles-bsd-a2ca771a797a295938a0ebae7f88f1173a8101c7.tar.zst
dotfiles-bsd-a2ca771a797a295938a0ebae7f88f1173a8101c7.zip
update
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/kb1
-rwxr-xr-x.local/bin/scrwork7
-rwxr-xr-x.local/bin/setscreens.sh19
3 files changed, 14 insertions, 13 deletions
diff --git a/.local/bin/kb b/.local/bin/kb
index 0ebc0be..89bd4dc 100755
--- a/.local/bin/kb
+++ b/.local/bin/kb
@@ -46,6 +46,7 @@
xset r rate 200 150
setxkbmap -layout us,fr -option grp:alt_shift_toggle
+setxkbmap -option ctrl:swapcaps
setxkbmap -option caps:none
xmodmap -e 'keycode 9 = Tab'
xmodmap -e 'keycode 23 = Escape'
diff --git a/.local/bin/scrwork b/.local/bin/scrwork
index 3e7224b..bb1935d 100755
--- a/.local/bin/scrwork
+++ b/.local/bin/scrwork
@@ -39,14 +39,15 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# scrwork
-# Mon Apr 11 20:02:06 CEST 2022
+# Tue Apr 12 14:47:59 CEST 2022
# Joe
#
# Screen setup when I'm at work
-xrandr --output LVDS-1 --primary --mode 1366x768 --pos 0x312 --rotate normal
+xrandr --output LVDS-1 --primary --mode 1366x768 --pos 0x649 --rotate normal
xrandr --output VGA-1 --off
-xrandr --output HDMI-1 --mode 1920x1080 --pos 1366x0 --rotate normal --output DP-1 --off
+xrandr --output HDMI-1 --mode 1920x1080 --pos 1366x0 --rotate normal
+xrandr --output DP-1 --off
xrandr --output HDMI-2 --off
xrandr --output HDMI-3 --off
xrandr --output DP-2 --off
diff --git a/.local/bin/setscreens.sh b/.local/bin/setscreens.sh
index 194ae90..2bab3a0 100755
--- a/.local/bin/setscreens.sh
+++ b/.local/bin/setscreens.sh
@@ -44,16 +44,15 @@
#
# Script to set screens, loaded at startx only.
-if xrandr | grep 'HDMI-1 connected'; then
- if xrandr | grep 'VGA-1 connected'; then
- xrandr --output LVDS-1 --off
- xrandr --output HDMI-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal
- xrandr --output DP-1 --off
- xrandr --output VGA-1 --mode 1440x900 --pos 1920x180 --rotate normal
- xrandr --output HDMI-2 --off
- xrandr --output HDMI-3 --off
- xrandr --output DP-2 --off
- xrandr --output DP-3 --off
+if xrandr | grep 'HDMI-1 connected' && xrandr | grep 'VGA-1 connected'; then
+ xrandr --output LVDS-1 --off
+ xrandr --output HDMI-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal
+ xrandr --output DP-1 --off
+ xrandr --output VGA-1 --mode 1440x900 --pos 1920x180 --rotate normal
+ xrandr --output HDMI-2 --off
+ xrandr --output HDMI-3 --off
+ xrandr --output DP-2 --off
+ xrandr --output DP-3 --off
else
xrandr --output LVDS-1 --primary --mode 1366x768 --pos 0x0 --rotate normal
xrandr --output VGA-1 --off