...
 
Commits (14)
......@@ -2,6 +2,11 @@
# These things are run when an Openbox X Session is started.
#
# Load global autostart
# shellcheck source=/dev/null
[ -r "${XDG_CONFIG_HOME:-$HOME/.config}/autostart.sh" ] && \
. "${XDG_CONFIG_HOME:-$HOME/.config}/autostart.sh"
# Use different git branch depending on screen height
if [ "$(xdpyinfo | awk '/dimensions/ {print $2}' | awk -Fx '{print $2}')" -lt 800 ]; then
(cd "${XDG_CONFIG_HOME:-$HOME/.config}/openbox" && \
......@@ -11,45 +16,9 @@ else
git checkout master 2>/dev/null && openbox --reconfigure)
fi
# Configure monitors
disper --resolution=auto --extend
# Set X Server properties
xrdb ~/.Xdefaults
# Load color profile
xcalib -d :0 ~/.color/icc/screen0.icm 2>/dev/null
xcalib -d :1 ~/.color/icc/screen1.icm 2>/dev/null
# Load custom Xmodmap
[ -f "$HOME/.Xmodmap" ] && xmodmap "$HOME/.Xmodmap"
# Bind Caps Lock to Ctrl
setxkbmap -option ctrl:nocaps
# Enable trackpad tapping, edgescrolling and disable while typing
synclient TapButton1=1 TapButton2=2 TapButton3=3 HorizEdgeScroll=1 VertEdgeScroll=1 PalmDetect=1
# Hide mouse cursor when not used
unclutter -root -visible -noevents &
# Start sxhkd
sxhkd -c "${XDG_CONFIG_HOME:-$HOME/.config}/sxhkd/sxhkdrc" &
# Start Terminal daemon
pgrep -xu "$USER" urxvtd >/dev/null || urxvtd -q -o -f
# Generate color files
getXcolor.sh --generate all
# Set background
xsetroot -solid '#406080'
# Launch panel
tint2 -c "${XDG_CONFIG_HOME:-$HOME/.config}/tint2/ob_taskbar" &
# Launch systray
tint2 -c "${XDG_CONFIG_HOME:-$HOME/.config}/tint2/ob_systray" &
# Set DPMS (Energy Star) features
xset dpms 630 700 760
# Change screen timeout
......@@ -61,6 +30,11 @@ if [ -z "$XRDP_SESSION" ]; then
xss-lock -- i3lock.sh -efI 5 &
fi
# Launch panel
tint2 -c "${XDG_CONFIG_HOME:-$HOME/.config}/tint2/ob_taskbar" &
# Launch systray
tint2 -c "${XDG_CONFIG_HOME:-$HOME/.config}/tint2/ob_systray" &
# Start udiskie for device automonting
pgrep -xu "$USER" udiskie >/dev/null || udiskie --smart-tray &
......@@ -70,6 +44,9 @@ amixer -q sset Master 50%
# Start fdpowermon
fdpowermon &
# Start Terminal daemon
pgrep -xu "$USER" urxvtd >/dev/null || urxvtd -q -o -f
# Load local configuration
# shellcheck source=/dev/null
[ -r "${XDG_CONFIG_HOME:-$HOME/.config}/openbox/autostart.local" ] && \
......
......@@ -7,7 +7,7 @@
<menu id="root-menu" label="Openbox 3">
<item label="_Run...">
<action name="Execute"><command>dmenu_run -p 'Run:'</command></action>
<action name="Execute"><command>sh -c 'rofi -show run -display-run Run: || dmenu_run -p Run:'</command></action>
</item>
<separator />
<!-- This requires the presence of the 'menu' package to work -->
......
......@@ -25,25 +25,25 @@
<animateIconify>no</animateIconify>
<font place="ActiveWindow">
<name>Terminus</name>
<size>10</size>
<size>12</size>
<weight>Bold</weight>
<slant>Normal</slant>
</font>
<font place="InactiveWindow">
<name>Terminus</name>
<size>10</size>
<size>12</size>
<weight>Bold</weight>
<slant>Normal</slant>
</font>
<font place="MenuHeader">
<name>Terminus</name>
<size>10</size>
<size>12</size>
<weight>Bold</weight>
<slant>Normal</slant>
</font>
<font place="MenuItem">
<name>Terminus</name>
<size>10</size>
<size>12</size>
<weight>Normal</weight>
<slant>Normal</slant>
</font>
......@@ -1026,6 +1026,19 @@
<application class="Steam">
<maximized>no</maximized>
</application>
<!-- Firefox windows -->
<application class="Firefox" type="normal">
<size>
<width>1026</width>
<height>1027</height>
</size>
</application>
<application class="Firefox-esr" type="normal">
<size>
<width>1026</width>
<height>1027</height>
</size>
</application>
<!-- Surf windows -->
<application class="Surf">
<decor>no</decor>
......
......@@ -58,7 +58,7 @@ systray_monitor = 1
#-------------------------------------
execp = new
execp_command = staty.sh mpd
execp_command = /bin/sh -c "staty.sh mpd | sed 's/&/\&amp;/g'"
execp_interval = 1
execp_has_icon = 0
execp_tooltip =
......
......@@ -58,7 +58,7 @@ systray_monitor = 1
#-------------------------------------
execp = new
execp_command = staty.sh mpd
execp_command = /bin/sh -c "staty.sh mpd | sed 's/&/\&amp;/g'"
execp_interval = 1
execp_has_icon = 0
execp_tooltip =
......
......@@ -58,7 +58,7 @@ systray_monitor = 1
#-------------------------------------
execp = new
execp_command = staty.sh mpd
execp_command = /bin/sh -c "staty.sh mpd | sed 's/&/\&amp;/g'"
execp_interval = 1
execp_has_icon = 0
execp_tooltip =
......
......@@ -136,4 +136,4 @@ tooltip_show_timeout = 1
tooltip_hide_timeout = 0
tooltip_background_id = 2
tooltip_font_color = #cbd2d9 100
tooltip_font = Terminus 10
tooltip_font = Terminus 12
......@@ -136,4 +136,4 @@ tooltip_show_timeout = 1
tooltip_hide_timeout = 0
tooltip_background_id = 2
tooltip_font_color = #cbd2d9 100
tooltip_font = Terminus 10
tooltip_font = Terminus 12
......@@ -137,4 +137,4 @@ tooltip_show_timeout = 1
tooltip_hide_timeout = 0
tooltip_background_id = 2
tooltip_font_color = #cbd2d9 100
tooltip_font = Terminus 10
tooltip_font = Terminus 12
......@@ -97,10 +97,10 @@ taskbar_name = 1
taskbar_hide_inactive_tasks = 0
taskbar_hide_different_monitor = 0
taskbar_always_show_all_desktop_tasks = 0
taskbar_name_padding = 10 0 0
taskbar_name_padding = 5 0 0
taskbar_name_background_id = 3
taskbar_name_active_background_id = 3
taskbar_name_font = Terminus Bold 10
taskbar_name_font = Terminus Bold 12
taskbar_name_font_color = #000000 100
taskbar_name_active_font_color = #000000 100
taskbar_distribute_size = 0
......@@ -117,8 +117,8 @@ task_icon = 0
task_centered = 1
urgent_nb_of_blink = 7
task_maximum_size = 200 0
task_padding = 10 0 0
task_font = Terminus Bold 10
task_padding = 5 0 0
task_font = Terminus Bold 12
task_tooltip = 1
task_font_color = #000000 100
task_iconified_font_color = #000000 50
......@@ -143,12 +143,12 @@ mouse_scroll_down = none
time1_format = %T
time2_format =
time1_font = Terminus Bold 10
time1_font = Terminus Bold 12
time1_timezone =
time2_timezone =
time2_font = Terminus 10
time2_font = Terminus 12
clock_font_color = #000000 100
clock_padding = 10 0
clock_padding = 5 0
clock_background_id = 2
clock_tooltip = %A, %d %B %Y
clock_tooltip_timezone =
......@@ -168,4 +168,4 @@ tooltip_show_timeout = 1
tooltip_hide_timeout = 0
tooltip_background_id = 1
tooltip_font_color = #000000 100
tooltip_font = Terminus Bold 10
tooltip_font = Terminus Bold 12
......@@ -13,7 +13,7 @@ If we have Git installed on the system, we can get the files directly from the
repository:
```sh
git clone https://github.com/aguslr/openbox-config
git clone https://gitlab.com/aguslr/openbox-config
```
After this, every time we want to update the files we do:
......@@ -28,10 +28,10 @@ If Git is not installed, we can still get the files as long as we have a basic
Unix environment available:
```sh
wget https://github.com/aguslr/openbox-config/tarball/master -O - | tar -xzv --strip-components 1 --exclude={README.md}
wget https://gitlab.com/aguslr/openbox-config/-/archive/master/openbox-config-master.tar.gz -O - | tar -xzv --strip-components 1 --exclude={README.md,screenshot.png}
```
### Installing with Stow
## Installing with Stow
To easily create and manage links to the files we can use [GNU Stow][stow] as
follows:
......@@ -46,6 +46,9 @@ Or simply, using [Make][]:
make install
```
## Screenshot
![Screenshot](https://gitlab.com/aguslr/openbox-config/raw/master/screenshot.png "Screenshot")
[make]: https://www.gnu.org/software/make/
[openbox]: http://openbox.org/
......