diff options
Diffstat (limited to '.config/openbox')
-rwxr-xr-x | .config/openbox/autostart | 40 | ||||
-rwxr-xr-x | .config/openbox/menu.xml | 33 | ||||
-rwxr-xr-x | .config/openbox/rc.xml | 88 |
3 files changed, 115 insertions, 46 deletions
diff --git a/.config/openbox/autostart b/.config/openbox/autostart index 4bc1506..0be8a58 100755 --- a/.config/openbox/autostart +++ b/.config/openbox/autostart @@ -15,3 +15,43 @@ # If you want to use XFCE config tools... # #xfce-mcs-manager & +startif() { + pgrep "$(basename "$1")" >/dev/null || "$@" >/dev/null 2>&1 & +} + +delay_desktop() { + sleep 5 + startif conky -d -c "$HOME"/.config/conkyrc + startif tint2 + # startif cairo-clock -x 900 -y 20 --width 300 --height 300 --theme zen + # startif cairo-dock + startif plank + startif idesk +} + +export LANG='en_US.UTF-8' +pgrep musicpd >/dev/null || musicpd >/dev/null 2>&1 +"$HOME"/.local/bin/setwp "$HOME"/pics/wp.jpg +"$HOME"/.local/bin/kb +xset s off +xset -dpms +if xrandr | grep -F 'DisplayPort-0 connected' >/dev/null 2>&1; then + "$HOME"/.local/bin/scr +else + "$HOME"/.local/bin/dscr +fi +# xsetroot -name 'Loading bar...' +startif dunst +startif picom +# startif lowbat +# startif mpd-notification +startif xscreensaver +delay_desktop & +# startif dwmblocks +# startif sb-updatempd +# /compat/linux/usr/lib/protonmail/bridge/proton-bridge --noninteractive +# ekb +cd "$HOME" +xrdb "$HOME"/.config/x11/xresources +notify-send -u normal 'Welcome' " Welcome back, partner\!" +# dbus-launch openbox diff --git a/.config/openbox/menu.xml b/.config/openbox/menu.xml index b92c1c0..02e7c88 100755 --- a/.config/openbox/menu.xml +++ b/.config/openbox/menu.xml @@ -16,6 +16,11 @@ <command>pcmanfm</command> </action> </item> + <item label="Qalculate!"> + <action name="Execute"> + <command>qalculate-gtk</command> + </action> + </item> </menu> <menu id="apps-editors-menu" label="Editors"> @@ -80,21 +85,31 @@ </menu> <menu id="system-menu" label="System"> - <item label="Openbox Configuration Manager"> + <item label="Openbox configuration"> <action name="Execute"> <command>obconf</command> </action> </item> - <item label="tint2 Configuration Manager"> + <item label="tint2 configuration"> <action name="Execute"> <command>tint2conf</command> </action> </item> - <item label="Theme Manager"> + <item label="Theme manager"> <action name="Execute"> <command>lxappearance</command> </action> </item> + <item label="XScreenSaver configuration"> + <action name="Execute"> + <command>xscreensaver-settings</command> + </action> + </item> + <item label="Displays configuration"> + <action name="Execute"> + <command>arandr</command> + </action> + </item> <separator /> <item label="Reconfigure Openbox"> <action name="Reconfigure" /> @@ -113,9 +128,9 @@ <command>pcmanfm</command> </action> </item> - <item label="Iridium"> + <item label="Firefox"> <action name="Execute"> - <command>iridium-browser --force-dark-mode</command> + <command>firefox</command> </action> </item> <separator /> @@ -128,7 +143,7 @@ <separator label="System" /> <menu id="system-menu"/> <separator /> - <item label="Reload"> + <item label="Reconfigure Openbox"> <action name="Reconfigure" /> </item> <item label="Lock screen"> @@ -138,7 +153,7 @@ </item> <item label="Sleep"> <action name="Execute"> - <command>sh -c "notify-send -u normal reboot \" G'night, partner!\"; sleep 2; acpiconf -s 3"</command> + <command>sh -c "notify-send -u normal reboot \" G'night, partner!\"; sleep 2; acpiconf -s 3"</command> </action> </item> <item label="Log Out"> @@ -148,12 +163,12 @@ </item> <item label="Reboot"> <action name="Execute"> - <command>sh -c "emacsclient -e '\"(save-buffers-kill-emacs)\"'; notify-send -u normal reboot \" Rebootin' now!\"; sleep 2; shutdown -r now"</command> + <command>sh -c "emacsclient -e '\"(save-buffers-kill-emacs)\"'; notify-send -u normal reboot \" Rebootin' now!\"; sleep 2; systemctl reboot</command> </action> </item> <item label="Shutdown"> <action name="Execute"> - <command>sh -c "emacsclient -e '\"(save-buffers-kill-emacs)\"'; notify-send -u normal shutdown ' Farewell, partner!'; sleep 2; shutdown -p now"</command> + <command>sh -c "emacsclient -e '\"(save-buffers-kill-emacs)\"'; notify-send -u normal shutdown ' Farewell, partner!'; sleep 2; systemctl poweroff</command> </action> </item> </menu> diff --git a/.config/openbox/rc.xml b/.config/openbox/rc.xml index 2609807..9450afe 100755 --- a/.config/openbox/rc.xml +++ b/.config/openbox/rc.xml @@ -42,7 +42,7 @@ 'Active' - where the active window is --> </placement> <theme> - <name>Clearlooks-Joe</name> + <name>Clearlooks</name> <titleLayout>SNLIMC</titleLayout> <!-- available characters are NDSLIMC, each can occur at most once. @@ -57,7 +57,7 @@ <keepBorder>yes</keepBorder> <animateIconify>yes</animateIconify> <font place="ActiveWindow"> - <name>Cantarell Medium</name> + <name>NotoSans Nerd Font</name> <size>11</size> <!-- font size in points --> <weight>Normal</weight> @@ -66,7 +66,7 @@ <!-- 'italic' or 'normal' --> </font> <font place="InactiveWindow"> - <name>Cantarell Medium</name> + <name>NotoSans Nerd Font</name> <size>11</size> <!-- font size in points --> <weight>Normal</weight> @@ -75,7 +75,7 @@ <!-- 'italic' or 'normal' --> </font> <font place="MenuHeader"> - <name>Cantarell Medium</name> + <name>NotoSans Nerd Font</name> <size>14</size> <!-- font size in points --> <weight>Normal</weight> @@ -84,7 +84,7 @@ <!-- 'italic' or 'normal' --> </font> <font place="MenuItem"> - <name>Cantarell Medium</name> + <name>NotoSans Nerd Font</name> <size>14</size> <!-- font size in points --> <weight>Normal</weight> @@ -93,7 +93,7 @@ <!-- 'italic' or 'normal' --> </font> <font place="ActiveOnScreenDisplay"> - <name>Cantarell Medium</name> + <name>NotoSans Nerd Font</name> <size>11</size> <!-- font size in points --> <weight>Normal</weight> @@ -102,7 +102,7 @@ <!-- 'italic' or 'normal' --> </font> <font place="InactiveOnScreenDisplay"> - <name>Cantarell Medium</name> + <name>NotoSans Nerd Font</name> <size>11</size> <!-- font size in points --> <weight>Normal</weight> @@ -122,18 +122,13 @@ and back in --> <number>4</number> <firstdesk>1</firstdesk> - <names> - <!-- set names up here if you want to, like this: - <name>desktop 1</name> - <name>desktop 2</name> - --> - </names> + <names/> <popupTime>500</popupTime> <!-- The number of milliseconds to show the popup for when switching desktops. Set this to 0 to disable the popup. --> </desktops> <resize> - <drawContents>yes</drawContents> + <drawContents>no</drawContents> <popupShow>Nonpixel</popupShow> <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) --> <popupPosition>Center</popupPosition> @@ -229,11 +224,6 @@ <to>9</to> </action> </keybind> - <keybind key="W-0"> - <action name="GoToDesktop"> - <to>10</to> - </action> - </keybind> <keybind key="W-S-1"> <action name="SendToDesktop"> <to>1</to> @@ -289,11 +279,30 @@ </action> </keybind> <keybind key="W-S-0"> + <action name="ToggleOmnipresent"/> + </keybind> + <keybind key="W-S-h"> <action name="SendToDesktop"> - <to>10</to> + <to>previous</to> <wrap>no</wrap> </action> </keybind> + <keybind key="W-S-l"> + <action name="SendToDesktop"> + <to>next</to> + <wrap>no</wrap> + </action> + </keybind> + <keybind key="W-C-h"> + <action name="MoveResizeTo"> + <monitor>next</monitor> + </action> + </keybind> + <keybind key="W-C-l"> + <action name="MoveResizeTo"> + <monitor>prev</monitor> + </action> + </keybind> <!-- <keybind key="W-d"> --> <!-- <action name="ToggleShowDesktop"/> --> <!-- </keybind> --> @@ -396,7 +405,7 @@ </keybind> <keybind key="W-F3"> <action name="Execute"> - <command>iridium-browser --force-dark-mode</command> + <command>firefox</command> </action> </keybind> <keybind key="W-S-F3"> @@ -422,7 +431,7 @@ </keybind> <keybind key="W-F7"> <action name="Execute"> - <command>alacritty -e calcurse -C /home/jozan/.config/calcurse -D /home/jozan/.local/share/calcurse</command> + <command>alacritty -e calcurse -C ~/.config/calcurse -D ~/.local/share/calcurse</command> </action> </keybind> <keybind key="W-F8"> @@ -472,77 +481,77 @@ </keybind> <keybind key="W-S-F10"> <action name="Execute"> - <command>/home/jozan/.local/bin/mixer-set toggle</command> + <command>~/.local/bin/mixer-set toggle</command> </action> </keybind> <keybind key="W-S-F11"> <action name="Execute"> - <command>/home/jozan/.local/bin/mixer-set lower</command> + <command>~/.local/bin/mixer-set lower</command> </action> </keybind> <keybind key="W-S-F12"> <action name="Execute"> - <command>/home/jozan/.local/bin/mixer-set raise</command> + <command>~/.local/bin/mixer-set raise</command> </action> </keybind> <keybind key="W-S-Delete"> <action name="Execute"> - <command>/home/jozan/.local/bin/mic</command> + <command>~/.local/bin/mic</command> </action> </keybind> <keybind key="W-C-F9"> <action name="Execute"> - <command>/home/jozan/.local/bin/dmkill</command> + <command>~/.local/bin/dmkill</command> </action> </keybind> <keybind key="W-C-F10"> <action name="Execute"> - <command>/home/jozan/.local/bin/dmscrot</command> + <command>~/.local/bin/dmscrot</command> </action> </keybind> <keybind key="W-C-F11"> <action name="Execute"> - <command>/home/jozan/.local/bin/dmsearch</command> + <command>~/.local/bin/dmsearch</command> </action> </keybind> <keybind key="W-C-F12"> <action name="Execute"> - <command>/home/jozan/.local/bin/dmlog</command> + <command>~/.local/bin/dmlog</command> </action> </keybind> <keybind key="W-BackSpace"> <action name="Execute"> - <command>/home/jozan/.local/bin/dmpc</command> + <command>~/.local/bin/dmpc</command> </action> </keybind> <keybind key="W-C-BackSpace"> <action name="Execute"> - <command>/home/jozan/.local/bin/dmlog</command> + <command>~/.local/bin/dmlog</command> </action> </keybind> <keybind key="W-C-p"> <action name="Execute"> - <command>/home/jozan/.local/bin/dmpass</command> + <command>~/.local/bin/dmpass</command> </action> </keybind> <keybind key="W-C-S-p"> <action name="Execute"> - <command>/home/jozan/.local/bin/dmpass --full</command> + <command>~/.local/bin/dmpass --full</command> </action> </keybind> <keybind key="W-C-o"> <action name="Execute"> - <command>/home/jozan/.local/bin/dmotp</command> + <command>~/.local/bin/dmotp</command> </action> </keybind> <keybind key="W-End"> <action name="Execute"> - <command>/home/jozan/.local/bin/ndate</command> + <command>~/.local/bin/ndate</command> </action> </keybind> <keybind key="W-Delete"> <action name="Execute"> - <command>/home/jozan/.local/bin/shutup</command> + <command>~/.local/bin/shutup</command> </action> </keybind> <keybind key="W-S-e"> @@ -558,6 +567,11 @@ <menu>root-menu</menu> </action> </keybind> + <keybind key="W-o"> + <action name="ShowMenu"> + <menu>client-list-combined-menu</menu> + </action> + </keybind> <keybind key="W-w"> <action name="Move"/> </keybind> |