Updated config files to current version

This commit is contained in:
2018-06-18 16:00:50 +02:00
parent 593a945d90
commit 2c2501b988
7 changed files with 154 additions and 131 deletions

View File

@@ -8,9 +8,9 @@ Below is a brief description of some of the tools that I use in the hope that so
bspwm bspwm
----- -----
This is a fantastic tiling window manager that represents windows as the leaves of a full binary tree. My scripts for bspwm supports single to multiple monitors, adjusting the workspaces depending on the amount of monitors that is detected during startup. These scripts for bspwm depends on the following applications. This is a fantastic tiling window manager that represents windows as the leaves of a full binary tree. My scripts for bspwm supports single to dual monitors, adjusting the workspaces depending on the amount of monitors that is detected during startup. These scripts for bspwm depends on the following applications.
* nitrogen (is a fast and lightweight desktop background browser and setter for X windows) * nitrogen (is a fast and lightweight desktop wallpaper setter for X windows)
* conky (is a extremely configurable system monitor) * conky (is a extremely configurable system monitor)
* sxhkd (is a simple X hotkey daemon with a powerful and compact configuration syntax) * sxhkd (is a simple X hotkey daemon with a powerful and compact configuration syntax)
* dunst (is a minimalistic notification daemon that can listen to notifications from libnotify) * dunst (is a minimalistic notification daemon that can listen to notifications from libnotify)

View File

@@ -1,48 +1,41 @@
!URxvt.depth: 32 Xft.dpi: 108
!URxvt*background: [80]#000000 Xft.autohint: 0
URxvt.background: #000000 Xft.lcdfilter: lcddefault
URxvt.foreground: #DEDEDE Xft.hintstyle: hintslight
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb
URxvt.depth: 32
URxvt*background: [97]#2E3440
URxvt.scrollBar: false URxvt.scrollBar: false
URxvt.geometry: 90x30 URxvt.geometry: 90x30
!URxvt.font: xft:Menlo for Powerline:size=10
URxvt.font: -misc-tamlin-medium-r-normal--16-116-100-100-c-80-iso10646-1 URxvt.font: -misc-tamlin-medium-r-normal--16-116-100-100-c-80-iso10646-1
!URxvt.letterSpace: -1
URxvt.colorMode: on URxvt.colorMode: on
URxvt.cursorBlink: true URxvt.cursorBlink: true
URxvt.cursorUnderline: false URxvt.cursorUnderline: false
URxvt.buffered: true URxvt.buffered: true
URxvt.borderless: true URxvt.borderless: true
URxvt.urlLauncher: /usr/bin/opera URxvt.urlLauncher: /usr/bin/firefox
URxvt.underlineURLs: false URxvt.underlineURLs: false
!Xft.dpi: 96
!Xft.autohint: false
!Xft.hinting: true
!Xft.hintstyle: hintfull
Xft.antialias: true
Xft.rgba: rgb
Xft.lcdfilter: lcddefault
! black *.foreground: #D8DEE9
*color0 : #2E3436 *.background: #2E3440
*color8 : #555753 *.cursorColor: #D8DEE9
! red
*color1 : #CC0000 *.color0: #3B4252
*color9 : #EF2929 *.color1: #BF616A
! green *.color2: #A3BE8C
*color2 : #4E9A06 *.color3: #EBCB8B
*color10 : #8AE234 *.color4: #81A1C1
! yellow *.color5: #B48EAD
*color3 : #C4A000 *.color6: #88C0D0
*color11 : #FCE94F *.color7: #E5E9F0
! blue *.color8: #4C566A
*color4 : #3465A4 *.color9: #BF616A
*color12 : #729FCF *.color10: #A3BE8C
! magenta *.color11: #EBCB8B
*color5 : #75507B *.color12: #81A1C1
*color13 : #AD7FA8 *.color13: #B48EAD
! cyan *.color14: #8FBCBB
*color6 : #06989A *.color15: #ECEFF4
*color14 : #34E2E2
! white
*color7 : #D3D7CF
*color15 : #EEEEEC

