From 932248dbab3bc2951be7cb7c25bb6d4d20964e24 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 21 Mar 2023 13:19:47 +0800 Subject: Improve openbox --- X11/openbox/rc.xml | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) (limited to 'X11/openbox/rc.xml') diff --git a/X11/openbox/rc.xml b/X11/openbox/rc.xml index d7c0345..7c08d18 100644 --- a/X11/openbox/rc.xml +++ b/X11/openbox/rc.xml @@ -105,10 +105,14 @@ - alacritty --title OPENBOX-CONFIG - -o "window.dimensions.lines=32" - -o "window.dimensions.columns=90" - -e vim ~/.config/openbox/rc.xml + + sh -c ' + xdotool search --name @OPENBOX_CONFIG windowactivate || \ + alacritty --title @OPENBOX_CONFIG \ + -o "window.dimensions.lines=32" \ + -o "window.dimensions.columns=90" \ + -e vim ~/.config/openbox/rc.xml \ + ' @@ -485,7 +489,7 @@ - takeshot --area + ~/bin/takeshot --area @@ -557,15 +561,13 @@ - - alacritty --title MPD -e ncmpcpp - - - - alacritty --title YOO --class "CONFIRM_BEFORE_CLOSE" - + sh -c ' + xdotool search --name MPD windowactivate || \ + alacritty --title MPD -e ncmpcpp + ' + @@ -605,9 +607,13 @@ - alacritty - -o "window.dimensions.lines=30" - -e nmtui + sh -c ' + xdotool search --name "Network Manager" windowactivate || \ + alacritty \ + --title "Network Manager" \ + -o "window.dimensions.lines=30" \ + -e nmtui + ' -- cgit v1.2.3-70-g09d2