feat: new configs.

This commit is contained in:
Andrey Parhomenko 2024-07-11 12:28:52 +05:00
parent 3ab0b28923
commit 6fbec2a663
6 changed files with 621 additions and 7 deletions

View file

@ -1,6 +1,10 @@
#!/bin/sh
#
# Profile of Surdeus.
#
reload-profile(){
. $PROFILE
}
export_loop(){
# Chore, because I'm lazy to type "export" so many times.
@ -21,6 +25,7 @@ if test "$OS" != "Windows_NT" ; then
fi
# Standard variables.
export_loop \
ETC '$HOME/etc' \
ENV '$HOME/.shrc' \
PROMPT '"; "' \
PS1 '"$PROMPT"' \
@ -31,22 +36,21 @@ export_loop \
PAGER '`bb which less more`' \
MANPAGER '$PAGER' \
\
CDHIST '$HOME/lib/cds' \
CDHIST '$ETC/cds' \
CDHISTMAX '50' \
\
CMDHIST '$HOME/lib/cmds' \
CMDHIST '$ETC/cmds' \
CMDHISTMAX '100' \
PROFILE '$HOME/.profile' \
ENVDIR '$HOME/env' \
SETENV '$HOME/lib/setenv/sh' \
LOGIN '$HOME/lib/login/sh' \
SETENV '$ETCsetenv/sh' \
LOGIN '$ETC/login/sh' \
INDENT '" "'\
\
GOPATH '$HOME/app/go' \
GOBIN '$HOME/exe'\
COMPOSEREXE '$HOME/lib/composer/vendor/bin' \
XDG_UTILS_DEBUG_LEVEL '3'\
XDG_CONFIG_HOME '$HOME/lib' \
XDG_CONFIG_HOME '$HOME/.config' \
GIT 'https://surdeus.su' \
PERSONAL_SHELL 'sh' \
MYVIMRC '$HOME/.vimrc'\

View file

@ -8,3 +8,5 @@ text/html=google-chrome.desktop
text/plain=org.kde.kwrite.desktop;
x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
x-scheme-handler/about=google-chrome.desktop
x-scheme-handler/unknown=google-chrome.desktop

View file

@ -11,7 +11,7 @@
# Note: the "Super" modifier is also known as Logo, GUI, Windows, Mod4, etc.
# Super+Shift+Return to start an instance of foot (https://codeberg.org/dnkl/foot)
riverctl map normal Super+Shift Return spawn foot
riverctl map normal Super+Shift Return spawn "$XTERMINAL"
# Super+Q to close the focused view
riverctl map normal Super Q close

117
waybar/config.jsonc Normal file
View file

@ -0,0 +1,117 @@
{
"layer": "top",
"position": "top",
"modules-left": [
"river/tags",
"custom/right-arrow-dark",
"custom/right-arrow-light",
"river/mode",
"custom/right-arrow-dark"
],
"modules-center": [
"custom/left-arrow-dark",
"river/window",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"clock#1",
"custom/right-arrow-dark",
"custom/right-arrow-light",
"",
"custom/right-arrow-dark"
],
"modules-right": [
"custom/left-arrow-dark",
"pulseaudio",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"gamemode",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"mpd",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"disk",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"battery",
"custom/left-arrow-light",
"custom/left-arrow-dark",
"tray"
],
"custom/left-arrow-dark": {
"format": "",
"tooltip": false
},
"custom/left-arrow-light": {
"format": "",
"tooltip": false
},
"custom/right-arrow-dark": {
"format": "",
"tooltip": false
},
"custom/right-arrow-light": {
"format": "",
"tooltip": false
},
"sway/workspaces": {
"disable-scroll": true,
"format": "{name}"
},
"clock#1": {
"format": "{:%a %d-%m-%y %H:%M}",
"tooltip": false
},
"pulseaudio": {
"format": "{icon} {volume:2}%",
"format-bluetooth": "{icon} {volume}%",
"format-muted": "MUTE",
"format-icons": {
"headphones": "",
"default": [
"",
""
]
},
"scroll-step": 5,
"on-click": "pamixer -t",
"on-click-right": "pavucontrol"
},
"memory": {
"interval": 5,
"format": "Mem {}%"
},
"cpu": {
"interval": 5,
"format": "CPU {usage:2}%"
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
]
},
"disk": {
"interval": 5,
"format": "Disk {percentage_used:2}%",
"path": "/"
},
"tray": {
"icon-size": 20
}
}

89
waybar/style.css Normal file
View file

