added packages

This commit is contained in:
2023-04-29 00:31:15 +05:30
parent 6c0edc5379
commit cb7808a9bd
78 changed files with 5393 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# Maintainer: tux <0xtux@pm.me>
pkgname=tuxos-skel
pkgver=1.0
pkgrel=1
pkgdesc="tuxOS configurations"
arch=('any')
license=('GPL3')
makedepends=()
provides=("${pkgname}")
options=(!strip !emptydirs)
#install="${pkgname}.install"
prepare() {
cp -af ../skel/. ${srcdir}
}
package() {
local _skeldir=${pkgdir}/etc/skel
local _configdir=${_skeldir}/.config
mkdir -p "$_skeldir" && mkdir -p "$_configdir"
cp -r ${srcdir}/eww "$_configdir"
cp -r ${srcdir}/starship "$_configdir"
cp -r ${srcdir}/wezterm "$_configdir"
cp -r ${srcdir}/kitty "$_configdir"
install -Dm 755 ".zshrc" "$_skeldir"
install -Dm 644 ".xinitrc" "$_skeldir"
}

View File

@ -0,0 +1 @@
xsetroot -cursor_name left_ptr

12
packages/tuxos-skel/skel/.zshrc Executable file
View File

@ -0,0 +1,12 @@
# Setup Path
export PATH="$PATH:$HOME/.config/bspwm/bin"
# Setup Starship
export STARSHIP_CONFIG=~/.config/starship/config.toml
eval "$(starship init zsh)"
export ZSH=$HOME/.oh-my-zsh
plugins=(git zsh-syntax-highlighting zsh-autosuggestions history sudo)
source $ZSH/oh-my-zsh.sh
pfetch

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -0,0 +1,55 @@
* {
all: unset; //Unsets everything so you can style everything from scratch
}
//Global Styles
.bar {
background-color: #3a3a3a;
color: #b0b4bc;
padding: 10px;
}
// Styles on classes (see eww.yuck for more information)
.sidestuff slider {
all: unset;
color: #ffd5cd;
}
.metric scale trough highlight {
all: unset;
background-color: #D35D6E;
color: #000000;
border-radius: 10px;
}
.metric scale trough {
all: unset;
background-color: #4e4e4e;
border-radius: 50px;
min-height: 3px;
min-width: 50px;
margin-left: 10px;
margin-right: 20px;
}
.metric scale trough highlight {
all: unset;
background-color: #D35D6E;
color: #000000;
border-radius: 10px;
}
.metric scale trough {
all: unset;
background-color: #4e4e4e;
border-radius: 50px;
min-height: 3px;
min-width: 50px;
margin-left: 10px;
margin-right: 20px;
}
.label-ram {
font-size: large;
}
.workspaces button:hover {
color: #D35D6E;
}

View File

@ -0,0 +1,75 @@
(defwidget bar []
(centerbox :orientation "h"
(workspaces)
(music)
(sidestuff)))
(defwidget sidestuff []
(box :class "sidestuff" :orientation "h" :space-evenly false :halign "end"
(metric :label "🔊"
:value volume
:onchange "amixer -D pulse sset Master {}%")
(metric :label ""
:value {EWW_RAM.used_mem_perc}
:onchange "")
(metric :label "💾"
:value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
:onchange "")
time))
(defwidget workspaces []
(box :class "workspaces"
:orientation "h"
:space-evenly true
:halign "start"
:spacing 10
(button :onclick "wmctrl -s 0" 1)
(button :onclick "wmctrl -s 1" 2)
(button :onclick "wmctrl -s 2" 3)
(button :onclick "wmctrl -s 3" 4)
(button :onclick "wmctrl -s 4" 5)
(button :onclick "wmctrl -s 5" 6)
(button :onclick "wmctrl -s 6" 7)
(button :onclick "wmctrl -s 7" 8)
(button :onclick "wmctrl -s 8" 9)))
(defwidget music []
(box :class "music"
:orientation "h"
:space-evenly false
:halign "center"
{music != "" ? "🎵${music}" : ""}))
(defwidget metric [label value onchange]
(box :orientation "h"
:class "metric"
:space-evenly false
(box :class "label" label)
(scale :min 0
:max 101
:active {onchange != ""}
:value value
:onchange onchange)))
(deflisten music :initial ""
"playerctl --follow metadata --format '{{ artist }} - {{ title }}' || true")
(defpoll volume :interval "1s"
"scripts/getvol")
(defpoll time :interval "10s"
"date '+%H:%M %b %d, %Y'")
(defwindow bar
:monitor 0
:windowtype "dock"
:geometry (geometry :x "0%"
:y "0%"
:width "90%"
:height "10px"
:anchor "top center")
:reserve (struts :side "top" :distance "4%")
(bar))

