Move host-specific additional profiles into .config/ itself
authorAmin Bandali <bandali@gnu.org>
Sat, 24 Dec 2022 20:49:15 +0000 (15:49 -0500)
committerAmin Bandali <bandali@gnu.org>
Sat, 24 Dec 2022 20:49:15 +0000 (15:49 -0500)
.config/chaman.profile [new file with mode: 0644]
.config/darrud.profile [new file with mode: 0644]
.config/darya.profile [new file with mode: 0644]
.config/langa.profile [new file with mode: 0644]
.config/profiles/chaman [deleted file]
.config/profiles/darrud [deleted file]
.config/profiles/darya [deleted file]
.config/profiles/langa [deleted file]
.profile

diff --git a/.config/chaman.profile b/.config/chaman.profile
new file mode 100644 (file)
index 0000000..1c68d03
--- /dev/null
@@ -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 (file)
index 0000000..a6902ec
--- /dev/null
@@ -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 (file)
index 0000000..84135a6
--- /dev/null
@@ -0,0 +1,6 @@
+# -*- mode: sh; sh-shell: sh -*-
+
+export DEBFULLNAME="Amin Bandali"
+export DEBEMAIL="amin.bandali@canonical.com"
+export UBUMAIL="Amin Bandali <amin.bandali@canonical.com>"
+export UBUNTUTOOLS_BUILDER=sbuild
diff --git a/.config/langa.profile b/.config/langa.profile
new file mode 100644 (file)
index 0000000..632e2a8
--- /dev/null
@@ -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 (file)
index 1c68d03..0000000
+++ /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 (file)
index a6902ec..0000000
+++ /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 (file)
index 84135a6..0000000
+++ /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 <amin.bandali@canonical.com>"
-export UBUNTUTOOLS_BUILDER=sbuild
diff --git a/.config/profiles/langa b/.config/profiles/langa
deleted file mode 100644 (file)
index 632e2a8..0000000
+++ /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
index 67c643f..c4b9019 100644 (file)
--- a/.profile
+++ b/.profile
@@ -9,8 +9,8 @@
 #umask 022
 
 # source host-specific profile
 #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"
 fi
 
 export EDITOR="emacsclient -nw"