mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-05-29 14:11:05 +02:00
Remove Plasma with bspwm support
Use bspwm with XDG_CURRENT_DESKTOP=KDE instead.
This commit is contained in:
parent
e5d9de3946
commit
4f280b0780
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Set the color scheme with wal
|
# Set the color scheme with wal
|
||||||
wal -o ~/.config/wal/bspwm_and_dunst.sh -R -n
|
wal -Rn
|
||||||
|
@ -15,8 +15,10 @@ sxhkd &
|
|||||||
|
|
||||||
bspc monitor -d 1 2 3 4 5 6
|
bspc monitor -d 1 2 3 4 5 6
|
||||||
|
|
||||||
bspc config border_width 2
|
# Overall look (top_padding from polybar)
|
||||||
bspc config window_gap 30
|
bspc config top_padding 80
|
||||||
|
bspc config border_width 8
|
||||||
|
bspc config window_gap 20
|
||||||
|
|
||||||
bspc config split_ratio 0.50
|
bspc config split_ratio 0.50
|
||||||
|
|
||||||
@ -38,47 +40,28 @@ xmodmap ~/.xmodmap
|
|||||||
# Make caps lock (left ctrl) work as escape
|
# Make caps lock (left ctrl) work as escape
|
||||||
xcape -e 'Control_L=Escape'
|
xcape -e 'Control_L=Escape'
|
||||||
|
|
||||||
# If we're in KDE Plasma, then add bottom padding for
|
# Set a temporary black background to avoid flash
|
||||||
# the panel at the bottom.
|
~/.config/feh/tile.sh 000000
|
||||||
if [ "$XDG_CURRENT_DESKTOP" == "KDE" ]; then
|
|
||||||
bspc config window_gap 20
|
|
||||||
bspc config bottom_padding 58
|
|
||||||
|
|
||||||
# Make the application menu float instead of tile
|
# If running with VirtualBox client utilities, start them.
|
||||||
bspc rule -a plasmashell state=floating border=off
|
# Useful for automatically changing display resolution, etc.
|
||||||
|
if hash VBoxClient-all 2>/dev/null; then
|
||||||
else
|
VBoxClient-all
|
||||||
# Set a temporary black background to avoid flash
|
|
||||||
~/.config/feh/tile.sh 000000
|
|
||||||
|
|
||||||
# If running with VirtualBox client utilities, start them.
|
|
||||||
# Useful for automatically changing display resolution, etc.
|
|
||||||
if hash VBoxClient-all 2>/dev/null; then
|
|
||||||
VBoxClient-all
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Overall look (top_padding from polybar)
|
|
||||||
bspc config top_padding 80
|
|
||||||
bspc config border_width 8
|
|
||||||
bspc config window_gap 20
|
|
||||||
|
|
||||||
# Set the color scheme to a random one. Note that this command
|
|
||||||
# needs to be run after any screen resolution changes.
|
|
||||||
wal -o ~/.config/wal/bspwm_and_dunst.sh -i ~/Pictures/Wallpapers
|
|
||||||
|
|
||||||
# Never blank the screen (disable power saving)
|
|
||||||
xset s off -dpms
|
|
||||||
|
|
||||||
# Start compton
|
|
||||||
compton -b
|
|
||||||
|
|
||||||
# Start polybar
|
|
||||||
~/.config/polybar/launch.sh
|
|
||||||
|
|
||||||
# Start a terminal
|
|
||||||
# urxvtcd &
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set the color scheme to a random one. Note that this command
|
||||||
|
# needs to be run after any screen resolution changes.
|
||||||
|
wal -o ~/.config/wal/bspwm_and_dunst.sh -i ~/Pictures/Wallpapers
|
||||||
|
|
||||||
|
# Never blank the screen (disable power saving)
|
||||||
|
xset s off -dpms
|
||||||
|
|
||||||
|
# Start compton
|
||||||
|
compton -b
|
||||||
|
|
||||||
|
# Start polybar
|
||||||
|
~/.config/polybar/launch.sh
|
||||||
|
|
||||||
# bspc rules
|
# bspc rules
|
||||||
bspc rule -a mpv state=floating
|
bspc rule -a mpv state=floating
|
||||||
bspc rule -a feh state=floating
|
bspc rule -a feh state=floating
|
||||||
|
@ -1 +0,0 @@
|
|||||||
export KDEWM=/usr/bin/bspwm
|
|
@ -3,17 +3,12 @@
|
|||||||
# Source the colors from wal
|
# Source the colors from wal
|
||||||
source "${HOME}/.cache/wal/colors.sh"
|
source "${HOME}/.cache/wal/colors.sh"
|
||||||
|
|
||||||
# Set the border colors if bspwm is running
|
# Set the border colors
|
||||||
if [ -n "$(wmctrl -m | grep 'bspwm')" ]; then
|
bspc config normal_border_color "$color1"
|
||||||
bspc config normal_border_color "$color1"
|
bspc config active_border_color "$color2"
|
||||||
bspc config active_border_color "$color2"
|
bspc config focused_border_color "$color15"
|
||||||
bspc config focused_border_color "$color15"
|
bspc config presel_feedback_color "$color1"
|
||||||
bspc config presel_feedback_color "$color1"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Restart dunst with the new color scheme, only if
|
# Restart dunst with the new color scheme
|
||||||
# we're not using Plasma
|
pkill dunst
|
||||||
if ! [ "$DESKTOP_SESSION" == "Plasma" ]; then
|
dunst -conf "${HOME}/.cache/wal/dunstrc" &
|
||||||
pkill dunst
|
|
||||||
dunst -conf "${HOME}/.cache/wal/dunstrc"
|
|
||||||
fi
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user