View File

@ -0,0 +1,2 @@
#!/bin/sh
printf "%.0f\n" $(free -m | grep Mem | awk '{print ($3/$2)*100}')

View File

@ -0,0 +1,2 @@
#!/bin/sh
amixer -D pulse sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }' | tr -d '%' | head -1

View File

@ -0,0 +1,70 @@
font_family FiraCode Nerd Font
bold_font FiraCode Nerd Font Regular
font_size 16.0
window_padding_width 20
foreground #fff
background #000
# Black
color0 #1b1e28
color8 #a6accd
# Red
color1 #d0679d
color9 #d0679d
# Green
color2 #5de4c7
color10 #5de4c7
# Yellow
color3 #fffac2
color11 #fffac2
# Blue
color4 #add7ff
color12 #89ddff
# Magenta
color5 #fcc5e9
color13 #fae4fc
# Cyan
color6 #add7ff
color14 #89ddff
# White
color7 #ffffff
color15 #ffffff
# Cursor
cursor #ffffff
cursor_text_color #1b1e28
# Selection highlight
selection_foreground none
selection_background #28344a
# The color for highlighting URLs on mouse-over
# url_color #9ece6a
url color #5de4c7
# Window borders
active_border_color #3d59a1
inactive_border_color #101014
bell_border_color #fffac2
# Tab bar
tab_bar_style fade
tab_fade 1
active_tab_foreground #3d59a1
active_tab_background #16161e
active_tab_font_style bold
inactive_tab_foreground #787c99
inactive_tab_background #16161e
inactive_tab_font_style bold
tab_bar_background #101014
# Title bar
macos_titlebar_color #16161e

View File

@ -0,0 +1,51 @@
format = """
[ ](bold green)$directory(bold blue)$git_branch$git_status[](bold yellow)[](bold purple)[](bold blue) """
scan_timeout = 60
add_newline = false
[line_break]
disabled = true
[directory]
style = "bold blue"
[cmd_duration]
format = "[$duration]($style) "
[status]
disabled = false
format = "[$symbol $status]($style) "
not_found_symbol = ""
not_executable_symbol = ""
sigint_symbol = "ﭦ"
map_symbol = true
[git_branch]
format = "[$symbol$branch]($style) "
[package]
format = "[$symbol$version]($style) "
symbol = " "
[python]
format = '[${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'
symbol = " "
[nodejs]
format = "[$symbol($version )]($style)"
[php]
format = "[$symbol($version )]($style)"
symbol = " "
[java]
format = "[${symbol}(${version} )]($style)"
symbol = " "
[rust]
format = "[$symbol($version )]($style)"
[golang]
format = "[$symbol($version )]($style)"
symbol = " "

View File

@ -0,0 +1,22 @@
local wezterm = require 'wezterm'
local config = {}
config.window_close_confirmation = 'NeverPrompt'
config.color_scheme = 'Poimandres'
config.colors = {
background = "#000"
}
config.enable_tab_bar = false
config.font = wezterm.font_with_fallback {
'FiraCode Nerd Font',
}
config.font_size = 16.0
config.window_background_opacity = 1
config.window_padding = {
left = '20px',
right = '20px',
top = '20px',
bottom = '20px',
}
return config

View File

@ -0,0 +1,19 @@
main() {
local _user=`echo ${SUDO_USER:-$(whoami)}`
local _gid=`echo ${SUDO_GID}`
local _group=`cat /etc/group | grep ${_gid} | cut -d: -f1 | head -1`
local _dir="/home/${_user}/.config"
local _skel='/etc/skel/.config'
mkdir -p ${_dir}
cp -rf ${_skel}/* ${_dir}
chown -R ${_user}:${_group} ${_dir}/*
}
post_install() {
main
}
post_upgrade() {
main
}