From: Amin Bandali Date: Sat, 24 Dec 2022 20:49:15 +0000 (-0500) Subject: Move host-specific additional profiles into .config/ itself X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/22a90cca43cc2d42cd8f658b6ee388a733afd9ed Move host-specific additional profiles into .config/ itself --- diff --git a/.config/chaman.profile b/.config/chaman.profile new file mode 100644 index 0000000..1c68d03 --- /dev/null +++ b/.config/chaman.profile @@ -0,0 +1,12 @@ +# -*- mode: sh; sh-shell: sh -*- + +if [ $DISPLAY ]; then + if [ -x "$(command -v xinput)" ]; then + xinput set-prop 'DLL07BE:01 06CB:7A13 Touchpad' 'libinput Natural Scrolling Enabled' 1 + xinput set-prop 'DLL07BE:01 06CB:7A13 Touchpad' 'libinput Click Method Enabled' 0 1 + fi + setxkbmap \ + -layout us,ir \ + -option ctrl:swap_rwin_rctl \ + -option grp:shifts_toggle +fi diff --git a/.config/darrud.profile b/.config/darrud.profile new file mode 100644 index 0000000..a6902ec --- /dev/null +++ b/.config/darrud.profile @@ -0,0 +1,4 @@ +# -*- mode: sh; sh-shell: sh -*- + +# export IS_GUIX_SYSTEM=true +export INFOPATH="$HOME/usr/local/share/info${INFOPATH:+:}$INFOPATH" diff --git a/.config/darya.profile b/.config/darya.profile new file mode 100644 index 0000000..84135a6 --- /dev/null +++ b/.config/darya.profile @@ -0,0 +1,6 @@ +# -*- mode: sh; sh-shell: sh -*- + +export DEBFULLNAME="Amin Bandali" +export DEBEMAIL="amin.bandali@canonical.com" +export UBUMAIL="Amin Bandali " +export UBUNTUTOOLS_BUILDER=sbuild diff --git a/.config/langa.profile b/.config/langa.profile new file mode 100644 index 0000000..632e2a8 --- /dev/null +++ b/.config/langa.profile @@ -0,0 +1,14 @@ +# -*- mode: sh; sh-shell: sh -*- + +# export XDG_DATA_DIRS="/usr/share/mate:/usr/local/share/:/usr/share/" + +if [ $DISPLAY ]; then + if [ -x "$(command -v xinput)" ]; then + xinput set-prop 'TPPS/2 IBM TrackPoint' 'libinput Accel Speed' -0.4 + fi + setxkbmap \ + -layout us,ir \ + -option ctrl:nocaps \ + -option grp:shifts_toggle + xmodmap -e "keysym Menu = Super_R" +fi diff --git a/.config/profiles/chaman b/.config/profiles/chaman deleted file mode 100644 index 1c68d03..0000000 --- a/.config/profiles/chaman +++ /dev/null @@ -1,12 +0,0 @@ -# -*- mode: sh; sh-shell: sh -*- - -if [ $DISPLAY ]; then - if [ -x "$(command -v xinput)" ]; then - xinput set-prop 'DLL07BE:01 06CB:7A13 Touchpad' 'libinput Natural Scrolling Enabled' 1 - xinput set-prop 'DLL07BE:01 06CB:7A13 Touchpad' 'libinput Click Method Enabled' 0 1 - fi - setxkbmap \ - -layout us,ir \ - -option ctrl:swap_rwin_rctl \ - -option grp:shifts_toggle -fi diff --git a/.config/profiles/darrud b/.config/profiles/darrud deleted file mode 100644 index a6902ec..0000000 --- a/.config/profiles/darrud +++ /dev/null @@ -1,4 +0,0 @@ -# -*- mode: sh; sh-shell: sh -*- - -# export IS_GUIX_SYSTEM=true -export INFOPATH="$HOME/usr/local/share/info${INFOPATH:+:}$INFOPATH" diff --git a/.config/profiles/darya b/.config/profiles/darya deleted file mode 100644 index 84135a6..0000000 --- a/.config/profiles/darya +++ /dev/null @@ -1,6 +0,0 @@ -# -*- mode: sh; sh-shell: sh -*- - -export DEBFULLNAME="Amin Bandali" -export DEBEMAIL="amin.bandali@canonical.com" -export UBUMAIL="Amin Bandali " -export UBUNTUTOOLS_BUILDER=sbuild diff --git a/.config/profiles/langa b/.config/profiles/langa deleted file mode 100644 index 632e2a8..0000000 --- a/.config/profiles/langa +++ /dev/null @@ -1,14 +0,0 @@ -# -*- mode: sh; sh-shell: sh -*- - -# export XDG_DATA_DIRS="/usr/share/mate:/usr/local/share/:/usr/share/" - -if [ $DISPLAY ]; then - if [ -x "$(command -v xinput)" ]; then - xinput set-prop 'TPPS/2 IBM TrackPoint' 'libinput Accel Speed' -0.4 - fi - setxkbmap \ - -layout us,ir \ - -option ctrl:nocaps \ - -option grp:shifts_toggle - xmodmap -e "keysym Menu = Super_R" -fi diff --git a/.profile b/.profile index 67c643f..c4b9019 100644 --- a/.profile +++ b/.profile @@ -9,8 +9,8 @@ #umask 022 # source host-specific profile -if [ -f "$HOME/.config/profiles/$(hostname)" ]; then - . "$HOME/.config/profiles/$(hostname)" +if [ -f "$HOME/.config/$(hostname).profile" ]; then + . "$HOME/.config/$(hostname).profile" fi export EDITOR="emacsclient -nw"