From c506bd42ffc83a309535509f5692afac92083a67 Mon Sep 17 00:00:00 2001 From: Joe Date: Mon, 9 Jan 2023 15:55:03 +0100 Subject: openbox --- .config/conkyrc | 88 +++++ .config/openbox/autostart | 17 + .config/openbox/environment | 10 + .config/openbox/menu.xml | 185 ++++++++++ .config/openbox/rc.xml | 880 ++++++++++++++++++++++++++++++++++++++++++++ .config/tint2/tint2rc | 167 +++++++++ .config/x11/xinitrc | 6 +- 7 files changed, 1351 insertions(+), 2 deletions(-) create mode 100755 .config/conkyrc create mode 100755 .config/openbox/autostart create mode 100755 .config/openbox/environment create mode 100755 .config/openbox/menu.xml create mode 100755 .config/openbox/rc.xml create mode 100755 .config/tint2/tint2rc (limited to '.config') diff --git a/.config/conkyrc b/.config/conkyrc new file mode 100755 index 0000000..2caf268 --- /dev/null +++ b/.config/conkyrc @@ -0,0 +1,88 @@ +conky.config = { + alignment = 'left', + background = false, + own_window = true, + own_window_class = 'Desktop', + own_window_transparent = true, + own_window_type = 'desktop', + own_window_argb_visual = true, + own_window_argb_value = 255, + double_buffer = true, + use_spacer = 'none', + use_xft = true, + xftalpha = 1, + font = 'hack nerd font:regular:size=12', + update_interval = 1.5, + uppercase = false, + override_utf8_locale = true, + stippled_borders = 1, + border_width = 1, + draw_borders = false, + draw_graph_borders = true, + draw_outline = false, + draw_shades = false, + show_graph_scale = false, + show_graph_range = false, + alignment = 'top_right', + minimum_width = 365, + minimum_height = 1030, + maximum_width = 365, + gap_x = 05, + gap_y = 350, + net_avg_samples = 2, + cpu_avg_samples = 4, + short_units = true, + pad_percents = 2, + text_buffer_size = 8192, + out_to_console = false, + out_to_stderr = false, + extra_newline = false, + default_color = 'red', +} + +conky.text = [[ +${color grey}${alignc}${time %A %e %B %Y : %Hh%M} +${hr} +${color grey}Fête du jour: ${font Hack:bold:size=12}${color white}${texeci 1000 wget -O - -q http://fetedujour.fr/ --user-agent="Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Firefox/31.0" | grep "Fête du jour" | head -1 | cut -d">" -f4 | cut -d"<" -f1 | sed -e 's/Nativité/jozan/' }${font} +${hr} +${color grey}Uptime : ${color white}${uptime} +${hr} +${color grey}CPU: ${font Hack:bold:size=12}${color white} ${freq_g} GHz ${color white}${if_match ${cpu}>80}${color red}${else}${endif}${cpu}% ${cpubar 6} +${offset 4}${cpugraph bfbfbf c0c0c0}${color white} +${color grey}1:${color white} ${if_match ${cpu cpu0}>80}${color red}${else}${endif}${cpu cpu0}% ${cpubar cpu0}${color white} +${color grey}2:${color white} ${if_match ${cpu cpu1}>80}${color red}${else}${endif}${cpu cpu1}% ${cpubar cpu1}${color white} +${color grey}3:${color white} ${if_match ${cpu cpu2}>80}${color red}${else}${endif}${cpu cpu2}% ${cpubar cpu2}${color white} +${color grey}4:${color white} ${if_match ${cpu cpu3}>80}${color red}${else}${endif}${cpu cpu3}% ${cpubar cpu3}${color white} +${color grey}5:${color white} ${if_match ${cpu cpu4}>80}${color red}${else}${endif}${cpu cpu4}% ${cpubar cpu4}${color white} +${color grey}6:${color white} ${if_match ${cpu cpu5}>80}${color red}${else}${endif}${cpu cpu5}% ${cpubar cpu5}${color white} +${color grey}7:${color white} ${if_match ${cpu cpu6}>80}${color red}${else}${endif}${cpu cpu6}% ${cpubar cpu6}${color white} +${color grey}8:${color white} ${if_match ${cpu cpu7}>80}${color red}${else}${endif}${cpu cpu7}% ${cpubar cpu7}${color white}${font} +${hr} +${color grey}RAM: ${font Hack:bold:size=12}${color white}${mem} / ${memmax} ${color white}${if_match ${memperc}>80}${color red}${else}${endif}${memperc}% ${membar 4}${font} +${offset 4}${memgraph bfbfbf c0c0c0}${color white} +${color grey}SWAP: ${font Hack:bold:size=12}${color white}${swap} / ${swapmax} ${color white}${if_match ${swapperc}>80}${color red}${else}${endif}${swapperc}% ${swapbar 4}${font} +${hr} +${color grey}SSD: ${font Hack:bold:size=12}${color white}${if_match ${fs_free_perc /}<20}${color red}${else}${endif}${fs_free_perc /}% ${fs_bar 6 /}${font} +${hr} +${color grey}Process: ${color grey}${alignr} PID CPU MEM +${font Hack:bold:size=12}${color white} ${top name 1} ${alignr}${top pid 1} ${top cpu 1} ${top mem 1} +${color grey} ${top name 2} ${alignr}${top pid 2} ${top cpu 2} ${top mem 2} +${color white} ${top name 3} ${alignr}${top pid 3} ${top cpu 3} ${top mem 3} +${color grey} ${top name 4} ${alignr}${top pid 4} ${top cpu 4} ${top mem 4}${font} +${color grey}--------- +${color grey}Processes: ${color white}${processes} +${hr} +${color grey}IP LAN : ${font Hack:bold:size=12}${color white}${addr re0}${font} +${color grey}--------- +${color grey}IP VPN : ${font Hack:bold:size=12}${color white}${addr proton0}${font} +${hr} +${color grey}Down: ${color white}${downspeed re0} - ${font}${color grey}Up: ${font Hack:bold:size=12}${upspeed re0}${font} +${color grey}Down: ${color white}${downspeedgraph re0 bfbfbf c0c0c0 125829120} +${color grey}Up: ${color white}${upspeedgraph re0 bfbfbf c0c0c0 125829120} +${hr} +${color grey}Dns: +${font Hack:bold:size=12}${color white}${exec cat /etc/resolv.conf}${font} +${hr} +${color grey}IP Public:${color white}${alignc}${font Hack:bold:size=12}${exec curl -s https://ifconfig.me}${font}${color grey} +${hr} +]] diff --git a/.config/openbox/autostart b/.config/openbox/autostart new file mode 100755 index 0000000..4bc1506 --- /dev/null +++ b/.config/openbox/autostart @@ -0,0 +1,17 @@ +# +# These things are run when an Openbox X Session is started. +# You may place a similar script in $HOME/.config/openbox/autostart +# to run user-specific things. +# + +# If you want to use GNOME config tools... +# +#if test -x /usr/lib/openbox/gnome-settings-daemon >/dev/null; then +# /usr/lib/openbox/gnome-settings-daemon & +#elif which gnome-settings-daemon >/dev/null 2>&1; then +# gnome-settings-daemon & +#fi + +# If you want to use XFCE config tools... +# +#xfce-mcs-manager & diff --git a/.config/openbox/environment b/.config/openbox/environment new file mode 100755 index 0000000..3311bd6 --- /dev/null +++ b/.config/openbox/environment @@ -0,0 +1,10 @@ +# +# Set system-wide environment variables here for Openbox +# User-specific variables should be placed in $HOME/.config/openbox/environment +# + +# To set your language for displaying messages and time/date formats, use the following: +#LANG=en_CA.UTF8 + +# To set your keyboard layout, you need to modify your X config: +# http://www.google.com/search?q=how+to+set+keyboard+layout+xorg diff --git a/.config/openbox/menu.xml b/.config/openbox/menu.xml new file mode 100755 index 0000000..a9d3269 --- /dev/null +++ b/.config/openbox/menu.xml @@ -0,0 +1,185 @@ + + + + + + + + pcmanfm + + yes + + + + + + + + + alacritty -e nvim + + yes + NeoVim + + + + + + emacs + + yes + Emacs + + + + + + alacritty -e emacs-nw + + yes + Emacs + + + + + + + + + alacritty + + yes + + + + + st + + + + + + steam + + + lutris + + + + + + + iridium --force-dark-mode + + yes + iridium + + + + + + firefox + + yes + Firefox + + + + + + discord + + yes + + + + + + + + + + + + gimp + + yes + + + + + + + + + obconf-qt + yes + + + + + tint2conf + yes + + + + + lxappearance + yes + + + + + + + + + + + + + alacritty + + yes + + + + + + pcmanfm + + yes + + + + + + iridium-browser --force-dark-mode + + yes + iridium + + + + + + + + + + + + + + + + + + + + yes + + + + + diff --git a/.config/openbox/rc.xml b/.config/openbox/rc.xml new file mode 100755 index 0000000..cd5cfc6 --- /dev/null +++ b/.config/openbox/rc.xml @@ -0,0 +1,880 @@ + + + + + 10 + 20 + + + yes + + no + + yes + + no + + 200 + + no + + + + Smart + +
yes
+ + Active + + 1 + +
+ + Clearlooks-Phenix + SNLIMC + + yes + yes + + sans + 8 + + bold + + normal + + + + sans + 8 + + bold + + normal + + + + sans + 9 + + normal + + normal + + + + sans + 9 + + normal + + normal + + + + sans + 9 + + bold + + normal + + + + sans + 9 + + bold + + normal + + + + + + 10 + 1 + + + + 0 + + + + yes + Nonpixel + + Center + + + + 10 + + 10 + + + + + + 0 + 0 + 0 + 0 + + + TopLeft + + 0 + 0 + no + Above + + Vertical + + no + 300 + + 300 + + Middle + + + + C-g + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + 5 + + + + + 5 + + + + + 6 + + + + + 7 + + + + + 8 + + + + + 9 + + + + + 10 + + + + + 1 + no + + + + + 2 + no + + + + + 3 + no + + + + + 4 + no + + + + + 5 + no + + + + + 6 + no + + + + + 7 + no + + + + + 8 + no + + + + + 9 + no + + + + + 10 + no + + + + + + + + + + + + + + + + + + + + + + + client-menu + + + + + + + + + + + + + + + + + + + + + + + + yes + yes + + + + + + + + + + + right + + + + + left + + + + + up + + + + + down + + + + + + + true + dmenu + + dmenu_run + + + + + + true + alacritty + + alacritty + + + + + /home/jozan/.local/bin/dmpc + + + + + pcmanfm + + yes + + + + + + + true + iridium + + iridium-browser --force-dark-mode + + + + + + /home/jozan/.local/bin/dmlog + + + + + /home/jozan/.local/bin/dmlog + + + + + yes + + + + + + + + root-menu + + + + + 1 + + 500 + + 400 + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + no + + + + + + + + + + + yes + + + + + + + + + + + + + + + + + + + + + + + client-menu + + + + + + + top + + + + + + + left + + + + + + + right + + + + + + + bottom + + + + + + + client-menu + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + client-menu + + + + + + + client-menu + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + vertical + + + + + horizontal + + + + + + + + + + + + + + + + + previous + + + + + next + + + + + previous + + + + + next + + + + + previous + + + + + next + + + + + + + + + + + + + + + + client-list-combined-menu + + + + + root-menu + + + + + + + previous + + + + + next + + + + + previous + + + + + next + + + + + + + + menu.xml + 200 + + no + + 0 + + 400 + + yes + + yes + + + + + +
diff --git a/.config/tint2/tint2rc b/.config/tint2/tint2rc new file mode 100755 index 0000000..316e330 --- /dev/null +++ b/.config/tint2/tint2rc @@ -0,0 +1,167 @@ +#---- Generated by tint2conf a049 ---- +# See https://gitlab.com/o9000/tint2/wikis/Configure for +# full documentation of the configuration options. +#------------------------------------- +# Backgrounds +# Background 1: Active taskbar, Inactive taskbar, Panel +rounded = 0 +border_width = 1 +background_color = #cecece 100 +border_color = #4a4a4a 100 +background_color_hover = #cecece 100 +border_color_hover = #4a4a4a 100 +background_color_pressed = #cecece 100 +border_color_pressed = #4a4a4a 100 + +# Background 2: Active task +rounded = 0 +border_width = 0 +background_color = #83a7e0 100 +border_color = #000000 100 +background_color_hover = #8fb6f3 100 +border_color_hover = #000000 100 +background_color_pressed = #bdd1f1 100 +border_color_pressed = #000000 100 + +# Background 3: Urgent task +rounded = 0 +border_width = 0 +background_color = #ffd462 100 +border_color = #000000 100 +background_color_hover = #ffd462 100 +border_color_hover = #000000 100 +background_color_pressed = #f1e3bd 100 +border_color_pressed = #000000 100 + +#------------------------------------- +# Panel +panel_items = LTSC +panel_size = 100% 25 +panel_margin = 0 0 +panel_padding = 0 0 0 +panel_background_id = 1 +wm_menu = 1 +panel_dock = 0 +panel_position = bottom center horizontal +panel_layer = bottom +panel_monitor = all +primary_monitor_first = 0 +autohide = 0 +autohide_show_timeout = 0 +autohide_hide_timeout = 0 +autohide_height = 1 +strut_policy = follow_size +panel_window_name = tint2 +disable_transparency = 1 +mouse_effects = 1 +font_shadow = 0 +mouse_hover_icon_asb = 100 -2 10 +mouse_pressed_icon_asb = 100 0 0 + +#------------------------------------- +# Taskbar +taskbar_mode = single_desktop +taskbar_padding = 0 0 0 +taskbar_background_id = 1 +taskbar_active_background_id = 1 +taskbar_name = 1 +taskbar_hide_inactive_tasks = 0 +taskbar_hide_different_monitor = 1 +taskbar_always_show_all_desktop_tasks = 0 +taskbar_name_padding = 0 0 +taskbar_name_background_id = 0 +taskbar_name_active_background_id = 0 +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 = 0 +task_icon = 0 +task_centered = 0 +urgent_nb_of_blink = 0 +task_maximum_size = 0 0 +task_padding = 0 0 0 +task_tooltip = 0 +task_font_color = #000000 100 +task_active_background_id = 2 +task_urgent_background_id = 3 +mouse_left = toggle_iconify +mouse_middle = none +mouse_right = toggle_iconify +mouse_scroll_up = none +mouse_scroll_down = none + +#------------------------------------- +# System tray (notification area) +systray_padding = 0 0 0 +systray_background_id = 0 +systray_sort = ascending +systray_icon_size = 0 +systray_icon_asb = 100 0 0 +systray_monitor = 1 + +#------------------------------------- +# Launcher +launcher_padding = 0 0 5 +launcher_background_id = 0 +launcher_icon_background_id = 0 +launcher_icon_size = 0 +launcher_icon_asb = 100 0 0 +launcher_icon_theme = Mist +launcher_icon_theme_override = 0 +startup_notifications = 0 +launcher_tooltip = 0 +launcher_item_app = /usr/share/applications/pcmanfm.desktop +launcher_item_app = /usr/share/applications/Alacritty.desktop +launcher_item_app = /usr/share/applications/iridium-browser.desktop +launcher_item_app = /usr/share/applications/steam.desktop +launcher_item_app = /usr/share/applications/net.lutris.Lutris.desktop +launcher_item_app = /usr/share/applications/discord.desktop + +#------------------------------------- +# Clock +time1_format = %H:%M +time2_format = +time1_font = Cantarell 11 +time1_timezone = +time2_timezone = +clock_font_color = #000000 100 +clock_padding = 0 0 +clock_background_id = 0 +clock_tooltip = +clock_tooltip_timezone = +clock_lclick_command = +clock_rclick_command = +clock_mclick_command = +clock_uwheel_command = +clock_dwheel_command = + +#------------------------------------- +# Battery +battery_tooltip = 1 +battery_low_status = 0 +battery_low_cmd = +battery_font_color = #000000 100 +battery_padding = 0 0 +battery_background_id = 0 +battery_hide = 100 +battery_lclick_command = +battery_rclick_command = +battery_mclick_command = +battery_uwheel_command = +battery_dwheel_command = +ac_connected_cmd = +ac_disconnected_cmd = + +#------------------------------------- +# Tooltip +tooltip_show_timeout = 0 +tooltip_hide_timeout = 0 +tooltip_padding = 0 0 +tooltip_background_id = 0 +tooltip_font_color = #000000 100 + diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc index 3aaa4ea..b94c83c 100644 --- a/.config/x11/xinitrc +++ b/.config/x11/xinitrc @@ -14,14 +14,16 @@ xset -dpms xsetroot -name 'Loading bar...' startif dunst startif picom -# startif lowbat +startif lowbat startif mpd-notification startif xscreensaver --no-splash startif dwmblocks startif sb-updatempd +startif tint2 +startif conky -d -c "$HOME"/.config/conkyrc # /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 fluxbox +dbus-launch openbox -- cgit v1.2.3