From 424f233a504495ddf1bb80cbfdc8021bab531b57 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 17 Jul 2020 13:49:06 +0400 Subject: Added openbox config and changed .profile to load window manager when sourced on tty1 --- .config/openbox/autostart | 9 + .config/openbox/menu.xml | 35 ++ .config/openbox/rc.xml | 839 ++++++++++++++++++++++++++++++++++++++++++++++ .config/polybar/config | 38 ++- 4 files changed, 916 insertions(+), 5 deletions(-) create mode 100755 .config/openbox/autostart create mode 100644 .config/openbox/menu.xml create mode 100644 .config/openbox/rc.xml (limited to '.config') diff --git a/.config/openbox/autostart b/.config/openbox/autostart new file mode 100755 index 0000000..3486175 --- /dev/null +++ b/.config/openbox/autostart @@ -0,0 +1,9 @@ +#!/bin/sh + +# Polybar is starting when .xprofile is sourced, +# but in that case workspaces module won't start +# for openbox. This is dirty hack, but I don't +# need to change .xprofile +killall -q polybar + +polybar example & diff --git a/.config/openbox/menu.xml b/.config/openbox/menu.xml new file mode 100644 index 0000000..cd37853 --- /dev/null +++ b/.config/openbox/menu.xml @@ -0,0 +1,35 @@ + + + + + + x-terminal-emulator + + + + + x-www-browser + + + + + + + + + + obconf + + + + + + + + + + + + + + diff --git a/.config/openbox/rc.xml b/.config/openbox/rc.xml new file mode 100644 index 0000000..0ccd5f4 --- /dev/null +++ b/.config/openbox/rc.xml @@ -0,0 +1,839 @@ + + + + + 10 + 20 + + + yes + + no + + yes + + no + + 200 + + no + + + + Smart + +
yes
+ + Primary + + 1 + +
+ + Nord-Dark + NLIMC + + 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 + + + + + + 9 + 1 + + 0 + + + + yes + Nonpixel + + Center + + + + 10 + + 10 + + + + + + 0 + 0 + 0 + 0 + + + TopLeft + + 0 + 0 + no + Above + + Vertical + + no + 300 + + 300 + + Middle + + + + C-g + + + x-terminal-emulator + + + + + x-terminal-emulator -e htop + + + + + + left + no + + + + + right + no + + + + + left + no + + + + + right + no + + + + + + 1 + no + + + + + 2 + no + + + + + 3 + no + + + + + 4 + no + + + + + 5 + no + + + + + 6 + no + + + + + 7 + no + + + + + 8 + no + + + + + 9 + no + + + + + + 1 + + + + + 2 + + + + + 3 + + + + + 4 + + + + + 5 + + + + + 6 + + + + + 7 + + + + + 8 + + + + + 9 + + + + + + + + + + + + + + + + + client-menu + + + + + + scrot -s + + + + + + + + + + + + + + + + + + + + + + + + yes + yes + + + + + + + + + + + + true + Konqueror + + kfmclient openProfile filemanagement + + + + + + scrot + + + + + 1 + + 500 + + 400 + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + previous + + + + + next + + + + + previous + + + + + next + + + + + previous + + + + + next + + + + + + + + + + + + + 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 + + + + + + + + + /var/lib/openbox/debian-menu.xml + menu.xml + 200 + + no + + 100 + + 400 + + yes + + yes + + + + + +
diff --git a/.config/polybar/config b/.config/polybar/config index ae3df1b..9a87393 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -19,12 +19,12 @@ [colors] ;background = ${xrdb:color0:#222} ;background = #222 -background = #32302f +background = #2e3440 background-alt = #444 ;foreground = ${xrdb:color7:#222} ;foreground = #dfdfdf -foreground = #ebdbb2 +foreground = #eceff4 foreground-alt = #555 primary = #ffb52a @@ -59,9 +59,9 @@ font-0 = fixed:pixelsize=10;1 font-1 = unifont:fontformat=truetype:size=8:antialias=false;0 font-2 = siji:pixelsize=10;1 -modules-left = bspwm i3 +modules-left = bspwm i3 workspaces modules-center = date -modules-right = xbacklight pulseaudio xkeyboard memory cpu wlan eth battery temperature +modules-right = xbacklight alsa xkeyboard memory cpu wlan eth battery temperature tray-position = right tray-padding = 2 @@ -170,6 +170,34 @@ label-urgent-padding = 2 ; Separator in between workspaces ; label-separator = | +[module/workspaces] +type = internal/xworkspaces +format = + +pin-workspaces = false +enable-click = true +enable-scroll = false + +label-active = %index% +label-active-foreground = #ffffff +label-active-background = #000000 +label-active-underline = #00ff00 +label-active-padding = 2 + +label-empty = %index% +label-empty-padding = 2 + +icon-0 = 1;1 +icon-1 = 2;1 +icon-2 = 3;1 +icon-3 = 4;1 +icon-4 = 5;1 +icon-5 = 6;1 +icon-6 = 7;1 +icon-7 = 8;1 +icon-8 = 9;1 +icon-9 = 10;1 +icon-default = [module/mpd] type = internal/mpd @@ -246,7 +274,7 @@ ramp-signal-foreground = ${colors.foreground-alt} [module/eth] type = internal/network -interface = enp5s0 +interface = eth0 interval = 3.0 format-connected-underline = #55aa55 -- cgit v1.2.3