Initial commit
This commit is contained in:
commit
2572060511
8 changed files with 282 additions and 0 deletions
BIN
background
Normal file
BIN
background
Normal file
Binary file not shown.
After Width: | Height: | Size: 581 KiB |
2
change_to_tag
Executable file
2
change_to_tag
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
leftwm-command "SendWorkspaceToTag $1 $2"
|
15
down
Executable file
15
down
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||||
|
|
||||||
|
#set background
|
||||||
|
if [ -x "$(command -v feh)" ]; then
|
||||||
|
feh --bg-scale $SCRIPTPATH/down.jpg
|
||||||
|
fi
|
||||||
|
|
||||||
|
leftwm-command "UnloadTheme"
|
||||||
|
|
||||||
|
pkill compton
|
||||||
|
pkill picom
|
||||||
|
pkill polybar
|
||||||
|
|
BIN
down.jpg
Normal file
BIN
down.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 539 B |
39
mocha.ini
Normal file
39
mocha.ini
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
;-------------------------
|
||||||
|
; Catppuccin Mocha Palette
|
||||||
|
; Maintainer: justTOBBI
|
||||||
|
;--------------------------
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
base = #1e1e2e
|
||||||
|
mantle = #181825
|
||||||
|
crust = #11111b
|
||||||
|
|
||||||
|
text = #cdd6f4
|
||||||
|
subtext0 = #a6adc8
|
||||||
|
subtext1 = #bac2de
|
||||||
|
|
||||||
|
surface0 = #313244
|
||||||
|
surface1 = #45475a
|
||||||
|
surface2 = #585b70
|
||||||
|
|
||||||
|
overlay0 = #6c7086
|
||||||
|
overlay1 = #7f849c
|
||||||
|
overlay2 = #9399b2
|
||||||
|
|
||||||
|
|
||||||
|
blue = #89b4fa
|
||||||
|
lavender = #b4befe
|
||||||
|
sapphire = #74c7ec
|
||||||
|
sky = #89dceb
|
||||||
|
teal = #94e2d5
|
||||||
|
green = #a6e3a1
|
||||||
|
yellow = #f9e2af
|
||||||
|
peach = #fab387
|
||||||
|
maroon = #eba0ac
|
||||||
|
red = #f38ba8
|
||||||
|
mauve = #cba6f7
|
||||||
|
pink = #f5c2e7
|
||||||
|
flamingo = #f2cdcd
|
||||||
|
rosewater = #f5e0dc
|
||||||
|
|
||||||
|
transparent = #00000000
|
190
polybar.config
Normal file
190
polybar.config
Normal file
|
@ -0,0 +1,190 @@
|
||||||
|
;==========================================================
|
||||||
|
;
|
||||||
|
;
|
||||||
|
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
|
||||||
|
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
|
||||||
|
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
|
||||||
|
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
|
||||||
|
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
|
||||||
|
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
|
||||||
|
;
|
||||||
|
;
|
||||||
|
; To learn more about how to configure Polybar
|
||||||
|
; go to https://github.com/polybar/polybar
|
||||||
|
;
|
||||||
|
; The README contains a lot of information
|
||||||
|
;
|
||||||
|
;==========================================================
|
||||||
|
|
||||||
|
[global/wm]
|
||||||
|
include-file = $SCRIPTPATH/mocha.ini
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
background = ${colors.mantle}
|
||||||
|
foreground = ${colors.text}
|
||||||
|
primary = #F0C674
|
||||||
|
secondary = #8ABEB7
|
||||||
|
alert = #A54242
|
||||||
|
disabled = #707880
|
||||||
|
|
||||||
|
[module/round-left]
|
||||||
|
type = custom/text
|
||||||
|
format = %{O-1}
|
||||||
|
format-foreground = ${colors.background}
|
||||||
|
|
||||||
|
[module/round-right]
|
||||||
|
type = custom/text
|
||||||
|
format =
|
||||||
|
format-foreground = ${colors.background}
|
||||||
|
|
||||||
|
[bar/example]
|
||||||
|
width = 100%
|
||||||
|
height = 16pt
|
||||||
|
radius = 0
|
||||||
|
|
||||||
|
; dpi = 96
|
||||||
|
|
||||||
|
background = ${colors.transparent}
|
||||||
|
foreground = ${colors.foreground}
|
||||||
|
|
||||||
|
line-size = 3pt
|
||||||
|
|
||||||
|
border-size = 8pt
|
||||||
|
border-color = #00000000
|
||||||
|
|
||||||
|
padding-left = 0
|
||||||
|
padding-right = 0
|
||||||
|
|
||||||
|
module-margin = 0
|
||||||
|
|
||||||
|
font-0 = JetBrainsMono Nerd Font:size=12;3
|
||||||
|
|
||||||
|
modules-left = round-left filesystem pulseaudio memory cpu round-right
|
||||||
|
modules-center = round-left xworkspaces round-right
|
||||||
|
modules-right = round-left mpd date round-right
|
||||||
|
|
||||||
|
cursor-click = pointer
|
||||||
|
cursor-scroll = ns-resize
|
||||||
|
|
||||||
|
enable-ipc = true
|
||||||
|
|
||||||
|
; wm-restack = generic
|
||||||
|
; wm-restack = bspwm
|
||||||
|
; wm-restack = i3
|
||||||
|
|
||||||
|
; override-redirect = true
|
||||||
|
|
||||||
|
[module/systray]
|
||||||
|
type = internal/tray
|
||||||
|
|
||||||
|
format-margin = 8pt
|
||||||
|
tray-spacing = 16pt
|
||||||
|
|
||||||
|
[module/xworkspaces]
|
||||||
|
type = internal/xworkspaces
|
||||||
|
format-background = ${colors.background}
|
||||||
|
|
||||||
|
label-active = %name%
|
||||||
|
label-active-foreground = ${colors.rosewater}
|
||||||
|
label-active-padding = 5px
|
||||||
|
|
||||||
|
label-occupied = %name%
|
||||||
|
label-occupied-foreground= ${colors.overlay0}
|
||||||
|
label-occupied-padding = 5px
|
||||||
|
|
||||||
|
label-urgent = %name%
|
||||||
|
label-urgent-foreground= ${colors.red}
|
||||||
|
label-urgent-padding = 5px
|
||||||
|
|
||||||
|
label-empty =
|
||||||
|
label-empty-padding = 0
|
||||||
|
|
||||||
|
[module/xwindow]
|
||||||
|
type = internal/xwindow
|
||||||
|
label = %title:0:60:...%
|
||||||
|
|
||||||
|
[module/filesystem]
|
||||||
|
type = internal/fs
|
||||||
|
interval = 25
|
||||||
|
|
||||||
|
mount-0 = /
|
||||||
|
|
||||||
|
label-mounted = " %percentage_used%% "
|
||||||
|
label-mounted-background = ${colors.background}
|
||||||
|
label-mounted-foreground = ${colors.rosewater}
|
||||||
|
|
||||||
|
[module/pulseaudio]
|
||||||
|
type = internal/pulseaudio
|
||||||
|
|
||||||
|
format-volume-prefix = " "
|
||||||
|
format-volume = <label-volume>
|
||||||
|
format-volume-background = ${colors.background}
|
||||||
|
format-volume-foreground = ${colors.teal}
|
||||||
|
|
||||||
|
format-muted-background = ${colors.background}
|
||||||
|
format-muted-foreground = ${colors.red}
|
||||||
|
|
||||||
|
label-volume = "%percentage%% "
|
||||||
|
label-muted = " mute "
|
||||||
|
|
||||||
|
[module/xkeyboard]
|
||||||
|
type = internal/xkeyboard
|
||||||
|
blacklist-0 = num lock
|
||||||
|
|
||||||
|
label-layout = %layout%
|
||||||
|
label-layout-foreground = ${colors.primary}
|
||||||
|
|
||||||
|
label-indicator-padding = 2
|
||||||
|
label-indicator-margin = 1
|
||||||
|
label-indicator-foreground = ${colors.background}
|
||||||
|
label-indicator-background = ${colors.secondary}
|
||||||
|
|
||||||
|
[module/memory]
|
||||||
|
type = internal/memory
|
||||||
|
interval = 2
|
||||||
|
format-background = ${colors.background}
|
||||||
|
format-foreground = ${colors.peach}
|
||||||
|
format-prefix = " "
|
||||||
|
label = "%percentage_used:2%% "
|
||||||
|
|
||||||
|
[module/cpu]
|
||||||
|
type = internal/cpu
|
||||||
|
interval = 2
|
||||||
|
format-background = ${colors.background}
|
||||||
|
format-foreground = ${colors.green}
|
||||||
|
format-prefix = " "
|
||||||
|
label = "%percentage:2%% "
|
||||||
|
|
||||||
|
[network-base]
|
||||||
|
type = internal/network
|
||||||
|
interval = 5
|
||||||
|
format-connected = <label-connected>
|
||||||
|
format-disconnected = <label-disconnected>
|
||||||
|
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
|
||||||
|
|
||||||
|
[module/wlan]
|
||||||
|
inherit = network-base
|
||||||
|
interface-type = wireless
|
||||||
|
label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
|
||||||
|
|
||||||
|
[module/eth]
|
||||||
|
inherit = network-base
|
||||||
|
interface-type = wired
|
||||||
|
label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
|
||||||
|
|
||||||
|
[module/date]
|
||||||
|
type = internal/date
|
||||||
|
interval = 1
|
||||||
|
|
||||||
|
format-background = ${colors.background}
|
||||||
|
|
||||||
|
date = " %H:%M"
|
||||||
|
date-alt = " %Y-%m-%d %H:%M:%S"
|
||||||
|
|
||||||
|
label = %date%
|
||||||
|
|
||||||
|
[settings]
|
||||||
|
screenchange-reload = true
|
||||||
|
pseudo-transparency = true
|
||||||
|
|
||||||
|
; vim:ft=dosini
|
7
theme.ron
Normal file
7
theme.ron
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
(border_width: 1,
|
||||||
|
margin: 5,
|
||||||
|
workspace_margin: 5,
|
||||||
|
default_border_color: "#6C7086",
|
||||||
|
floating_border_color: "#89DCEB",
|
||||||
|
focused_border_color: "#F5E0DC",
|
||||||
|
)
|
29
up
Executable file
29
up
Executable file
|
@ -0,0 +1,29 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
export SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
||||||
|
|
||||||
|
|
||||||
|
#down the last running theme
|
||||||
|
if [ -f "/tmp/leftwm-theme-down" ]; then
|
||||||
|
/tmp/leftwm-theme-down
|
||||||
|
rm /tmp/leftwm-theme-down
|
||||||
|
fi
|
||||||
|
ln -s $SCRIPTPATH/down /tmp/leftwm-theme-down
|
||||||
|
|
||||||
|
|
||||||
|
#boot picom or compton if it exists
|
||||||
|
if [ -x "$(command -v picom)" ]; then
|
||||||
|
picom &> /dev/null &
|
||||||
|
elif [ -x "$(command -v compton)" ]; then
|
||||||
|
compton &> /dev/null &
|
||||||
|
fi
|
||||||
|
|
||||||
|
#set the theme.ron config
|
||||||
|
leftwm-command "LoadTheme $SCRIPTPATH/theme.ron"
|
||||||
|
|
||||||
|
#set background
|
||||||
|
if [ -x "$(command -v feh)" ]; then
|
||||||
|
feh --bg-scale $SCRIPTPATH/background
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
polybar -c $SCRIPTPATH/polybar.config $barname &> /dev/null &
|
Loading…
Reference in a new issue