View File

@@ -1,4 +1,4 @@
#! /usr/bin/bash #!/usr/bin/bash
# bspwm config # bspwm config
bspc config border_width 2 bspc config border_width 2
@@ -26,19 +26,22 @@ else
fi fi
# application rules # application rules
bspc rule -a Chromium desktop=web bspc rule -a Firefox desktop=web
bspc rule -a Steam follow=off state=floating desktop=games bspc rule -a Steam follow=off state=floating desktop=games
bspc rule -a Galculator state=floating bspc rule -a Galculator state=floating
bspc rule -a RocketLeague border=off
bspc rule -a Nvidia-settings state=floating bspc rule -a Nvidia-settings state=floating
bspc rule -a obs state=floating bspc rule -a obs state=floating
bspc rule -a Pavucontrol state=floating bspc rule -a Pavucontrol state=floating
bspc rule -a "TeamSpeak 3" state=floating bspc rule -a "TeamSpeak 3" state=floating
bspc rule -a Nitrogen state=floating bspc rule -a Nitrogen state=floating
bspc rule -a Vividhue state=floating
# compositor # compositor
compton -b compton -b
# set cursor to expected left-pointer
xsetroot -cursor_name left_ptr
# restore wallpaper # restore wallpaper
nitrogen --restore nitrogen --restore
@@ -50,3 +53,6 @@ sxhkd &
# desktop notifications # desktop notifications
dunst & dunst &
# hide mouse when idle
unclutter &

View File

