summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x.config/openbox/autostart25
-rw-r--r--.ideskrc42
-rw-r--r--.idesktop/ario.lnk11
-rw-r--r--.idesktop/default.lnk0
-rw-r--r--.idesktop/firefox.lnk12
-rw-r--r--.idesktop/home.lnk11
-rw-r--r--.idesktop/openbox.lnk11
-rw-r--r--.idesktop/thunderbird.lnk11
-rwxr-xr-x.local/bin/kb18
9 files changed, 24 insertions, 117 deletions
diff --git a/.config/openbox/autostart b/.config/openbox/autostart
index e462d2c..acb0dfc 100755
--- a/.config/openbox/autostart
+++ b/.config/openbox/autostart
@@ -16,6 +16,22 @@
#
#xfce-mcs-manager &
+# select OS
+# 1: Artix
+# 2: Pop OS
+# 3: FreeBSD
+
+os="$(uname)"
+
+if [ "$os" = "Linux" ]; then
+ grep "Artix" /etc/issue >/dev/null 2>&1 && os=1 || os=2
+elif [ "$os" = "FreeBSD" ]; then
+ os=3
+else
+ echo "unknown OS"
+ exit 1
+fi
+
startif() {
pgrep "$(basename "$1")" >/dev/null || "$@" >/dev/null 2>&1 &
}
@@ -25,11 +41,15 @@ delay_desktop() {
startif conky -d -c "$HOME"/.config/conkyrc
startif tint2
startif plank
- startif idesk
}
export LANG='en_US.UTF-8'
-pgrep musicpd >/dev/null || musicpd >/dev/null 2>&1
+case $os in
+ 1) icon=" " ;;
+ 2) icon=" " ;;
+ 3) icon=" " ;;
+esac
+
startif dunst
startif picom
startif mpd-notification
@@ -46,5 +66,6 @@ fi
delay_desktop &
cd "$HOME"
xrdb "$HOME"/.config/x11/xresources
+
notify-send -u normal 'Welcome' " Welcome back, partner\!"
# dbus-launch openbox
diff --git a/.ideskrc b/.ideskrc
deleted file mode 100644
index 7f70d74..0000000
--- a/.ideskrc
+++ /dev/null
@@ -1,42 +0,0 @@
-table Config
- FontName: Cantarell
- FontSize: 11
- FontColor: #ffffff
- ToolTip.FontSize: 10
- ToolTip.FontName: Cantarell
- ToolTip.ForeColor: #000000
- ToolTip.BackColor: #FFFFFF
- ToolTip.CaptionOnHover: false
- ToolTip.CaptionPlacement: Right
- Locked: false
- Transparency: 0
- Shadow: false
- ShadowColor: #9d0000
- ShadowX: 1
- ShadowY: 1
- Bold: false
- ClickDelay: 300
- IconSnap: true
- SnapWidth: 64
- SnapHeight: 64
- SnapOrigin: TopRight
- SnapShadow: false
- SnapShadowTrans: 200
- CaptionOnHover: true
- CaptionPlacement: bottom
- FillStyle: None
- Background.Delay: 0
- Background.Mode: Stretch
- Background.Color: #C2CCFF
- CursorOver: left_ptr
-end
-
-table Actions
- Lock: control right doubleClk
- Reload: middle doubleClk
- Drag: right hold
- EndDrag: right singleClk
- Execute[0]: left singleClk
- Execute[1]: right doubleClk
-end
-
diff --git a/.idesktop/ario.lnk b/.idesktop/ario.lnk
deleted file mode 100644
index a11b9ad..0000000
--- a/.idesktop/ario.lnk
+++ /dev/null
@@ -1,11 +0,0 @@
-table Icon
- Caption: Ario
- ToolTip.Caption: GTK MPD client
- Icon: /usr/share/icons/hicolor/64x64/apps/ario.png
- Width: 64
- Height: 64
- X: 1984
- Y: 576
- Command[0]: ario
-end
-
diff --git a/.idesktop/default.lnk b/.idesktop/default.lnk
deleted file mode 100644
index e69de29..0000000
--- a/.idesktop/default.lnk
+++ /dev/null
diff --git a/.idesktop/firefox.lnk b/.idesktop/firefox.lnk
deleted file mode 100644
index ea6a808..0000000
--- a/.idesktop/firefox.lnk
+++ /dev/null
@@ -1,12 +0,0 @@
-table Icon
- Caption: Firefox
- ToolTip.Caption: Firefox Web Browser
- Icon: /usr/share/icons/hicolor/64x64/apps/firefox.png
- Width: 64
- Height: 64
- X: 1984
- Y: 320
- Command[0]: firefox
- Command[1]: torify firefox
-end
-
diff --git a/.idesktop/home.lnk b/.idesktop/home.lnk
deleted file mode 100644
index 0f6ccd7..0000000
--- a/.idesktop/home.lnk
+++ /dev/null
@@ -1,11 +0,0 @@
-table Icon
- Caption: Home
- ToolTip.Caption: Open PCManFM in the home directory
- Icon: /usr/share/icons/Human/48x48/places/folder_home.png
- Width: 64
- Height: 64
- X: 1984
- Y: 192
- Command[0]: pcmanfm ~/
-end
-
diff --git a/.idesktop/openbox.lnk b/.idesktop/openbox.lnk
deleted file mode 100644
index 8749357..0000000
--- a/.idesktop/openbox.lnk
+++ /dev/null
@@ -1,11 +0,0 @@
-table Icon
- Caption: Openbox
- ToolTip.Caption: Openbox menu
- Icon: /usr/share/icons/Faenza/apps/64/gnome-panel-launcher.png
- Width: 64
- Height: 64
- X: 1984
- Y: 64
- Command[0]: xdotool key super+space
-end
-
diff --git a/.idesktop/thunderbird.lnk b/.idesktop/thunderbird.lnk
deleted file mode 100644
index 235ce12..0000000
--- a/.idesktop/thunderbird.lnk
+++ /dev/null
@@ -1,11 +0,0 @@
-table Icon
- Caption: Thunderbird
- ToolTip.Caption: Thunderbird Mail Client
- Icon: /usr/share/icons/hicolor/64x64/apps/thunderbird.png
- Width: 64
- Height: 64
- X: 1984
- Y: 448
- Command[0]: thunderbird
-end
-
diff --git a/.local/bin/kb b/.local/bin/kb
index fcf07f8..1c2090e 100755
--- a/.local/bin/kb
+++ b/.local/bin/kb
@@ -52,22 +52,6 @@ setxkbmap -option caps:none
xmodmap -e 'keycode 9 = Tab'
xmodmap -e 'keycode 23 = Escape'
xmodmap -e 'keycode 37 ='
-notify-send -u low -t 2000 'kb' ' ThinkPad keyboard set'
-# screens=$(xrandr | grep ' connected' | awk '{print $1}')
-# if echo "$screens" | grep 'HDMI-1' >/dev/null 2>&1; then
-# if echo "$screens" | grep 'VGA-1' >/dev/null 2>&1; then
-# xmodmap -e 'keycode 9 = Tab'
-# xmodmap -e 'keycode 23 = Escape'
-# xmodmap -e 'remove Lock = Caps_Lock'
-# # xmodmap -e 'keycode 37 = Escape'
-# fi
-# else
-# setxkbmap -option ctrl:swapcaps
-# xmodmap -e 'keycode 9 = Tab'
-# xmodmap -e 'keycode 23 = Escape'
-# # xmodmap -e 'keycode 66 = Escape'
-# fi
-# mouse=$(xinput list | grep 'HARPOON' | awk '{print $10}' | sed 's/id=//')
-# xinput --set-prop "$mouse" 'libinput Accel Speed' -0.40
+notify-send -u low -t 2000 'kb' ' Swapped Ctrl/Caps Lock and Esc/Tab'
# vim: filetype=sh