...
 
Commits (25)
......@@ -43,9 +43,7 @@ pgrep -xu "$USER" urxvtd >/dev/null || urxvtd -q -o -f
getXcolor.sh --generate all
# Set background
bgcolor="$(getXcolor.sh -c white 2>/dev/null)" || bgcolor='1c1c1c'
fgcolor="$(getXcolor.sh -c brightblack 2>/dev/null)" || fgcolor='7f7f7f'
xsetroot -bg "#$bgcolor" -fg "#$fgcolor" -mod 2 2
xsetroot -solid '#406080'
# Launch panel
tint2 -c "${XDG_CONFIG_HOME:-$HOME/.config}/tint2/ob_taskbar" &
......
......@@ -4,6 +4,3 @@
# Set Openbox config directory
export OBOX_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/openbox"
# Openbox GTK fix
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
......@@ -12,9 +12,9 @@
<separator />
<!-- This requires the presence of the 'menu' package to work -->
<menu id="/Debian" />
<item label="_URxvt">
<action name="Execute"><command>sh -c 'urxvtc || urxvt'</command></action>
</item>
<item label="_URxvt">
<action name="Execute"><command>sh -c 'urxvtc || urxvt'</command></action>
</item>
<menu id="inet-menu" label="_Internet">
<item label="_Chromium">
<action name="Execute"><command>chromium</command></action>
......@@ -51,7 +51,7 @@
<action name="Execute"><command>surf</command></action>
</item>
<item label="Surf (_no-cookies)">
<action name="Execute"><command>surf -c /dev/null</command></action>
<action name="Execute"><command>surf -c /dev/null -d</command></action>
</item>
<item label="_Tor Browser">
<action name="Execute"><command>torbrowser-launcher</command></action>
......@@ -94,15 +94,16 @@
<item label="_New">
<action name="Execute"><command>sizewin.sh urxvt</command></action>
</item>
<item label="_Hide">
<action name="Execute"><command>xdotool selectwindow windowminimize</command></action>
<item label="_Resize">
<action name="Execute"><command>sizewin.sh --select</command></action>
</item>
<item label="_Close">
<item label="_Delete">
<action name="Execute"><command>xdotool selectwindow windowclose</command></action>
</item>
<item label="_Resize">
<action name="Execute"><command>sizewin.sh --select</command></action>
<item label="_Hide">
<action name="Execute"><command>xdotool selectwindow windowminimize</command></action>
</item>
<separator />
<item label="_Snarf">
<action name="Execute"><command>sh -c 'xsel -p -o | xsel -b -i'</command></action>
</item>
......
......@@ -19,45 +19,45 @@
<primaryMonitor>1</primaryMonitor>
</placement>
<theme>
<name>Greybird</name>
<titleLayout>SDLMC</titleLayout>
<name>MyWindowLab</name>
<titleLayout>LIMC</titleLayout>
<keepBorder>yes</keepBorder>
<animateIconify>no</animateIconify>
<font place="ActiveWindow">
<name>Terminus</name>
<size>10</size>
<weight>Normal</weight>
<weight>Bold</weight>
<slant>Normal</slant>
</font>
<font place="InactiveWindow">
<name>Terminus</name>
<size>10</size>
<weight>Normal</weight>
<weight>Bold</weight>
<slant>Normal</slant>
</font>
<font place="MenuHeader">
<name>Terminus</name>
<size>12</size>
<weight>normal</weight>
<slant>normal</slant>
<size>10</size>
<weight>Bold</weight>
<slant>Normal</slant>
</font>
<font place="MenuItem">
<name>Terminus</name>
<size>12</size>
<weight>normal</weight>
<slant>normal</slant>
<size>10</size>
<weight>Normal</weight>
<slant>Normal</slant>
</font>
<font place="ActiveOnScreenDisplay">
<name>Terminus</name>
<size>12</size>
<weight>bold</weight>
<slant>normal</slant>
<weight>Bold</weight>
<slant>Normal</slant>
</font>
<font place="InactiveOnScreenDisplay">
<name>Terminus</name>
<size>12</size>
<weight>bold</weight>
<slant>normal</slant>
<weight>Normal</weight>
<slant>Normal</slant>
</font>
</theme>
<desktops>
......@@ -329,6 +329,7 @@
</keybind>
<keybind key="W-Tab">
<action name="NextWindow">
<bar>none</bar>
<dialog>none</dialog>
<allDesktops>yes</allDesktops>
<finalactions>
......@@ -561,7 +562,6 @@
<else>
<action name="Focus"/>
<action name="Unshade"/>
<action name="Undecorate"/>
</else>
</action>
</keybind>
......@@ -583,7 +583,19 @@
</keybind>
<!-- Toggle maximize -->
<keybind key="W-m">
<action name="ToggleMaximizeFull"/>
<action name="If">
<query>
<maximized>yes</maximized>
</query>
<then>
<action name="Decorate"/>
<action name="Unmaximize"/>
</then>
<else>
<action name="Undecorate"/>
<action name="Maximize"/>
</else>
</action>
</keybind>
<!-- Open menu -->
<keybind key="A-F1">
......@@ -600,7 +612,7 @@
<!-- Launch dmenu -->
<keybind key="A-r">
<action name="Execute">
<command>dmenu_run -p 'Run:'</command>
<command>sh -c 'rofi -show run -display-run Run: || dmenu_run -p Run:'</command>
</action>
</keybind>
<keybind key="W-S-q">
......@@ -936,12 +948,11 @@
<applications>
<!-- Normal windows -->
<application type="normal">
<decor>no</decor>
<decor>yes</decor>
<maximized>no</maximized>
</application>
<!-- Popup windows -->
<application name="popup">
<decor>no</decor>
<shade>no</shade>
<fullscreen>no</fullscreen>
<maximized>no</maximized>
......@@ -952,7 +963,6 @@
</position>
</application>
<application class="?message">
<decor>no</decor>
<shade>no</shade>
<fullscreen>no</fullscreen>
<maximized>no</maximized>
......@@ -1018,6 +1028,7 @@
</application>
<!-- Surf windows -->
<application class="Surf">
<decor>no</decor>
<size>
<width>1000</width>
<height>1000</height>
......@@ -1025,6 +1036,7 @@
</application>
<!-- Tabbed surf windows -->
<application class="tabbed">
<decor>no</decor>
<size>
<width>1000</width>
<height>1016</height>
......
ob_systray.greybird
\ No newline at end of file
ob_systray.windowlab
\ No newline at end of file
#-------------------------------------
# Backgrounds
#-------------------------------------
# Background 1
rounded = 0
border_width = 0
background_color = #000000 100
border_color = #000000 100
background_color_hover = #000000 100
border_color_hover = #000000 100
background_color_pressed = #000000 100
border_color_pressed = #000000 100
#-------------------------------------
# Panel
#-------------------------------------
panel_items = EFS
panel_size = 100% 22
panel_margin = 0 0
panel_padding = 0 0 0
panel_background_id = 1
wm_menu = 0
panel_dock = 1
panel_position = bottom center horizontal
panel_layer = bottom
panel_monitor = 1
primary_monitor_first = 1
autohide = 0
autohide_show_timeout = 0.1
autohide_hide_timeout = 0
autohide_height = 1
strut_policy = none
panel_window_name = tint2_systray
disable_transparency = 0
mouse_effects = 0
font_shadow = 0
mouse_hover_icon_asb = 100 0 10
mouse_pressed_icon_asb = 100 0 0
#-------------------------------------
# System tray (notification area)
#-------------------------------------
systray_padding = 8 2 15
systray_background_id = 0
systray_sort = ascending
systray_icon_size = 16
systray_icon_asb = 90 -100 0
systray_monitor = 1
#-------------------------------------
# Executors
#-------------------------------------
execp = new
execp_command = staty.sh mpd
execp_interval = 1
execp_has_icon = 0
execp_tooltip =
execp_font = Terminus 12
execp_font_color = #e1e1e1 100
execp_markup = 1
execp_background_id = 0
execp_padding = 8 2 8
execp_lclick_command = staty.sh mpd toggle
execp_mclick_command =
execp_rclick_command = sh -c 'urxvtc -name popup -e ncmpcpp || urxvt -name popup -e ncmpcpp'
execp_uwheel_command = staty.sh mpd prev
execp_dwheel_command = staty.sh mpd next
ob_taskbar.greybird
\ No newline at end of file
ob_taskbar.windowlab
\ No newline at end of file
......@@ -85,7 +85,7 @@ urgent_nb_of_blink = 7
task_maximum_size = 0 0
task_padding = 8 2 15
task_font = Terminus 12
task_tooltip = 0
task_tooltip = 1
task_font_color = #787c7d 100
task_active_font_color = #2e3436 100
task_urgent_font_color = #4a90d9 100
......
......@@ -85,7 +85,7 @@ urgent_nb_of_blink = 7
task_maximum_size = 0 0
task_padding = 8 2 15
task_font = Terminus 12
task_tooltip = 0
task_tooltip = 1
task_font_color = #898b8b 100
task_active_font_color = #f4f4f4 100
task_urgent_font_color = #215d9c 100
......
......@@ -86,7 +86,7 @@ urgent_nb_of_blink = 7
task_maximum_size = 0 0
task_padding = 8 2 15
task_font = Terminus 12
task_tooltip = 0
task_tooltip = 1
task_font_color = #686868 100
task_active_font_color = #212121 100
task_urgent_font_color = #398ee7 100
......
#-------------------------------------
# Backgrounds
#-------------------------------------
# Background 1
rounded = 0
border_width = 2
border_sides = TB
background_color = #cecece 100
border_color = #000000 100
background_color_hover = #cecece 100
border_color_hover = #000000 100
background_color_pressed = #cecece 100
border_color_pressed = #000000 100
# Background 2
rounded = 0
border_width = 0
background_color = #cecece 100
border_color = #000000 100
background_color_hover = #cecece 100
border_color_hover = #000000 100
background_color_pressed = #cecece 100
border_color_pressed = #000000 100
# Background 3
rounded = 0
border_width = 2
border_sides = R
background_color = #cecece 100
border_color = #000000 100
background_color_hover = #cecece 100
border_color_hover = #000000 100
background_color_pressed = #cecece 100
border_color_pressed = #000000 100
# Background 4
rounded = 0
border_width = 2
border_sides = R
background_color = #f0d000 100
border_color = #000000 100
background_color_hover = #f0d000 100
border_color_hover = #000000 100
background_color_pressed = #f0d000 100
border_color_pressed = #000000 100
# Background 5
rounded = 0
border_width = 2
border_sides = R
background_color = #398ee7 100
border_color = #000000 100
background_color_hover = #398ee7 100
border_color_hover = #000000 100
background_color_pressed = #398ee7 100
border_color_pressed = #000000 100
#-------------------------------------
# Panel
#-------------------------------------
panel_items = TC
panel_size = 100% 26
panel_margin = 0 0
panel_padding = 0 0 0
panel_background_id = 1
wm_menu = 1
panel_dock = 0
panel_position = top center horizontal
panel_layer = bottom
panel_monitor = 1
primary_monitor_first = 1
autohide = 0
autohide_show_timeout = 0
autohide_hide_timeout = 0
autohide_height = 1
strut_policy = follow_size
panel_window_name = tint2
disable_transparency = 0
mouse_effects = 0
font_shadow = 0
mouse_hover_icon_asb = 100 0 10
mouse_pressed_icon_asb = 100 0 0
#-------------------------------------
# Taskbar
#-------------------------------------
taskbar_mode = single_desktop
taskbar_padding = 0 0 0
taskbar_background_id = 2
taskbar_active_background_id = 2
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_background_id = 3
taskbar_name_active_background_id = 3
taskbar_name_font = Terminus Bold 10
taskbar_name_font_color = #000000 100
taskbar_name_active_font_color = #000000 100
taskbar_distribute_size = 0
taskbar_sort_order = none
task_align = left
#-------------------------------------
# Task
#-------------------------------------
task_text = 1
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_tooltip = 1
task_font_color = #000000 100
task_iconified_font_color = #000000 50
task_icon_asb = 100 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 98 0 0
task_background_id = 3
task_active_background_id = 4
task_urgent_background_id = 5
task_iconified_background_id = 3
mouse_left = toggle_iconify
mouse_middle = maximize_restore
mouse_right = shade
mouse_scroll_up = none
mouse_scroll_down = none
#-------------------------------------
# Clock
#-------------------------------------
time1_format = %T
time2_format =
time1_font = Terminus Bold 10
time1_timezone =
time2_timezone =
time2_font = Terminus 10
clock_font_color = #000000 100
clock_padding = 10 0
clock_background_id = 2
clock_tooltip = %A, %d %B %Y
clock_tooltip_timezone =
clock_lclick_command = gsimplecal
clock_rclick_command =
clock_mclick_command =
clock_uwheel_command =
clock_dwheel_command =
#-------------------------------------
# Tooltip
#-------------------------------------
tooltip_padding = 8 8
tooltip_show_timeout = 1
tooltip_hide_timeout = 0
tooltip_background_id = 1
tooltip_font_color = #000000 100
tooltip_font = Terminus Bold 10
#define close_width 8
#define close_height 8
static unsigned char close_bits[] = {
0xc3, 0xe7, 0x7e, 0x3c, 0x3c, 0x7e, 0xe7, 0xc3 };
#define close_pressed_width 10
#define close_pressed_height 10
static unsigned char close_pressed_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x0c, 0x03, 0x9c, 0x03, 0xf8, 0x01, 0xf0, 0x00,
0xf0, 0x00, 0xf8, 0x01, 0x9c, 0x03, 0x0c, 0x03 };
#define desk_width 8
#define desk_height 8
static unsigned char desk_bits[] = {
0x00, 0x00, 0x48, 0x78, 0x7f, 0x78, 0x48, 0x00 };
#define desk_toggled_width 8
#define desk_toggled_height 8
static unsigned char desk_toggled_bits[] = {
0x00, 0x66, 0x66, 0x00, 0x00, 0x66, 0x66, 0x00 };
#define iconify_width 8
#define iconify_height 8
static unsigned char iconify_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0xff };
#define iconify_pressed_width 10
#define iconify_pressed_height 10
static unsigned char iconify_pressed_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xfc, 0x03, 0xfc, 0x03 };
#define max_width 8
#define max_height 8
static unsigned char max_bits[] = {
0xff, 0xff, 0x81, 0x81, 0x81, 0x81, 0x81, 0xff };
#define max_pressed_width 10
#define max_pressed_height 10
static unsigned char max_pressed_bits[] = {
0x00, 0x00, 0x00, 0x00, 0xfc, 0x03, 0xfc, 0x03, 0x04, 0x02, 0x04, 0x02,
0x04, 0x02, 0x04, 0x02, 0x04, 0x02, 0xfc, 0x03 };
#define max_toggled_width 8
#define max_toggled_height 8
static unsigned char max_toggled_bits[] = {
0xfc, 0xfc, 0x84, 0x9f, 0x91, 0xf1, 0x11, 0x1f };
#define shade_width 8
#define shade_height 8
static unsigned char shade_bits[] = {
0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
#define shade_pressed_width 10
#define shade_pressed_height 10
static unsigned char shade_pressed_bits[] = {
0x00, 0x00, 0x00, 0x00, 0xfc, 0x03, 0xfc, 0x03, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
# Name: MyWindowLab
# Authoer: aguslr
# Based on windowlab from Xavier Benderitter <[email protected]>
# https://www.box-look.org/p/1017202/
# Menu settings
menu.title.bg: Flat Solid
menu.title.bg.color: #F0D000
menu.title.text.color: #000000
menu.title.text.justify: Left
menu.items.bg: Flat Solid
menu.items.bg.color: #CECECE
menu.items.text.color: #000000
menu.items.disabled.text.color: #000000
menu.items.active.bg: Flat Vertical
menu.items.active.bg.color: #F0D000
menu.items.active.text.color: #000000
menu.separator.width: 2
menu.separator.padding.height: 0
menu.separator.padding.width: 0
menu.separator.color: #000000
# OSD settings
osd.bg: Flat
osd.bg.color: #CECECE
osd.label.bg: Flat Solid
osd.label.bg.color: #F0D000
osd.label.text.color: #000000
osd.hilight.bg: Flat Solid
osd.hilight.bg.color: #F0D000
osd.border.width: 2
# Window settings (focused)
window.active.title.bg: Flat Vertical
window.active.title.bg.color: #F0D000
window.active.label.bg: Parentrelative
window.active.label.text.color: #000000
window.active.handle.bg: Flat Vertical
window.active.handle.bg.color: #000000
window.active.grip.bg: Flat Vertical
window.active.grip.bg.color: #000000
window.active.button.unpressed.bg: Flat Vertical
window.active.button.unpressed.bg.color: #F0D000
window.active.button.unpressed.image.color: #000000
window.active.button.pressed.bg: Flat Vertical
window.active.button.pressed.bg.color: #F0D000
window.active.button.pressed.image.color: #BDA400
window.active.button.disabled.bg: Flat Vertical
window.active.button.disabled.bg.color: #F0D000
window.active.button.disabled.image.color: #000000
window.active.button.toggled.bg: Flat Vertical
window.active.button.toggled.bg.color: #F0D000
window.active.button.toggled.image.color: #000000
# Window settings (unfocused)
window.inactive.title.bg: Flat Vertical
window.inactive.title.bg.color: #CECECE
window.inactive.label.bg: Parentrelative
window.inactive.label.text.color: #000000
window.inactive.handle.bg: Flat Vertical
window.inactive.handle.bg.color: #000000
window.inactive.grip.bg: Flat Vertical
window.inactive.grip.bg.color: #000000
window.inactive.button.unpressed.bg: Flat Vertical
window.inactive.button.unpressed.bg.color: #CECECE
window.inactive.button.unpressed.image.color: #000000
window.inactive.button.pressed.bg: Flat Vertical
window.inactive.button.pressed.bg.color: #CECECE
window.inactive.button.pressed.image.color: #BDA400
window.inactive.button.disabled.bg: Flat Vertical
window.inactive.button.disabled.bg.color: #CECECE
window.inactive.button.disabled.image.color: #000000
window.inactive.button.toggled.bg: Flat Vertical
window.inactive.button.toggled.bg.color: #CECECE
window.inactive.button.toggled.image.color: #000000
### Window geometry
border.width: 2
padding.height: 4
padding.width: 4
window.handle.width: 0
window.client.padding.width: 0
border.color: #000000
menu.overlap: 0
### Fonts
window.active.label.text.font:shadow=n
window.inactive.label.text.font:shadow=n
menu.items.font:
menu.title.text.font:shadow=n