@@ -11,9 +11,9 @@ conky.config = {
conky.text = [[ conky.text = [[
S\ S\
%{c}\ %{c}\
%{F\#a7a5a5}%{B\#000000}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} ${upspeedf br0}K \ %{F\#a7a5a5}%{B\#000000}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} ${upspeedf enp2s0}K \
%{F\#a7a5a5}%{B\#504e4e}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} ${downspeedf br0}K \ %{F\#a7a5a5}%{B\#504e4e}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} ${downspeedf enp2s0}K \
%{F\#a7a5a5}%{B\#504e4e}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} ${hwmon 0 temp 1}°\ %{F\#a7a5a5}%{B\#504e4e}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} ${exec cat /sys/class/hwmon/hwmon0/temp1_input | cut -c-2 }°\
%{F\#504e4e}%{B\#a7a5a5}%{F\#a7a5a5}%{B\#504e4e}%{F\#d6d3d2}%{B\#504e4e}  ${cpu cpu0}%\ %{F\#504e4e}%{B\#a7a5a5}%{F\#a7a5a5}%{B\#504e4e}%{F\#d6d3d2}%{B\#504e4e}  ${cpu cpu0}%\
%{F\#504e4e}%{B\#a7a5a5}%{F\#a7a5a5}%{B\#504e4e}%{F\#d6d3d2}%{B\#504e4e}  ${mem}\ %{F\#504e4e}%{B\#a7a5a5}%{F\#a7a5a5}%{B\#504e4e}%{F\#d6d3d2}%{B\#504e4e}  ${mem}\
%{F\#504e4e}%{B\#a7a5a5}%{F\#a7a5a5}%{B\#000000}\ %{F\#504e4e}%{B\#a7a5a5}%{F\#a7a5a5}%{B\#000000}\
@@ -21,7 +21,7 @@ S\
%{F\#a7a5a5}%{B\#000000}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} \ %{F\#a7a5a5}%{B\#000000}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} \
${exec pamixer --get-volume}% \ ${exec pamixer --get-volume}% \
%{F\#a7a5a5}%{B\#504e4e}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} \ %{F\#a7a5a5}%{B\#504e4e}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} \
${texeci 60 mosquitto_sub -C 1 -t "study/sensor/temperature"}° \ ${texeci 24 ~/.config/bspwm/localtemp} \
%{F\#a7a5a5}%{B\#504e4e}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} ${time %a %b %d, %T} \ %{F\#a7a5a5}%{B\#504e4e}%{F\#504e4e}%{B\#a7a5a5}%{F\#d6d3d2}%{B\#504e4e} ${time %a %b %d, %T} \
%{F\#a7a5a5}%{B\#504e4e}%{B\#000000}\ %{F\#a7a5a5}%{B\#504e4e}%{B\#000000}\
]] ]]

View File

@@ -1,4 +1,4 @@
#! /usr/bin/bash #!/usr/bin/bash
PANEL_FIFO=/tmp/panel-fifo PANEL_FIFO=/tmp/panel-fifo
PANEL_HEIGHT=16 PANEL_HEIGHT=16
PANEL_FONT="-misc-tamlin-medium-r-normal--16-116-100-100-c-80-iso10646-1" PANEL_FONT="-misc-tamlin-medium-r-normal--16-116-100-100-c-80-iso10646-1"
@@ -10,8 +10,8 @@ COLOR_GREY2="#a7a5a5"
COLOR_GREY3="#504e4e" COLOR_GREY3="#504e4e"
if xdo id -a "$PANEL_WM_NAME" > /dev/null ; then if xdo id -a "$PANEL_WM_NAME" > /dev/null ; then
printf "%s\n" "The panel is already running." >&2 printf "%s\n" "The panel is already running." >&2
exit 1 exit 1
fi fi
trap 'trap - TERM; kill 0' INT TERM QUIT EXIT trap 'trap - TERM; kill 0' INT TERM QUIT EXIT
@@ -26,70 +26,71 @@ bspc config top_padding $PANEL_HEIGHT
bspc subscribe report > "$PANEL_FIFO" & bspc subscribe report > "$PANEL_FIFO" &
while read -r line ; do while read -r line ; do
case $line in case $line in
S*) S*)
# conky output # conky output
sys="${line#?}" sys="${line#?}"
;; ;;
W*) W*)
# bspwm's state # bspwm's state
wm="" wm=""
IFS=':' IFS=':'
mon=0 mon=0
set -- ${line#?} set -- ${line#?}
while [ $# -gt 0 ] ; do while [ $# -gt 0 ] ; do
item=$1 item=$1
name=${item#?} name=${item#?}
case $item in case $item in
[mM]*) [mM]*)
if [ $num_mon -ge 2 ]; then if [ $num_mon -ge 2 ]; then
mon=$((mon+1)) mon=$((mon+1))
if [ $mon -gt 1 ]; then if [ $mon -gt 1 ]; then
wm="${wm}%{F${COLOR_GREY2}}%{B${COLOR_BLACK}};" wm="${wm}%{F${COLOR_GREY2}}%{B${COLOR_BLACK}};"
fi fi
fi
;;
[fFoOuU]*)
case $item in
f*)
# free desktop
FG=$COLOR_GREY2
BG=$COLOR_BLACK
;;
F*)
# focused free desktop
FG=$COLOR_GREY1
BG=$COLOR_GREY3
;;
o*)
# occupied desktop
FG=$COLOR_GREY2
BG=$COLOR_BLACK
;;
O*)
# focused occupied desktop
FG=$COLOR_GREY1
BG=$COLOR_GREY3
;;
esac
wm="${wm}%{F${COLOR_GREY2}}%{B${BG}}%{F${FG}}%{A:bspc desktop -f ${name}:} ${name}%{A}%{F${BG}}%{B${COLOR_GREY2}}"
;;
esac
shift
done
;;
esac
while IFS=';' read -ra array; do
bar=""
for item in "${!array[@]}"; do
bar=${bar}"%{l}${array[${item}]}"
if [ ${item} -lt $((${#array[@]} - 1)) ]; then
bar=${bar}"${sys}%{S+}"
fi fi
done ;;
done <<< ${wm} [fFoOuU]*)
case $item in
f*)
# free desktop
FG=$COLOR_GREY2
BG=$COLOR_BLACK
;;
F*)
# focused free desktop
FG=$COLOR_GREY1
BG=$COLOR_GREY3
;;
o*)
# occupied desktop
FG=$COLOR_GREY2
BG=$COLOR_BLACK
;;
O*)
# focused occupied desktop
FG=$COLOR_GREY1
BG=$COLOR_GREY3
;;
esac
printf "%s\n" "${bar}%{F${COLOR_GREY2}}%{B${COLOR_BLACK}}${sys}" wm="${wm}%{F${COLOR_GREY2}}%{B${BG}}%{F${FG}}%{A:bspc desktop -f ${name}:} ${name}%{A}%{F${BG}}%{B${COLOR_GREY2}}"
;;
esac
shift
done
;;
esac
done < "$PANEL_FIFO" | lemonbar -a 10 -n "$PANEL_WM_NAME" -g x$PANEL_HEIGHT -f "$PANEL_FONT" -F "$COLOR_GREY2" -B "$COLOR_BLACK" | /usr/bin/dash while IFS=';' read -ra array; do
bar=""
for item in "${!array[@]}"; do
bar=${bar}"%{l}${array[${item}]}"
if [ ${item} -lt $((${#array[@]} - 1)) ]; then
bar=${bar}"${sys}%{S+}"
fi
done
done <<< ${wm}
printf "%s\n" "${bar}%{F${COLOR_GREY2}}%{B${COLOR_BLACK}}${sys}"
done < "$PANEL_FIFO" | lemonbar -a 10 -n "$PANEL_WM_NAME" -g x$PANEL_HEIGHT -f "$PANEL_FONT" -F "$COLOR_GREY2" -B "$COLOR_BLACK" | bash

View File

@@ -1,9 +1,41 @@
# Backend
backend = "glx"; backend = "glx";
glx-no-rebind-pixmap = true; paint-on-overlay = true;
glx-swap-method = "3"; glx-no-stencil = true;
opacity-rule = ["65:class_g = 'Bspwm' && class_i = 'presel_feedback'", "90:class_g = 'URxvt' && name != 'ranger'"]; unredir-if-possible = true;
# Fading
fading = true; fading = true;
fade-delta = 8; fade-delta = 10;
fade-in-step = 0.05; fade-in-step = 0.05;
fade-out-step = 0.05; fade-out-step = 0.05;
fade-exclude = [ ];
# Shadow
shadow = true;
no-dock-shadow = false;
no-dnd-shadow = true;
clear-shadow = true; # Zero the part of the shadow's mask behind the window (experimental).
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-exclude = [ "n:e:Notification" ];
# Opacity
detect-client-opacity = true;
menu-opacity = 1.00;
opacity-rule = [ "65:class_g = 'Bspwm' && class_i = 'presel_feedback'" ];
# Blur
#blur-background = true;
#blur-background-fixed = true;
#blur-kern = "3,3,0.1,1,1,1,1,1,1,1";
# Window type settings
wintypes:
{
tooltip = { fade = true; shadow = false; };
menu = { shadow = false; };
dropdown_menu = { shadow = false; };
popup_menu = { shadow = false; };
utility = { shadow = false; };
};

View File

@@ -5,10 +5,6 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then
unset f unset f
fi fi
# Export variables
export EDITOR=vim
export BROWSER=opera
# Start the gpg-agent if not already running # Start the gpg-agent if not already running
if ! pgrep -x -u "${USER}" gpg-agent &> /dev/null; then if ! pgrep -x -u "${USER}" gpg-agent &> /dev/null; then
eval $(gpg-agent --homedir "${HOME}/.gnupg" --daemon) eval $(gpg-agent --homedir "${HOME}/.gnupg" --daemon)
@@ -20,14 +16,9 @@ xrdb -merge ~/.Xresources
# Disable monitor blanking # Disable monitor blanking
xset s off -dpms xset s off -dpms
# Set cursor to expected left-pointer
xsetroot -cursor_name left_ptr
# Hide mouse when idle
unclutter &
# Run urxvt daemon # Run urxvt daemon
urxvtd -q -o -f urxvtd -q -o -f
# Start mpd # Export variables
mpd export EDITOR=vim
export BROWSER=firefox