@ -0,0 +1,89 @@
* {
font-size: 15px;
font-family: monospace;
}
window#waybar {
background: #292b2e;
color: #fdf6e3;
}
#custom-right-arrow-dark,
#custom-left-arrow-dark {
color: #1a1a1a;
}
#custom-right-arrow-light,
#custom-left-arrow-light {
color: #292b2e;
background: #1a1a1a;
}
#workspaces,
#clock.1,
#clock.2,
#clock.3,
#pulseaudio,
#memory,
#cpu,
#battery,
#disk,
#tray {
background: #1a1a1a;
}
#workspaces button {
padding: 0 2px;
color: #fdf6e3;
}
#workspaces button.focused {
color: #268bd2;
}
#workspaces button:hover {
box-shadow: inherit;
text-shadow: inherit;
}
#workspaces button:hover {
background: #1a1a1a;
border: #1a1a1a;
padding: 0 3px;
}
#pulseaudio {
color: #268bd2;
}
#memory {
color: #2aa198;
}
#cpu {
color: #6c71c4;
}
#battery {
color: #859900;
}
#disk {
color: #b58900;
}
#clock,
#pulseaudio,
#memory,
#cpu,
#battery,
#disk {
padding: 0 10px;
}
#tags button {
background : black ;
color : white ;
}
#tags button.occupied {
background : gray ;
}
#tags button.focused {
background : white ;
color : black ;
}

402
wayst/config Normal file
View file

