commit 257206051105392a99f086c7303ea847ea02eac1 Author: Skylar Hill Date: Tue Dec 5 14:14:26 2023 -0600 Initial commit diff --git a/background b/background new file mode 100644 index 0000000..da80b65 Binary files /dev/null and b/background differ diff --git a/change_to_tag b/change_to_tag new file mode 100755 index 0000000..d652de4 --- /dev/null +++ b/change_to_tag @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +leftwm-command "SendWorkspaceToTag $1 $2" diff --git a/down b/down new file mode 100755 index 0000000..33934df --- /dev/null +++ b/down @@ -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 + diff --git a/down.jpg b/down.jpg new file mode 100644 index 0000000..da757f7 Binary files /dev/null and b/down.jpg differ diff --git a/mocha.ini b/mocha.ini new file mode 100644 index 0000000..67dd5b3 --- /dev/null +++ b/mocha.ini @@ -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 diff --git a/polybar.config b/polybar.config new file mode 100644 index 0000000..d30f968 --- /dev/null +++ b/polybar.config @@ -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 = +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 = +format-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 diff --git a/theme.ron b/theme.ron new file mode 100644 index 0000000..07ec3eb --- /dev/null +++ b/theme.ron @@ -0,0 +1,7 @@ +(border_width: 1, +margin: 5, +workspace_margin: 5, +default_border_color: "#6C7086", +floating_border_color: "#89DCEB", +focused_border_color: "#F5E0DC", +) diff --git a/up b/up new file mode 100755 index 0000000..5abc457 --- /dev/null +++ b/up @@ -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 &