commit 9ac4cf3a9da00ee814d6db8ada834b535d1ec4b3 Author: cbax Date: Sat Oct 12 19:50:14 2024 -0400 init diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..5e43f3a --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "zsh/.oh-my-zsh"] + path = zsh/.oh-my-zsh + url = https://github.com/ohmyzsh/ohmyzsh.git diff --git a/dunst/.config/dunst/dunstrc b/dunst/.config/dunst/dunstrc new file mode 100644 index 0000000..de48fe6 --- /dev/null +++ b/dunst/.config/dunst/dunstrc @@ -0,0 +1,58 @@ +# DUNST CONFIG TEMPLATE +# DO NOT MODIFY PLACEHOLDERS + +[global] + + # MISC + monitor = 0 + sort = yes + + # DIMENSIONS + width = 400 + height = 100 + origin = top-right + offset = 30x50 + + # PADDING + padding = 5 + horizontal_padding = 5 + + # BORDERS + frame_width = 1 + separator_height = 1 + separator_color = frame + corner_radius = 0 + + # TEXT + font = Fira Code 9 + markup = full + format = "%a\n%s\n%b" + alignment = left + vertical_alignment = center + word_wrap = yes + + # ICON + max_icon_size = 32 + icon_position = left + + # OPEN + browser = /usr/bin/brave + + +[urgency_low] + background = "#434C5E" + foreground = "#E5E9F0" + frame_color = "#A3BE8C" + timeout = 5 + +[urgency_normal] + background = "#434C5E" + foreground = "#E5E9F0" + frame_color = "#88C0D0" + timeout = 5 + +[urgency_critical] + background = "#434C5E" + foreground = "#E5E9F0" + frame_color = "#BF616A" + timeout = 10 diff --git a/leftwm/.config/leftwm/config.ron b/leftwm/.config/leftwm/config.ron new file mode 100644 index 0000000..6daf857 --- /dev/null +++ b/leftwm/.config/leftwm/config.ron @@ -0,0 +1,101 @@ +// _ ___ ___ _ +// | | / __)_ / __|_) +// | | ____| |__| |_ _ _ _ ____ ____ ___ ____ | |__ _ ____ ____ ___ ____ +// | |/ _ ) __) _) | | | \ / ___) _ \| _ \| __) |/ _ | / ___) _ \| _ \ +// | ( (/ /| | | |_| | | | | | | ( (__| |_| | | | | | | ( ( | |_| | | |_| | | | | +// |_|\____)_| \___)____|_|_|_| \____)___/|_| |_|_| |_|\_|| (_)_| \___/|_| |_| +// A WindowManager for Adventurers (____/ +// For info about configuration please visit https://github.com/leftwm/leftwm/wiki +#![enable(implicit_some)] +( + modkey: "Mod4", + mousekey: "Mod4", + tags: [ + "1", + "2", + "3", + "4", + "5", + "6", + "7", + "8", + "9", + ], + max_window_width: None, + layouts: [ + "MainAndDeck", + //"EvenHorizontal", + "EvenVertical", + //"Monocle", + //"Grid", + //"MainAndVertStack", + //"MainAndHorizontalStack", + //"RightMainAndVertStack", + //"Fibonacci", + //"Dwindle", + //"CenterMain", + //"CenterMainBalanced", + //"CenterMainFluid", + ], + layout_definitions: [ + ], + layout_mode: Workspace, + insert_behavior: Bottom, + scratchpad: [], + window_rules: [], + disable_current_tag_swap: false, + disable_tile_drag: false, + focus_behaviour: Sloppy, + focus_new_windows: true, + backend: X11rb, + keybind: [ + (command: Execute, value: "dmenu_run", modifier: ["modkey"], key: "p"), + (command: Execute, value: "rofi -config ~/.config/rofi/config.rasi -show drun", modifier: ["modkey"], key: "space"), + (command: Execute, value: "alacritty", modifier: ["modkey"], key: "Return"), + (command: Execute, value: "firefox-developer-edition", modifier: ["modkey"], key: "b"), + (command: CloseWindow, value: "", modifier: ["modkey"], key: "q"), + (command: SoftReload, value: "", modifier: ["modkey", "Shift"], key: "r"), + (command: Execute, value: "loginctl kill-session $XDG_SESSION_ID", modifier: ["modkey", "Shift"], key: "x"), + (command: Execute, value: "flameshot gui", modifier: ["modkey", "Shift"], key: "s"), + (command: Execute, value: "slock", modifier: ["modkey", "Control"], key: "l"), + (command: MoveToLastWorkspace, value: "", modifier: ["modkey", "Shift"], key: "w"), + (command: SwapTags, value: "", modifier: ["modkey"], key: "w"), + (command: MoveWindowUp, value: "", modifier: ["modkey", "Shift"], key: "k"), + (command: MoveWindowDown, value: "", modifier: ["modkey", "Shift"], key: "j"), + (command: MoveWindowTop, value: "", modifier: ["modkey", "Shift"], key: "Return"), + (command: FocusWindowUp, value: "", modifier: ["modkey"], key: "k"), + (command: FocusWindowDown, value: "", modifier: ["modkey"], key: "j"), + (command: NextLayout, value: "", modifier: ["modkey", "Control"], key: "k"), + (command: PreviousLayout, value: "", modifier: ["modkey", "Control"], key: "j"), + (command: FocusWorkspaceNext, value: "", modifier: ["modkey"], key: "l"), + (command: FocusWorkspacePrevious, value: "", modifier: ["modkey"], key: "h"), + (command: MoveWindowUp, value: "", modifier: ["modkey", "Shift"], key: "Up"), + (command: MoveWindowDown, value: "", modifier: ["modkey", "Shift"], key: "Down"), + (command: FocusWindowUp, value: "", modifier: ["modkey"], key: "Up"), + (command: FocusWindowDown, value: "", modifier: ["modkey"], key: "Down"), + (command: NextLayout, value: "", modifier: ["modkey", "Control"], key: "Up"), + (command: PreviousLayout, value: "", modifier: ["modkey", "Control"], key: "Down"), + (command: FocusWorkspaceNext, value: "", modifier: ["modkey"], key: "Right"), + (command: FocusWorkspacePrevious, value: "", modifier: ["modkey"], key: "Left"), + (command: GotoTag, value: "1", modifier: ["modkey"], key: "1"), + (command: GotoTag, value: "2", modifier: ["modkey"], key: "2"), + (command: GotoTag, value: "3", modifier: ["modkey"], key: "3"), + (command: GotoTag, value: "4", modifier: ["modkey"], key: "4"), + (command: GotoTag, value: "5", modifier: ["modkey"], key: "5"), + (command: GotoTag, value: "6", modifier: ["modkey"], key: "6"), + (command: GotoTag, value: "7", modifier: ["modkey"], key: "7"), + (command: GotoTag, value: "8", modifier: ["modkey"], key: "8"), + (command: GotoTag, value: "9", modifier: ["modkey"], key: "9"), + (command: MoveToTag, value: "1", modifier: ["modkey", "Shift"], key: "1"), + (command: MoveToTag, value: "2", modifier: ["modkey", "Shift"], key: "2"), + (command: MoveToTag, value: "3", modifier: ["modkey", "Shift"], key: "3"), + (command: MoveToTag, value: "4", modifier: ["modkey", "Shift"], key: "4"), + (command: MoveToTag, value: "5", modifier: ["modkey", "Shift"], key: "5"), + (command: MoveToTag, value: "6", modifier: ["modkey", "Shift"], key: "6"), + (command: MoveToTag, value: "7", modifier: ["modkey", "Shift"], key: "7"), + (command: MoveToTag, value: "8", modifier: ["modkey", "Shift"], key: "8"), + (command: MoveToTag, value: "9", modifier: ["modkey", "Shift"], key: "9"), + ], + workspaces: [ + ], +) diff --git a/leftwm/.config/leftwm/themes.toml b/leftwm/.config/leftwm/themes.toml new file mode 100644 index 0000000..5017edc --- /dev/null +++ b/leftwm/.config/leftwm/themes.toml @@ -0,0 +1,268 @@ +[[repos]] +url = "https://raw.githubusercontent.com/leftwm/leftwm-community-themes/master/known.toml" +name = "community" +definitions_version = 1 + +[[repos.themes]] +name = "Amber" +repository = "https://github.com/di-effe/amber" +commit = "*" +version = "0.2.2" +leftwm_versions = ">0.2.10, <0.3.0" +current = false + +[[repos.themes]] +name = "arch-one-dark" +repository = "https://github.com/jamesbaker1901/leftwm-arch-one-dark/" +commit = "*" +version = "1.0.0" +leftwm_versions = "^0.3.0" +current = false + +[[repos.themes]] +name = "Ascent" +directory = "/home/cbax/.config/leftwm/themes/Ascent" +repository = "https://gitlab.com/mWalrus/ascent" +commit = "*" +version = "1.0.0" +leftwm_versions = ">0.2.7" +current = true + +[[repos.themes]] +name = "Blue Coffee" +repository = "https://github.com/Qwart376/Blue-Coffee/" +commit = "*" +version = "0.0.1" +leftwm_versions = "<0.3.0" +current = false + +[[repos.themes]] +name = "Bumblebee" +repository = "https://github.com/mfdorst/leftwm-bumblebee/" +commit = "*" +version = "0.0.1" +leftwm_versions = "^0.2.8, <0.3.0" +current = false + +[[repos.themes]] +name = "Catppuccin" +repository = "https://github.com/di-effe/catppuccin" +commit = "*" +version = "0.1.1" +leftwm_versions = ">0.2.10, <0.3.0" +current = false + +[[repos.themes]] +name = "Coffee" +repository = "https://github.com/lex148/leftwm-coffee/" +commit = "*" +version = "0.0.1" +leftwm_versions = "<0.3.0" +current = false + +[[repos.themes]] +name = "Dementive" +repository = "https://github.com/dementive/leftwm-dementive" +commit = "*" +version = "0.1" +leftwm_versions = "^0.4.0" +current = false + +[[repos.themes]] +name = "Desire" +repository = "https://github.com/copypasteonly/Desire" +commit = "*" +version = "0.1" +leftwm_versions = "^0.4.0" +current = false + +[[repos.themes]] +name = "Double Bar" +repository = "https://github.com/PeterDauwe/doublebar/" +commit = "*" +version = "0.0.2" +leftwm_versions = "^0.3.0" +current = false + +[[repos.themes]] +name = "Dracula Rounded" +repository = "https://github.com/AethanFoot/leftwm-theme-dracula-rounded/" +commit = "*" +version = "0.0.3" +leftwm_versions = "^0.3.0" +current = false + +[[repos.themes]] +name = "Epitaph" +repository = "https://github.com/VentGrey/Epitaph" +commit = "*" +version = "0.0.2" +leftwm_versions = "*" +current = false + +[[repos.themes]] +name = "Flamingo" +repository = "https://github.com/necaris/leftwm-theme-flamingo" +commit = "*" +version = "0.0.1" +leftwm_versions = ">0.2.7, <0.3.0" +current = false + +[[repos.themes]] +name = "Forest" +repository = "https://github.com/lex148/forest/" +commit = "*" +version = "0.0.1" +leftwm_versions = "^0.3.0" +current = false + +[[repos.themes]] +name = "Garden" +repository = "https://github.com/taylor85345/leftwm-theme-garden" +commit = "*" +version = "0.0.4" +leftwm_versions = ">0.2.7" +current = false + +[[repos.themes]] +name = "Ground Zero" +repository = "https://github.com/Qwart376/Ground-Zero/" +commit = "*" +version = "0.0.1" +leftwm_versions = "<0.3.0" +current = false + +[[repos.themes]] +name = "minimal-solarized" +repository = "https://github.com/minda1975/minimal_solarized" +commit = "*" +version = "0.1.0" +leftwm_versions = "^0.3.0" +current = false + +[[repos.themes]] +name = "Molese" +repository = "https://github.com/m0lese/leftwm-config" +commit = "*" +version = "2.1.0" +leftwm_versions = ">0.2.10, <0.3.0" +current = false + +[[repos.themes]] +name = "Ocean-night" +repository = "https://github.com/TheRoniOne/ocean-night" +commit = "*" +version = "0.0.1" +leftwm_versions = "*" +current = false + +[[repos.themes]] +name = "Orange Forest" +repository = "https://github.com/PVautour/leftwm-theme-orange-forest/" +commit = "*" +version = "0.0.2" +leftwm_versions = "^0.3.0" +current = false + +[[repos.themes]] +name = "plan9" +repository = "https://github.com/seabassapologist/leftwm-theme-plan9" +commit = "*" +version = "0.1.0" +leftwm_versions = "^0.3.0" +current = false + +[[repos.themes]] +name = "Red Moon" +repository = "https://github.com/Qwart376/Red-Moon" +commit = "*" +version = "0.0.1" +leftwm_versions = "<0.3.0" +current = false + +[[repos.themes]] +name = "Serika" +repository = "https://github.com/VuiMuich/leftwm-theme-serika.git" +commit = "*" +version = "0.0.1" +leftwm_versions = ">=0.3.0" +current = false + +[[repos.themes]] +name = "Soothe" +repository = "https://github.com/b4skyx/leftwm-soothe/" +commit = "*" +version = "0.0.1" +leftwm_versions = "<0.3.0" +current = false +relative_directory = "theme/" + +[[repos.themes]] +name = "SpaceJelly" +repository = "https://gitlab.com/leftwmthemes/space_jelly" +commit = "*" +version = "1.0.0" +leftwm_versions = ">0.2.10, <0.3.0" +current = false + +[[repos.themes]] +name = "sunflower" +repository = "https://github.com/mautamu/leftwm-sunflower/" +commit = "*" +version = "0.1.2" +leftwm_versions = "^0.2.11, <0.3.0" +current = false + +[[repos.themes]] +name = "Sunset" +repository = "https://github.com/Syudagye/leftwm-sunset" +commit = "*" +version = "0.0.1" +leftwm_versions = "<0.3.0" +current = false + +[[repos.themes]] +name = "TNG" +repository = "https://github.com/lex148/leftwm-tng/" +commit = "*" +version = "0.0.1" +leftwm_versions = "<0.3.0" +current = false + +[[repos.themes]] +name = "Windows XP" +repository = "https://github.com/lex148/leftwm-windowsxp/" +commit = "*" +version = "0.0.1" +leftwm_versions = "<0.3.0" +current = false + +[[repos.themes]] +name = "Zexanima" +repository = "https://github.com/calebgasser/zexanima-leftwm-theme/tree/develop" +commit = "*" +version = "0.0.1" +leftwm_versions = ">0.3.0" +current = false + +[[repos.themes]] +name = "Blood-Moon" +repository = "https://github.com/zawesomekid/Blood-Moon-leftwm-theme" +commit = "*" +version = "0.0.1" +leftwm_versions = ">0.3.0" +current = false + +[[repos.themes]] +name = "Late-Night" +repository = "https://github.com/JacoMalan1/LateNight" +commit = "*" +version = "0.0.2" +leftwm_versions = ">0.3.0" +current = false + +[[repos]] +url = "localhost" +name = "LOCAL" +definitions_version = 1 +themes = [] diff --git a/leftwm/.config/leftwm/themes/current/README.md b/leftwm/.config/leftwm/themes/current/README.md new file mode 100644 index 0000000..6d871eb --- /dev/null +++ b/leftwm/.config/leftwm/themes/current/README.md @@ -0,0 +1,17 @@ +# Ascent +A theme centered around the [Nord Theme](https://nordtheme.com) color palette. + +## Screenshots +![Terminal, wallpaper](https://i.imgur.com/9rY58GT.png) + +## Dependencies +- leftwm +- polybar +- feh +- rofi _(optional)_ +- dunst _(optional)_ + +## Installing +1. `git clone https://gitlab.com/mWalrus/ascent.git` +2. `ln -s $PWD/ascent $HOME/.config/leftwm/themes/current` +3. Reload LeftWM diff --git a/leftwm/.config/leftwm/themes/current/down b/leftwm/.config/leftwm/themes/current/down new file mode 100755 index 0000000..f2140fd --- /dev/null +++ b/leftwm/.config/leftwm/themes/current/down @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" + +leftwm-command "UnloadTheme" + +pkill dunst +pkill polybar +pkill compton +pkill picom +pkill polybar diff --git a/leftwm/.config/leftwm/themes/current/dunstrc.tmpl b/leftwm/.config/leftwm/themes/current/dunstrc.tmpl new file mode 100644 index 0000000..de48fe6 --- /dev/null +++ b/leftwm/.config/leftwm/themes/current/dunstrc.tmpl @@ -0,0 +1,58 @@ +# DUNST CONFIG TEMPLATE +# DO NOT MODIFY PLACEHOLDERS + +[global] + + # MISC + monitor = 0 + sort = yes + + # DIMENSIONS + width = 400 + height = 100 + origin = top-right + offset = 30x50 + + # PADDING + padding = 5 + horizontal_padding = 5 + + # BORDERS + frame_width = 1 + separator_height = 1 + separator_color = frame + corner_radius = 0 + + # TEXT + font = Fira Code 9 + markup = full + format = "%a\n%s\n%b" + alignment = left + vertical_alignment = center + word_wrap = yes + + # ICON + max_icon_size = 32 + icon_position = left + + # OPEN + browser = /usr/bin/brave + + +[urgency_low] + background = "#434C5E" + foreground = "#E5E9F0" + frame_color = "#A3BE8C" + timeout = 5 + +[urgency_normal] + background = "#434C5E" + foreground = "#E5E9F0" + frame_color = "#88C0D0" + timeout = 5 + +[urgency_critical] + background = "#434C5E" + foreground = "#E5E9F0" + frame_color = "#BF616A" + timeout = 10 diff --git a/leftwm/.config/leftwm/themes/current/nord.rasi b/leftwm/.config/leftwm/themes/current/nord.rasi new file mode 100644 index 0000000..686b7e0 --- /dev/null +++ b/leftwm/.config/leftwm/themes/current/nord.rasi @@ -0,0 +1,127 @@ +/** + * Nordic rofi theme + * Adapted by undiabler + * + * Nord Color palette imported from https://www.nordtheme.com/ + * + */ + + +* { + nord0: #2e3440; + nord1: #3b4252; + nord2: #434c5e; + nord3: #4c566a; + + nord4: #d8dee9; + nord5: #e5e9f0; + nord6: #eceff4; + + nord7: #8fbcbb; + nord8: #88c0d0; + nord9: #81a1c1; + nord10: #5e81ac; + nord11: #bf616a; + + nord12: #d08770; + nord13: #ebcb8b; + nord14: #a3be8c; + nord15: #b48ead; + + foreground: @nord9; + backlight: #ccffeedd; + background-color: transparent; + + highlight: underline bold #eceff4; + + transparent: rgba(46,52,64,0); +} + +window { + location: center; + anchor: center; + transparency: "screenshot"; + padding: 10px; + border: 0px; + border-radius: 6px; + + background-color: @transparent; + spacing: 0; + children: [mainbox]; + orientation: horizontal; +} + +mainbox { + spacing: 0; + children: [ inputbar, message, listview ]; +} + +message { + color: @nord0; + padding: 5; + border-color: @foreground; + border: 0px 2px 2px 2px; + background-color: @nord7; +} + +inputbar { + color: @nord6; + padding: 11px; + background-color: #3b4252; + + border: 1px; + border-radius: 6px 6px 0px 0px; + border-color: @nord10; +} + +entry, prompt, case-indicator { + text-font: inherit; + text-color:inherit; +} + +prompt { + margin: 0px 1em 0em 0em ; +} + +listview { + padding: 8px; + border-radius: 0px 0px 6px 6px; + border-color: @nord10; + border: 0px 1px 1px 1px; + background-color: rgba(46,52,64,0.9); + dynamic: false; +} + +element { + padding: 3px; + vertical-align: 0.5; + border-radius: 4px; + background-color: transparent; + color: @foreground; + text-color: rgb(216, 222, 233); +} + +element selected.normal { + background-color: @nord7; + text-color: #2e3440; +} + +element-text, element-icon { + background-color: inherit; + text-color: inherit; +} + +button { + padding: 6px; + color: @foreground; + horizontal-align: 0.5; + + border: 2px 0px 2px 2px; + border-radius: 4px 0px 0px 4px; + border-color: @foreground; +} + +button selected normal { + border: 2px 0px 2px 2px; + border-color: @foreground; +} diff --git a/leftwm/.config/leftwm/themes/current/polybar.config b/leftwm/.config/leftwm/themes/current/polybar.config new file mode 100644 index 0000000..94d6d61 --- /dev/null +++ b/leftwm/.config/leftwm/themes/current/polybar.config @@ -0,0 +1,137 @@ +[colors] +bg = #2e3440 +fg = #e5e9f0 + +# polar night +pn-darker = #3b4252 +pn-light = #4c566a + +# snow storm +sn-dark = #d8dee9 +sn-light = #eceff4 + +# frost +f-mint = #8fbcbb +f-bright = #88c0d0 +f-washed = #81a1c1 +f-dark = #5e81ac + +# aurora +a-green = #a3be8c +a-magenta = #b48ead +a-orange = #d08770 +a-red = #bf616a + +[bar/mainbar] +monitor = "DP-2" +width = 100% +height = 18 +background = ${colors.bg} +foreground = ${colors.fg} +font-0 = Intel One Mono:style=weight=bold:size=10;1 +separator = "┊" +separator-foreground = ${colors.pn-light} +modules-left = ewmh +modules-center = xwindow +modules-right = network volume cpu temperature date time time_utc + +[bar/readerbar] +monitor = "DP-4" +width = 100% +height = 18 +background = ${colors.bg} +foreground = ${colors.fg} +font-0 = Intel One Mono:style=weight=bold:size=8;1 +separator = "┊" +separator-foreground = ${colors.pn-light} +modules-left = ewmh xwindow +modules-center = +modules-right = date time time_utc + +[module/xwindow] +type = internal/xwindow +label = " %title:0:100:...%" + +[module/ewmh] +type = internal/xworkspaces +label-active = " %name% " +label-active-background = ${colors.f-bright} +label-active-foreground = ${colors.pn-darker} +label-occupied = " %name% " +label-occupied-background = ${colors.pn-light} +label-urgent = " %name% " +label-urgent-background = ${colors.a-orange} +label-urgent-foreground = ${colors.fg} +label-empty = " %name% " +label-empty-foreground = ${colors.f-bright} + +[module/date] +type = internal/date +date = " %a, %b %d " +format-foreground = ${colors.a-magenta} + +[module/time] +type = internal/date +date = " %H:%M:%S " + +[module/time_utc] +type = custom/script +interval = 5 +exec = date -u "+%H:%M %Z" + + +[module/cpu] +type = internal/cpu +interval = 0.5 +label = " CPU: %percentage:2%% " +label-foreground = ${colors.f-bright} + +[module/temperature] +type = internal/temperature +label = " %temperature-c% " +label-foreground = ${colors.f-bright} +label-warn = " %temperature-c% " +label-warn-foreground = ${colors.a-orange} +interval = 0.5 +; $ for i in /sys/class/thermal/thermal_zone*; do echo "$i: $(<$i/type)"; done +;thermal-zone = 0 +; The name has to match the contents of /sys/class/thermal/thermal_zone*/type +;zone-type = x86_pkg_temp +; $ for i in /sys/class/hwmon/hwmon*/temp*_input; do echo "$(<$(dirname $i)/name): $(cat ${i%_*}_label 2>/dev/null || echo $(basename ${i%_*})) $(readlink -f $i)"; done +hwmon-path = /sys/devices/platform/nct6775.2592/hwmon/hwmon8/temp1_input +base-temperature = 20 +warn-temperature = 60 + +[module/volume] +type = internal/pulseaudio +master-soundcard = default +speaker-soundcard = default +headphone-soundcard = default +label-volume = " VOL: %percentage:2%% " +label-volume-foreground = ${colors.f-mint} + +[module/network] +type = internal/network +interface = enp7s0 +unknown-as-up = true + +label-disconnected = " not connected " +label-disconnected-foreground = ${colors.a-red} +format-disconnected = + +label-connected = " %{F#a3be8c}%local_ip% " +format-connected = + +;[module/vpn] +;type = internal/network +;interface = wg1 +;unknown-as-up = true + +;label-disconnected = " vpn not connected " +;label-disconnected-foreground = ${colors.a-red} +;format-disconnected = + +;label-connected = " vpn connected " +;label-connected-foreground = ${colors.a-green} +;format-connected = + diff --git a/leftwm/.config/leftwm/themes/current/theme.toml b/leftwm/.config/leftwm/themes/current/theme.toml new file mode 100644 index 0000000..aea3bf0 --- /dev/null +++ b/leftwm/.config/leftwm/themes/current/theme.toml @@ -0,0 +1,5 @@ +border_width = 1 +margin = [2, 2] +default_border_color = "#5e81ac" +focused_border_color = "#a3be8c" +floating_border_color = "#88c0d0" diff --git a/leftwm/.config/leftwm/themes/current/up b/leftwm/.config/leftwm/themes/current/up new file mode 100755 index 0000000..6b86227 --- /dev/null +++ b/leftwm/.config/leftwm/themes/current/up @@ -0,0 +1,59 @@ +#!/usr/bin/env bash +export $(dbus-launch) +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 + +# check if dunst is installed and if it is, copy the config +if [ command -v dunst ]; then + DUNSTDIR=$HOME/.config/dunst + + # create the config dir if nonexistant + if [ ! -d "$DUNSTDIR" ]; then + mkdir -p $DUNSTDIR + fi + + DUNSTRCPATH="$DUNSTDIR/dunstrc" + + # check if the rc file exists and move it if it does + if [ -f "$DUNSTRCPATH" ]; then + mv "$DUNSTRCPATH" "$DUNSTRCPATH.old" + fi + # Copy the template file to the user config directory + cp $SCRIPTPATH/dunstrc.tmpl $DUNSTRCPATH + + # kill previous session and start another in a detached shell to prevent dunst taking the shell + bash -c "killall dunst && dunst" +fi + +#boot compton or picom if it exists +if [ -x "$(command -v compton)" ]; then + compton &> /dev/null & +elif [ -x "$(command -v picom)" ]; then + picom &> /dev/null & +fi + +#set background +if [ -x "$(command -v feh)" ]; then + feh --bg-fill "$SCRIPTPATH"/wallpaper.png +fi + +#set the theme.toml config +leftwm-command "LoadTheme $SCRIPTPATH/theme.toml" + +#boot polybar based on the number of monitors found +if [ -x "$(command -v polybar)" ]; then + pkill polybar + #monitors="$(polybar -m | sed s/:.*// | tac)" + #while read -r display; do + # MONITOR=$display polybar -c "$SCRIPTPATH/polybar.config" mainbar &> /dev/null & + #done <<< "$monitors" + polybar -c "$SCRIPTPATH/polybar.config" mainbar &> /dev/null & + polybar -c "$SCRIPTPATH/polybar.config" readerbar &> /dev/null & + exit 0 +fi diff --git a/leftwm/.config/leftwm/themes/current/wallpaper.png b/leftwm/.config/leftwm/themes/current/wallpaper.png new file mode 100644 index 0000000..38ed1e2 Binary files /dev/null and b/leftwm/.config/leftwm/themes/current/wallpaper.png differ diff --git a/rofi/.config/rofi/config.rasi b/rofi/.config/rofi/config.rasi new file mode 100644 index 0000000..944b178 --- /dev/null +++ b/rofi/.config/rofi/config.rasi @@ -0,0 +1,23 @@ +configuration { + font: "Intel One Mono R 10"; + line-margin: 10; + + display-ssh: ""; + display-run: ""; + display-drun: ""; + display-window: ""; + display-combi: ""; + show-icons: true; +} + + +@theme "~/.config/rofi/themes/nord.rasi" + +listview { + lines: 6; + columns: 2; +} + +window { + width: 30%; +} diff --git a/rofi/.config/rofi/themes/config.rofi b/rofi/.config/rofi/themes/config.rofi new file mode 100644 index 0000000..236a77d --- /dev/null +++ b/rofi/.config/rofi/themes/config.rofi @@ -0,0 +1,106 @@ +/******************************************************************************* + * ROFI VERTICAL THEME USING THE NORD COLOR PALETTE + * User : LR-Tech + * Theme Repo : https://github.com/lr-tech/rofi-themes-collection + * Nord Project Repo : https://github.com/arcticicestudio/nord + *******************************************************************************/ + +* { + font: "IBM Plex Mono 12"; + + nord0: #2e3440; + nord1: #3b4252; + nord2: #434c5e; + nord3: #4c566a; + + nord4: #d8dee9; + nord5: #e5e9f0; + nord6: #eceff4; + + nord7: #8fbcbb; + nord8: #88c0d0; + nord9: #81a1c1; + nord10: #5e81ac; + nord11: #bf616a; + + nord12: #d08770; + nord13: #ebcb8b; + nord14: #a3be8c; + nord15: #b48ead; + + background-color: transparent; + text-color: @nord4; + accent-color: @nord8; + + margin: 0px; + padding: 0px; + spacing: 0px; +} + +window { + background-color: @nord0; + border-color: @accent-color; + + location: center; + width: 480px; + y-offset: -160px; + border: 1px; +} + +inputbar { + padding: 8px 12px; + spacing: 12px; + children: [ prompt, entry ]; +} + +prompt, entry, element-text, element-icon { + vertical-align: 0.5; +} + +prompt { + text-color: @accent-color; +} + +listview { + lines: 8; + columns: 1; + + fixed-height: false; +} + +element { + padding: 8px; + spacing: 8px; +} + +element normal urgent { + text-color: @nord13; +} + +element normal active { + text-color: @accent-color; +} + +element selected { + text-color: @nord0; +} + +element selected normal { + background-color: @accent-color; +} + +element selected urgent { + background-color: @nord13; +} + +element selected active { + background-color: @nord8; +} + +element-icon { + size: 0.75em; +} + +element-text { + text-color: inherit; +} diff --git a/rofi/.config/rofi/themes/nord.rasi b/rofi/.config/rofi/themes/nord.rasi new file mode 100644 index 0000000..686b7e0 --- /dev/null +++ b/rofi/.config/rofi/themes/nord.rasi @@ -0,0 +1,127 @@ +/** + * Nordic rofi theme + * Adapted by undiabler + * + * Nord Color palette imported from https://www.nordtheme.com/ + * + */ + + +* { + nord0: #2e3440; + nord1: #3b4252; + nord2: #434c5e; + nord3: #4c566a; + + nord4: #d8dee9; + nord5: #e5e9f0; + nord6: #eceff4; + + nord7: #8fbcbb; + nord8: #88c0d0; + nord9: #81a1c1; + nord10: #5e81ac; + nord11: #bf616a; + + nord12: #d08770; + nord13: #ebcb8b; + nord14: #a3be8c; + nord15: #b48ead; + + foreground: @nord9; + backlight: #ccffeedd; + background-color: transparent; + + highlight: underline bold #eceff4; + + transparent: rgba(46,52,64,0); +} + +window { + location: center; + anchor: center; + transparency: "screenshot"; + padding: 10px; + border: 0px; + border-radius: 6px; + + background-color: @transparent; + spacing: 0; + children: [mainbox]; + orientation: horizontal; +} + +mainbox { + spacing: 0; + children: [ inputbar, message, listview ]; +} + +message { + color: @nord0; + padding: 5; + border-color: @foreground; + border: 0px 2px 2px 2px; + background-color: @nord7; +} + +inputbar { + color: @nord6; + padding: 11px; + background-color: #3b4252; + + border: 1px; + border-radius: 6px 6px 0px 0px; + border-color: @nord10; +} + +entry, prompt, case-indicator { + text-font: inherit; + text-color:inherit; +} + +prompt { + margin: 0px 1em 0em 0em ; +} + +listview { + padding: 8px; + border-radius: 0px 0px 6px 6px; + border-color: @nord10; + border: 0px 1px 1px 1px; + background-color: rgba(46,52,64,0.9); + dynamic: false; +} + +element { + padding: 3px; + vertical-align: 0.5; + border-radius: 4px; + background-color: transparent; + color: @foreground; + text-color: rgb(216, 222, 233); +} + +element selected.normal { + background-color: @nord7; + text-color: #2e3440; +} + +element-text, element-icon { + background-color: inherit; + text-color: inherit; +} + +button { + padding: 6px; + color: @foreground; + horizontal-align: 0.5; + + border: 2px 0px 2px 2px; + border-radius: 4px 0px 0px 4px; + border-color: @foreground; +} + +button selected normal { + border: 2px 0px 2px 2px; + border-color: @foreground; +} diff --git a/xorg/.xinitrc b/xorg/.xinitrc new file mode 100644 index 0000000..9a500b8 --- /dev/null +++ b/xorg/.xinitrc @@ -0,0 +1,2 @@ +/usr/bin/xscreensaver -nosplash & +/usr/bin/dunst & diff --git a/xorg/.xprofile b/xorg/.xprofile new file mode 100755 index 0000000..a04366a --- /dev/null +++ b/xorg/.xprofile @@ -0,0 +1 @@ +autorandr --change default diff --git a/xorg/.xscreensaver b/xorg/.xscreensaver new file mode 100644 index 0000000..8b96c36 --- /dev/null +++ b/xorg/.xscreensaver @@ -0,0 +1,302 @@ +# XScreenSaver Preferences File +# Written by xscreensaver-settings 6.09 for cbax on Sat Oct 12 17:21:35 2024. +# https://www.jwz.org/xscreensaver/ + +timeout: 0:10:00 +cycle: 0:10:00 +lock: False +lockTimeout: 0:00:00 +passwdTimeout: 0:00:30 +visualID: default +installColormap: True +verbose: False +splash: True +splashDuration: 0:00:05 +demoCommand: xscreensaver-settings +nice: 10 +fade: True +unfade: True +fadeSeconds: 0:00:03 +ignoreUninstalledPrograms:False +dpmsEnabled: False +dpmsQuickOff: False +dpmsStandby: 2:00:00 +dpmsSuspend: 2:00:00 +dpmsOff: 4:00:00 +grabDesktopImages: True +grabVideoFrames: False +chooseRandomImages: True +imageDirectory: /usr/share/wallpapers/ + +mode: one +selected: 37 + +textMode: url +textLiteral: XScreenSaver +textFile: +textProgram: fortune +textURL: https://en.wikipedia.org/w/index.php?title=Special:NewPages&feed=rss +dialogTheme: default +settingsGeom: 1722,618 2332,1061 + +programs: \ + maze --root \n\ + GL: superquadrics --root \n\ + attraction --root \n\ + blitspin --root \n\ + greynetic --root \n\ + helix --root \n\ + hopalong --root \n\ + imsmap --root \n\ +- noseguy --root \n\ +- pyro --root \n\ + qix --root \n\ +- rocks --root \n\ + rorschach --root \n\ + decayscreen --root \n\ + flame --root \n\ + halo --root \n\ + slidescreen --root \n\ + pedal --root \n\ + bouboule --root \n\ +- braid --root \n\ + coral --root \n\ + deco --root \n\ + drift --root \n\ +- fadeplot --root \n\ + galaxy --root \n\ + goop --root \n\ + grav --root \n\ + ifs --root \n\ + GL: jigsaw --root \n\ + julia --root \n\ +- kaleidescope --root \n\ + GL: moebius --root \n\ + moire --root \n\ + GL: morph3d --root \n\ + mountain --root \n\ + munch --root \n\ + penrose --root \n\ + GL: pipes --root --cycles 17 --factory 0 \ + --tightturns --count 3 \n\ + rdbomb --root \n\ + GL: rubik --root \n\ +- sierpinski --root \n\ + slip --root \n\ + GL: sproingies --root \n\ + starfish --root \n\ + strange --root \n\ + swirl --root \n\ + triangle --root \n\ + xjack --root \n\ + xlyap --root \n\ + GL: atlantis --root \n\ + bsod --root \n\ + GL: bubble3d --root \n\ + GL: cage --root \n\ +- crystal --root \n\ + cynosure --root \n\ + discrete --root \n\ + distort --root \n\ + epicycle --root \n\ + flow --root \n\ + GL: glplanet --root \n\ + interference --root \n\ + kumppa --root \n\ + GL: lament --root \n\ + moire2 --root \n\ + GL: sonar --root \n\ + GL: stairs --root \n\ + truchet --root \n\ +- vidwhacker --root \n\ +- webcollage --root \n\ + blaster --root \n\ + bumps --root \n\ + ccurve --root \n\ + compass --root \n\ + deluxe --root \n\ +- demon --root \n\ +- GL: extrusion --root \n\ +- loop --root \n\ + penetrate --root \n\ + petri --root \n\ + phosphor --root \n\ + GL: pulsar --root \n\ + ripples --root \n\ + shadebobs --root \n\ + GL: sierpinski3d --root \n\ + spotlight --root \n\ + squiral --root \n\ + wander --root \n\ + xflame --root \n\ + xmatrix --root \n\ + GL: gflux --root \n\ +- nerverot --root \n\ + xrayswarm --root \n\ + xspirograph --root \n\ + GL: circuit --root \n\ + GL: dangerball --root \n\ +- GL: dnalogo --root \n\ + GL: engine --root \n\ + GL: flipscreen3d --root \n\ + GL: gltext --root \n\ + GL: menger --root \n\ + GL: molecule --root \n\ + rotzoomer --root \n\ + scooter --root \n\ + speedmine --root \n\ + GL: starwars --root \n\ + GL: stonerview --root \n\ + vermiculate --root \n\ + whirlwindwarp --root \n\ + zoom --root \n\ + anemone --root \n\ + apollonian --root \n\ + GL: boxed --root \n\ + GL: cubenetic --root \n\ + GL: endgame --root \n\ + euler2d --root \n\ + fluidballs --root \n\ + GL: flurry --root \n\ +- GL: glblur --root \n\ + GL: glsnake --root \n\ + halftone --root \n\ + GL: juggler3d --root \n\ + GL: lavalite --root \n\ +- polyominoes --root \n\ + GL: queens --root \n\ +- GL: sballs --root \n\ + GL: spheremonics --root \n\ + twang --root \n\ +- GL: antspotlight --root \n\ + apple2 --root \n\ + GL: atunnel --root \n\ + barcode --root \n\ + GL: blinkbox --root \n\ + GL: blocktube --root \n\ + GL: bouncingcow --root \n\ + cloudlife --root \n\ + GL: cubestorm --root \n\ + eruption --root \n\ + GL: flipflop --root \n\ + GL: flyingtoasters --root \n\ + fontglide --root \n\ + GL: gleidescope --root \n\ + GL: glknots --root \n\ + GL: glmatrix --root \n\ +- GL: glslideshow --root \n\ + GL: hypertorus --root \n\ +- GL: jigglypuff --root \n\ + metaballs --root \n\ + GL: mirrorblob --root \n\ + piecewise --root \n\ + GL: polytopes --root \n\ + pong --root \n\ + popsquares --root \n\ + GL: surfaces --root \n\ + xanalogtv --root \n\ + abstractile --root \n\ + anemotaxis --root \n\ +- GL: antinspect --root \n\ + fireworkx --root \n\ + fuzzyflakes --root \n\ + interaggregate --root \n\ + intermomentary --root \n\ + memscroller --root \n\ + GL: noof --root \n\ + pacman --root \n\ + GL: pinion --root \n\ + GL: polyhedra --root \n\ +- GL: providence --root \n\ + substrate --root \n\ + wormhole --root \n\ +- GL: antmaze --root \n\ + GL: boing --root \n\ + boxfit --root \n\ + GL: carousel --root \n\ + celtic --root \n\ + GL: crackberg --root \n\ + GL: cube21 --root \n\ + fiberlamp --root \n\ + GL: fliptext --root \n\ + GL: glhanoi --root \n\ + GL: tangram --root \n\ + GL: timetunnel --root \n\ + GL: glschool --root \n\ + GL: topblock --root \n\ + GL: cubicgrid --root \n\ + cwaves --root \n\ + GL: gears --root \n\ + GL: glcells --root \n\ + GL: lockward --root \n\ + m6502 --root \n\ + GL: moebiusgears --root \n\ + GL: voronoi --root \n\ + GL: hypnowheel --root \n\ + GL: klein --root \n\ +- lcdscrub --root \n\ + GL: photopile --root \n\ + GL: skytentacles --root \n\ + GL: rubikblocks --root \n\ + GL: companioncube --root \n\ + GL: hilbert --root \n\ + GL: tronbit --root \n\ + GL: geodesic --root \n\ + hexadrop --root \n\ + GL: kaleidocycle --root \n\ + GL: quasicrystal --root \n\ + GL: unknownpleasures --root \n\ + binaryring --root \n\ + GL: cityflow --root \n\ + GL: geodesicgears --root \n\ + GL: projectiveplane --root \n\ + GL: romanboy --root \n\ + tessellimage --root \n\ + GL: winduprobot --root \n\ + GL: splitflap --root \n\ + GL: cubestack --root \n\ + GL: cubetwist --root \n\ + GL: discoball --root \n\ + GL: dymaxionmap --root \n\ + GL: energystream --root \n\ + GL: hexstrut --root \n\ + GL: hydrostat --root \n\ + GL: raverhoop --root \n\ + GL: splodesic --root \n\ + GL: unicrud --root \n\ + GL: esper --root \n\ + GL: vigilance --root \n\ + GL: crumbler --root \n\ + filmleader --root \n\ + glitchpeg --root \n\ + GL: handsy --root \n\ + GL: maze3d --root \n\ + GL: peepers --root \n\ + GL: razzledazzle --root \n\ + vfeedback --root \n\ + GL: deepstars --root \n\ + GL: gravitywell --root \n\ + GL: beats --root \n\ + GL: covid19 --root \n\ + GL: etruscanvenus --root \n\ + GL: gibson --root \n\ + GL: headroom --root \n\ + GL: sphereeversion --root \n\ + binaryhorizon --root \n\ + marbling --root \n\ + GL: chompytower --root \n\ + GL: hextrail --root \n\ + GL: mapscroller --root \n\ + GL: nakagin --root \n\ + GL: squirtorus --root \n\ + GL: cubocteversion --root \n\ + droste --root \n\ + GL: papercube --root \n\ + GL: skulloop --root \n\ + GL: highvoltage --root \n\ + GL: kallisti --root \n\ + + +pointerHysteresis: 10 +authWarningSlack: 20 + diff --git a/zsh/.oh-my-zsh b/zsh/.oh-my-zsh new file mode 160000 index 0000000..a72a264 --- /dev/null +++ b/zsh/.oh-my-zsh @@ -0,0 +1 @@ +Subproject commit a72a26406ad3aa9a47c3f5227291bad23494bed0 diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..3959d0b --- /dev/null +++ b/zsh/.zshrc @@ -0,0 +1,106 @@ +# If you come from bash you might have to change your $PATH. +# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH + +# Path to your Oh My Zsh installation. +export ZSH="$HOME/.oh-my-zsh" + +# Set name of the theme to load --- if set to "random", it will +# load a random theme each time Oh My Zsh is loaded, in which case, +# to know which specific one was loaded, run: echo $RANDOM_THEME +# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes +ZSH_THEME="robbyrussell" + +# Set list of themes to pick from when loading at random +# Setting this variable when ZSH_THEME=random will cause zsh to load +# a theme from this variable instead of looking in $ZSH/themes/ +# If set to an empty array, this variable will have no effect. +# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) + +# Uncomment the following line to use case-sensitive completion. +# CASE_SENSITIVE="true" + +# Uncomment the following line to use hyphen-insensitive completion. +# Case-sensitive completion must be off. _ and - will be interchangeable. +# HYPHEN_INSENSITIVE="true" + +# Uncomment one of the following lines to change the auto-update behavior +# zstyle ':omz:update' mode disabled # disable automatic updates +# zstyle ':omz:update' mode auto # update automatically without asking +# zstyle ':omz:update' mode reminder # just remind me to update when it's time + +# Uncomment the following line to change how often to auto-update (in days). +# zstyle ':omz:update' frequency 13 + +# Uncomment the following line if pasting URLs and other text is messed up. +# DISABLE_MAGIC_FUNCTIONS="true" + +# Uncomment the following line to disable colors in ls. +# DISABLE_LS_COLORS="true" + +# Uncomment the following line to disable auto-setting terminal title. +# DISABLE_AUTO_TITLE="true" + +# Uncomment the following line to enable command auto-correction. +# ENABLE_CORRECTION="true" + +# Uncomment the following line to display red dots whilst waiting for completion. +# You can also set it to another string to have that shown instead of the default red dots. +# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f" +# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765) +# COMPLETION_WAITING_DOTS="true" + +# Uncomment the following line if you want to disable marking untracked files +# under VCS as dirty. This makes repository status check for large repositories +# much, much faster. +# DISABLE_UNTRACKED_FILES_DIRTY="true" + +# Uncomment the following line if you want to change the command execution time +# stamp shown in the history command output. +# You can set one of the optional three formats: +# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" +# or set a custom format using the strftime function format specifications, +# see 'man strftime' for details. +# HIST_STAMPS="mm/dd/yyyy" + +# Would you like to use another custom folder than $ZSH/custom? +# ZSH_CUSTOM=/path/to/new-custom-folder + +# Which plugins would you like to load? +# Standard plugins can be found in $ZSH/plugins/ +# Custom plugins may be added to $ZSH_CUSTOM/plugins/ +# Example format: plugins=(rails git textmate ruby lighthouse) +# Add wisely, as too many plugins slow down shell startup. +plugins=(git) + +source $ZSH/oh-my-zsh.sh + +# User configuration + +# export MANPATH="/usr/local/man:$MANPATH" + +# You may need to manually set your language environment +# export LANG=en_US.UTF-8 + +# Preferred editor for local and remote sessions +# if [[ -n $SSH_CONNECTION ]]; then +# export EDITOR='vim' +# else +# export EDITOR='nvim' +# fi + +# Compilation flags +# export ARCHFLAGS="-arch $(uname -m)" + +# Set personal aliases, overriding those provided by Oh My Zsh libs, +# plugins, and themes. Aliases can be placed here, though Oh My Zsh +# users are encouraged to define aliases within a top-level file in +# the $ZSH_CUSTOM folder, with .zsh extension. Examples: +# - $ZSH_CUSTOM/aliases.zsh +# - $ZSH_CUSTOM/macos.zsh +# For a full list of active aliases, run `alias`. +# +# Example aliases +# alias zshconfig="mate ~/.zshrc" +# alias ohmyzsh="mate ~/.oh-my-zsh" +alias hx=helix +source /etc/profile.d/google-cloud-cli.sh