@ -0,0 +1,402 @@
# '#' starts a line comment
#
# This file format uses ini-like key-value syntax.
#
# All options are equivalent to coresponding command line options (except for lower precedence).
# To get a list of all options run `wayst --help`.
#======================================[ FONT CONFIGURATION ]=======================================
## Set a list of primary fonts (All available styles will be loaded)
## The list is scanned in order and glyphs are loaded from the first font that contains them.
## You need to list EVERY font you want to use. For example:
## "IBM Plex Sans Thai" for thai script, "Noto Sans Math" for math symbols.
##
## example
## font = [
## # You can set codepoint ranges to which a given font should be applied.
## # Here we set <min>..u+24ff and u+2580..<max> to exclude the unicode
## # box drawing block. Those characters will be loaded (if present) from
## # the following font(s) in this list.
## "Hack:..u+24ff:u+2580..",
## "sauce code pro nerd font",
## # Mixing ttf/otf with bitmap fonts is ok.
## # You can set an offset to keep fonts smaller/larger than the global size.
## "Terminus:-3"
## ]
##
## default:
#
#font = Monospace
## A list of fonts used for non-color symbols (only the Regular style is loaded)
#
#font-symbol = [
# "FontAwesome",
# "PowerlineSymbols"
#]
## A list of fonts used for color symbols (only the Regular style is loaded)
#font-color = "Noto Color Emoji"
## Point size
font-size = 11
## Bold font style
#style-bold = Semibold
## Italic font style
#style-italic = Italic
#
## Bolditalic font style
#style-bolditalic = Bold:Italic
## Load all fonts on startup
#preload-all-fonts = true
## Set static font DPI or calculate it based on physical display size and resolution.
## If set to `auto` DPI will change automatically when the window is moved between displays with
## different DPIs. The `output` option can override this setting for specific displays.
#
#dpi = auto
## Force LCD subpixel order: none, rgb, bgr, vrgb, vbgr
#fixed-lcd-order=vrgb
## Output rule
##
## Moving the window to a display matching a wildcard pattern or display index will
## set lcd geometry and dpi.
## Lcd geometry options are: none, rgb, bgr, vrgb, vbgr
## DPI can be set to `auto` to calculate from physical display dimensions. Or omitted to use global
## setting.
##
## example:
#output = "BENQ*:rgbv:102"
#output = "S24D*:rgb"
## Glyph to be aligned to the cell center and vertical offset
#glyph-align = (:2
## Exclude codepoint ranges from lcd filtering (use grayscale)
#exclude-lcd = 0..94
## Use box-drawing characters contained in font instead of builtin ones
#font-box-chars = true
## Increase cell dimensions
## - Argument 1: horizontal [px]
## - Argument 2: vertical [px]
#glyph-padding = 0:0
#========================================[ MISCELLANEOUS ]==========================================
## Override system locale
#locale = C
## Use cell size as window resize increments (X11 only)
#incremental-resize = true
## Set application id on wayland or WM_CLASS on X11
## Accepts two arguments as WM_CLASS contains two strings. On wayland only the first one is used.
#app-id = Wayst:Wayst
## Set mouse pointer hiding behaviour. Options are:
## - true - Hide on key press (client program may override)
## - false - Do not hide (client program may override)
## - force_true - Always hide on key press
## - force_false - Never hide
## - if_not_reporting - Hide on key press unless any mouse event reporting mode is active
#
#hide-pointer = true
## Start in directory
#directory = /home/user
#======================================[ TERMINAL EMULATION ]=======================================
## Set TERM
#term = "xterm-256color"
## Report VTE compatibility, might break some programs (empty to disable)
#vte-version = 6201
## Number of usec to wait for incoming data before drawing and timeout in ms.
## Increase those values to avoid flicker and improve throughput, decrease for more responsiveness.
## (Similar to st's minlatency and maxlatency)
#io-chunk-delay=5:30
## Number of lines in scroll history
#scrollback = 1000
## Show bold text in bright colors
#bold-is-bright = true
## Application window title
#title = Terminal
## Window title format
##
## You can format the window title using predefined variables:
## sAppTitle - Application window title (string)
## sVtTitle - Window title set by client program (string)
## bCommandIsRunning - Shell integration is active and a command is currently running (bool)
## i32CommandTimeSec - Time in seconds (int32_t)
## sRunningCommand - invocation text of currently running command (unavailable when using VTE protocol) (string)
## i32Rows - Terminal cell row count (int32_t)
## i32Cols - Terminal call column count (int32_t)
## i32Width - Window width in pixels (int32_t)
## i32Height - Window height in pixels (int32_t)
##
## To interpolate a variable use `{variableName}`. Variables can be used to define simple conditionals
## example: '{?i32Width > 80:the window is wider than 80px}'
##
## Supported logical expressions are: <, >, <=, >=, ==, !=, !, &&, ||.
## The number `0` and empty string evaluate to `false`, other values to `true`
## Ordering comperison between strings behaves like `strcmp`.
## Comperison between strings and numbers uses string's length.
## `\` is an escape character.
##
## Some examples:
## title-format = "{sAppTitle} - [{sVtTitle}]" # Terminal - [zsh:~]
## title-format = "{sVtTitle} [{i32Cols}x{i32Rows}]" # zsh:~ [80x24]
## title-format = "{sVtTitle}{?i32Cols != 80 || i32Rows != 24: [{i32Cols}x{i32Rows}]}" # zsh:~ [132x54]
##
## default:
#title-format = "{?sVtTitle:{sVtTitle} - }{?bCommandIsRunning && !bIsAltBufferEnabled && "i32CommandTimeSec > 1: ({sRunningCommand}) }{sAppTitle}"
## Initial number of cell rows
#rows = 24
## Initial number of cell columns
#columns = 80
## Keep the terminal window open after program exit
#hold = true
## Do not allow programs to change the window title
#no-dynamic-title = true
## Allow programs to interact with the window system through xterm protocol extensions.
## Note that this system was designed specifically for X11 (some functionality does not work on wayland).
## - Argument 1: manipulate the window
## - Argument 2: query information
#
#windowops = true:true
## Set initial cursor style and if it should blink
## Style options: block, beam, underline
#cursor-style = block:true
## Pipe output of the last command to an external program (needs shell integration).
## Other options are `screen` (only visible line) and `buffer` (includes scrollback)
## Similar to `https://st.suckless.org/patches/externalpipe/`
## Your script needs execute permissions and will receive the following arguments:
## --rows=<rowCount>
## --columns=<columnCount>
## --pid=<terminalPid>
## --title=<currentWindowTitle>
## --x-window-id=<TerminalWindowXID> (sent only if using X11)
## --command=<nameOfCommand> (only if sending command output and name is available)
## --command-exit-code=<exitOfCommand> (only if sending command output)
# extern-pipe = /path/to/your/script.sh:command
## Lines scrolled per wheel click
#scroll-lines = 3
## Always use CSD's on wayland
#force-csd = true
#======================================[ COLORS AND THEMING ]=======================================
# Colors can be formatted as:
# - CSS hex color notation (the `#` can be omitted)
# - CSS-like rgb() and rgba() in 0-255, 0.0-1.0, %, deg, rador grad
# - CSS-like hsl() and hsla() in 0.0-1.0, %, deg, rador grad
# - XParseColor()'s RGB specification
# - XParseColor()'s RGB intensity specification
## Load one of the default colorschemes
## options are: wayst, linux, xterm, rxvt, yaru, tango, orchis, solarized
#colorscheme = tango
## Overwrite parts of the colorscheme
#
## Background (transparent) and foreground colors (opaque)
#bg-color = rgba(0,0,0,0.90)
#fg-color = "#d8d8d8"
#
## Primary colorpalette (opaque colors)
#
#color-0 = "#606060"
#color-1 = "#df9a98"
#color-2 = "#719672"
#color-3 = "#e0bb71"
#color-4 = "#96bbdc"
#color-5 = "#dfbdbc"
#color-6 = "#97bcbc"
#color-7 = "#d8d8d8"
#color-8 = "#757575"
#color-9 = "#e07798"
#color-10 = "#97bb98"
#color-11 = "#ffdd98"
#color-12 = "#badcfb"
#color-13 = "#ffbebc"
#color-14 = "#96ddde"
#color-15 = "#e9e9e9"
## Highlighted text background color (transparent)
#highlight-bg-color = "#ffffff"
## Highlighted text foreground color (opaque)
#highlight-fg-color = "#000000"
### Tint color for aout of focus windws (transparent)
#unfocused-tint = "#00000011"
## Set visual bell color (transparent) or `none` to disable
#visual-bell = none
## Enable background blur hints for KDE Plasma
#bg-blur = true
## Use minimal window decorations.
## Uses Motif Window Manager hints on X11 (very few WMs support this). Does not work on wayland.
#decorations = minimal
## Set _GTK_THEME_VARIANT hinting X11 window decorators to use a light or dark theme (very few WMs support this)
## Options are:
## - none
## - dark
## - light
## - auto (autoselect theme based on `bg-color` brightness)
#decoration-theme = auto
## Animate cursor
## - Argument 1: Smooth transitions for horizontal movement
## - Argument 2: Smooth blinking
## - Argument 3: Fraction of the cursor blink interval fading animation should last
#cursor-anim = false:true:0.25
## Cursor blinking parameters
## - Argument 1: enable
## - Argument 2: time to switch between cursor shown/hidden [ms]
## - Argument 3: suspend cursor blinking afer kbd input [ms]
## - Argument 4: stop cursor from blinking alfer a time of inactivity [s]
#blink=true:750:500:15
## Scrollbar dimensions
## - Argument 1: width [px]
## - Argument 2: minimum length [px]
## - Argument 3: hide delay [ms]
## - Argument 4: hide animation time [ms]
#
#scrollbar = 10:20:1500:150
## Pad screen content
## - Argument 1: Center screen content instead of aligning to top left
## - Argument 2: Blank space around content [px]
#padding = true:0
## Draw links underlined even if not hovered
#always-underline-links = false
#=========================================[ KEYBINDINGS ]===========================================
# Key names are keysym names (Case sensitive!).
# see /usr/include/X11/keysymdef.h
#
# Modifier aliases:
# Control: C, Ctrl, Control,
# Alt: A, M, Alt, Meta,
# Shift: S, Shift
#
# Examples:
# Control+Shift+Alt+Super_L
# M+x
## Copy to clipbord
#bind-key-copy=C+S+c
## Paste from clipbord
#bind-key-paste=C+S+v
## Increase font size
#bind-key-enlarge=C+S+equal
## Decrease font size
#bind-key-shrink=C+S+minus
## Activate unicode entry mode
#bind-key-unicode=C+S+u
## Scroll up by page
#bind-key-pg-up=C+S+Page_Up
## Scroll down by page
#bind-key-pg-down=C+S+Page_Down
## Scroll up by line
#bind-key-ln-up=C+S+Up
## Scroll down by line
#bind-key-ln-down=C+S+Down
## Scroll up to previous mark or command output (requires shell integration)
#bind-key-mark-up=C+S+Left
## Scroll down to next mark or command output (requires shell integration)
#bind-key-mark-down=C+S+Right
## Copy last command output to clipboard (requires shell integration)
#bind-key-copy-output=C+S+x
## Pipe screen content to external program
#bind-key-extern-pipe=C+S+backslash
## Enter vim-like keyboard select mode
#bind-key-kbd-select=C+S+k
## Open shell's working directory (set with shell integration) as URI
## By default uses xdg-open (should open your default file manager)
#bind-key-open-pwd=C+S+F10
## Save screen content as HTML document
#bind-key-html-dump=C+S+F12
## Open a new terminal instance in current directory
#bind-key-duplicate=C+S+d
## Close terminal
#bind-key-quit=C+S+q
## Print debuging information to stderr
#bind-key-debug=C+S+slash
#=======================================[ DEBUGING OPTIONS ]========================================
## Output pty communication to stderr
#debug-pty = true
## Slow down the interpreter to usec per byte, force screen redraw after each byte.
#debug-vt = 5000
## Run renderer in debug mode:
## - Partial swap regions swapped marked with red boxes (actual partial swap disabled)
## - When text proxy textures are reused old content is tinted white
## - Adds a triangle in the top left alternating visibility each frame
#debug-gfx = true
## Show font information on starts
#debug-font = true