From 51573d35e989d45f047b0b34fd9293be459d346b Mon Sep 17 00:00:00 2001 From: philw Date: Sat, 10 Feb 2024 20:00:48 +0100 Subject: Update dots --- README.md | 1 + conky/.conkyrc | 106 +++++++++++++++++++++++++++++++++ shell/bash/.bash_profile | 6 ++ shell/bash/.bashrc | 100 +++++++++++++++++++++++++++++++ shell/zsh/.zsh/zsh-autosuggestions | 1 + shell/zsh/.zsh/zsh-syntax-highlighting | 1 + shell/zsh/.zshenv | 1 + shell/zsh/.zshrc | 106 +++++++++++++++++++++++++++++++++ wallpaper.png | Bin 0 -> 3302170 bytes wp2062872.jpg | Bin 0 -> 214458 bytes x/.Xresources | 28 +++++++++ x/.xinitrc | 33 ++++++++++ x/.xprofile | 14 +++++ zathura/zathurarc | 70 ++++++++++++++++++++++ 14 files changed, 467 insertions(+) create mode 100644 README.md create mode 100644 conky/.conkyrc create mode 100644 shell/bash/.bash_profile create mode 100644 shell/bash/.bashrc create mode 160000 shell/zsh/.zsh/zsh-autosuggestions create mode 160000 shell/zsh/.zsh/zsh-syntax-highlighting create mode 100644 shell/zsh/.zshenv create mode 100644 shell/zsh/.zshrc create mode 100644 wallpaper.png create mode 100644 wp2062872.jpg create mode 100644 x/.Xresources create mode 100644 x/.xinitrc create mode 100644 x/.xprofile create mode 100644 zathura/zathurarc diff --git a/README.md b/README.md new file mode 100644 index 0000000..e788783 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# My linux rice diff --git a/conky/.conkyrc b/conky/.conkyrc new file mode 100644 index 0000000..7b39c8e --- /dev/null +++ b/conky/.conkyrc @@ -0,0 +1,106 @@ + +conky.config = { + background = true, -- forked to background + cpu_avg_samples = 2, -- The number of samples to average for CPU monitoring. + diskio_avg_samples = 10, -- The number of samples to average for disk I/O monitoring. + double_buffer = true, -- Use the Xdbe extension? (eliminates flicker) + if_up_strictness = 'address', -- how strict if testing interface is up - up, link or address + net_avg_samples = 2, -- The number of samples to average for net data + no_buffers = true, -- Subtract (file system) buffers from used memory? + temperature_unit = 'celsius', -- fahrenheit or celsius + text_buffer_size = 2048, -- size of buffer for display of content of large variables - default 256 + update_interval = 1, -- update interval + imlib_cache_size = 0, -- disable image cache to get a new spotify cover per song + + alignment = 'top_right', -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right, + gap_x = 50, -- pixels between right or left border + gap_y = 70, -- pixels between bottom or left border + + -- Setup Window Size + minimum_height = 300, + minimum_width = 450, + maximum_width = 660, + + --Graphical + border_inner_margin = 5, -- margin between border and text + border_outer_margin = 5, -- margin between border and edge of window + border_width = 0, -- border width in pixels + default_bar_width = 260, -- default is 0 - full width + default_bar_height = 10, -- default is 6 + default_gauge_height = 25, -- default is 25 + default_gauge_width =40, -- default is 40 + default_graph_height = 40, -- default is 25 + default_graph_width = 153, -- default is 0 - full width + default_shade_color = '#000000', -- default shading colour + default_outline_color = '#000000', -- default outline colour + draw_borders = false, -- draw borders around text + draw_graph_borders = true, -- draw borders around graphs + draw_shades = false, -- draw shades + draw_outline = false, -- draw outline + stippled_borders = 0, -- dashing the border + + --Textual + format_human_readable = true, -- KiB, MiB rather then number of bytes + font = 'Fira Code:size=12', -- the default font used + font2 = 'Raleway:bold:size=30', -- font for the time + font3 = 'Ubuntu:size=14', -- font for the date + font4 = 'Raleway:bold:size=9', -- font for the keybindings heading + max_text_width = 0, -- 0 will make sure line does not get broken if width too smal + max_user_text = 16384, -- max text in conky default 16384 + override_utf8_locale = true, -- force UTF8 requires xft + short_units = true, -- shorten units from KiB to k + top_name_width = 21, -- width for $top name value default 15 + top_name_verbose = false, -- If true, top name shows the full command line of each process - Default value is false. + uppercase = false, -- uppercase or not + use_spacer = 'none', -- adds spaces around certain objects to align - default none + use_xft = true, -- xft font - anti-aliased font + xftalpha = 1, -- alpha of the xft font - between 0-1 + + --Windows + own_window = true, -- create your own window to draw + own_window_argb_value = 255, -- real transparency - composite manager required 0-255 + own_window_argb_visual = true, -- use ARGB - composite manager required + own_window_class = 'Conky', -- manually set the WM_CLASS name for use with xprop + own_window_colour = '#282828', -- set colour if own_window_transparent no + own_window_transparent = false, -- if own_window_argb_visual is true sets background opacity 0% + own_window_title = 'dwm_conky', -- set the name manually + own_window_type = 'override', -- if own_window true options are: normal/override/dock/desktop/panel + own_window_hints = 'undecorated,below,above,sticky,skip_taskbar,skip_pager', -- if own_window true - just hints - own_window_type sets it + + --Colors (Gruvbox Dark) + color0 = '#b16286', + color1 = '#ebdbb2', + color2 = '#458588', + color3 = '#b8bb26', + +}; + +conky.text = [[ +${alignc}${color0}${font2}${time %H:%M}${font} +${voffset 6}${alignc}${color0}${font3}${time %b %d, %Y}${font}${color} +${color1}${hr}${color0} +${color3}Uptime:$color3 $uptime +${color3}Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,70 BAT0} +${voffset 18}${goto 12}${color3}CPU${goto 50}$cpu% +${color2}${goto 12}${cpubar 8,254} +${voffset 5}${goto 12}$font${color1}${top name 1}$alignr$color${top cpu 1}% +${goto 12}${color1}${top name 2}$alignr$color${top cpu 2}% +${goto 12}${color1}${top name 3}$alignr$color${top cpu 3}% +${voffset 14}${goto 12}${color3}RAM${goto 50}$mem/$memmax +${color2}${goto 12}${membar 8,254}${color} +${goto 12}${voffset 5}${color1}${top_mem name 1}$alignr$color${top_mem mem_res 1} +${goto 12}${color1}${top_mem name 2}$alignr$color${top_mem mem_res 2} +${goto 12}${color1}${top_mem name 3}$alignr$color${top_mem mem_res 3} +${color3}Storage: $color3${fs_free /}/${fs_size /} +${color2}${fs_bar 6 /} +${color1}${hr}${colo0} +${voffset 18}${color1}${alignc}${font4}Shortcuts${font}${color} +${color1}[SUPER]+[RETURN]${alignr}${color2}terminal${color} +${color1}[SUPER]+b${alignr}${color2}hide bar${color} +${color1}[SUPER]+d${alignr}${color2}launcher${color} +${color1}[SUPER]+q${alignr}${color2}kill${color} +${color1}[SUPER]+[1-9]${alignr}${color2}switch${color} +${color1}[SUPER]+[SHIFT]+r${alignr}${color2}htop${color} +${color1}${hr}${color} + +]]; diff --git a/shell/bash/.bash_profile b/shell/bash/.bash_profile new file mode 100644 index 0000000..aeac56a --- /dev/null +++ b/shell/bash/.bash_profile @@ -0,0 +1,6 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc +. "$HOME/.cargo/env" diff --git a/shell/bash/.bashrc b/shell/bash/.bashrc new file mode 100644 index 0000000..289d237 --- /dev/null +++ b/shell/bash/.bashrc @@ -0,0 +1,100 @@ + +parse_git_branch() { + local branch="" + branch=$(git branch 2> /dev/null | sed -n '/^[^*]/d;s/* \(.*\)/\1/p') + local git_status=$(git status --porcelain 2>/dev/null) + + if [ -n "$branch" ]; then + branch="(${branch}) " + fi + + echo "$branch" +} + +update_prompt() { + PS1="\[\e[31m\][\[\e[33m\]\u\[\e[32m\]@\[\e[34m\]\h \[\e[35m\]\w\[\e[31m\]]\[\e[35m\] \[\e[33m\]\$(parse_git_branch)\[\e[34m\]# \[\e[0m\]" +} + +PROMPT_COMMAND="update_prompt" + + +eval "$(zoxide init bash)" + +export XDG_DATA_HOME="$HOME"/.local/share +export XDG_CONFIG_HOME="$HOME"/.config +export XDG_STATE_HOME="$HOME"/.local/state +export XDG_CACHE_HOME="$HOME"/.cache +#export PATH=$PATH:$(xdg-user-dir USER)/.local/bin +export XDG_CURRENT_DESKTOP=dwm +export XDG_SESSION_DESKTOP=dwm +export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv +export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc +export LESSHISTFILE="$XDG_CACHE_HOME"/less/history +export EDITOR=nvim +export BUILDDIR=/tmp/makepkg +export RAVEDUDE_PORT=/dev/ttyACM0 +export BUN_INSTALL="$HOME/.bun" +export PATH="$BUN_INSTALL/bin:$PATH" +export PATH="$HOME/.cargo/bin:$PATH" +export ANDROID_HOME=$HOME/Android/sdk +export PATH=$PATH:$ANDROID_HOME/emulator +export PATH=$PATH:$ANDROID_HOME/platform-tools +export AWT_TOOLKIT=MToolkit +export JAVA_HOME=/usr/lib/jvm/java-21-openjdk +export GEM="/home/fw/.local/share/gem/ruby/3.0.0/bin" + +alias acl="arduino-cli" +alias acl="arduino-cli compile" +alias aclbl="arduino-cli board list" + +alias ls="eza -l --icons --color=always" +alias l="eza -l --icons --color=always" +alias ls="eza -l --icons --color=always" +alias la="eza -la --icons --color=always" +alias ll="eza -l --color=always --group-directories-first" +alias lt="eza -T --color=always --group-directories-first" +alias v="nvim" +alias c="clear" +alias e="exit" +alias j="joshuto" +alias g="grep" +alias g="rg" +alias zl="zellij" +alias h="htop" +alias n="neofetch" +alias poweroff="doas /usr/bin/poweroff" +alias reboot="doas /usr/bin/reboot" + +alias latexmk="latex-mk" + +alias orphans="doas pacman -Rcns $(pacman -Qqdt)" + +alias pf="prettier --write ." + + +alias gts="git status" +alias gta="git add ." +alias gtc="git commit -m" +alias gpo="git push origin" +alias pull="git pull origin" +alias glg="git log" + +[ -s "/home/fw/.bun/_bun" ] && source "/home/fw/.bun/_bun" + +if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then + exec startx &> /dev/null +# exec dbus-run-session run_something &> /dev/null +fi + +case ":$PATH:" in + *":$GEM:"*) ;; + *) export PATH="$GEM:$PATH" ;; +esac + + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +. "$HOME/.cargo/env" +# export PATH=$PATH:$(xdg-user-dir USER)/.local/bin +# export PATH=$PATH:$(xdg-user-dir USER)/.local/bin diff --git a/shell/zsh/.zsh/zsh-autosuggestions b/shell/zsh/.zsh/zsh-autosuggestions new file mode 160000 index 0000000..c3d4e57 --- /dev/null +++ b/shell/zsh/.zsh/zsh-autosuggestions @@ -0,0 +1 @@ +Subproject commit c3d4e576c9c86eac62884bd47c01f6faed043fc5 diff --git a/shell/zsh/.zsh/zsh-syntax-highlighting b/shell/zsh/.zsh/zsh-syntax-highlighting new file mode 160000 index 0000000..e0165ea --- /dev/null +++ b/shell/zsh/.zsh/zsh-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit e0165eaa730dd0fa321a6a6de74f092fe87630b0 diff --git a/shell/zsh/.zshenv b/shell/zsh/.zshenv new file mode 100644 index 0000000..c2f3182 --- /dev/null +++ b/shell/zsh/.zshenv @@ -0,0 +1 @@ +. "$HOME/.cargo/env" diff --git a/shell/zsh/.zshrc b/shell/zsh/.zshrc new file mode 100644 index 0000000..11170c6 --- /dev/null +++ b/shell/zsh/.zshrc @@ -0,0 +1,106 @@ +parse_git_branch() { + local branch="" + branch=$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') + local git_status=$(git status --porcelain 2>/dev/null) + local color=red + if [[ -n "$branch" ]]; then + branch=" (${branch})" + fi + echo "$branch " +} +update_prompt() { + PS1="%F{red}[%F{yellow}%n%F{green}@%F{blue}%m %F{magenta}%c%f%F{red}]%F{magenta}%F{yellow}$(parse_git_branch)%F{blue}# %F{reset}" +} +precmd_functions+=(update_prompt) +update_prompt + +HISTFILE="$XDG_CACHE_HOME"/zsh-histfile +HISTSIZE=2500 +SAVEHIST=2000 +setopt INC_APPEND_HISTORY +setopt HIST_EXPIRE_DUPS_FIRST +setopt HIST_FIND_NO_DUPS +unsetopt beep +bindkey -e +zstyle :compinstall filename "/home/$USER/.zshrc" +autoload -Uz compinit +compinit +setopt autocd +eval "$(zoxide init zsh)" + +export XDG_DATA_HOME="$HOME"/.local/share +export XDG_CONFIG_HOME="$HOME"/.config +export XDG_STATE_HOME="$HOME"/.local/state +export XDG_CACHE_HOME="$HOME"/.cache +#export PATH=$PATH:$(xdg-user-dir USER)/.local/bin +export XDG_CURRENT_DESKTOP=dwm +export XDG_SESSION_DESKTOP=dwm +export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv +export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc +export LESSHISTFILE="$XDG_CACHE_HOME"/less/history +export EDITOR=nvim +export BUILDDIR=/tmp/makepkg +export RAVEDUDE_PORT=/dev/ttyACM0 +export BUN_INSTALL="$HOME/.bun" +export PATH="$BUN_INSTALL/bin:$PATH" +export PATH="$HOME/.cargo/bin:$PATH" +export ANDROID_HOME=$HOME/Android/sdk +export PATH=$PATH:$ANDROID_HOME/emulator +export PATH=$PATH:$ANDROID_HOME/platform-tools +export AWT_TOOLKIT=MToolkit +export JAVA_HOME=/usr/lib/jvm/java-21-openjdk +export GEM="/home/fw/.local/share/gem/ruby/3.0.0/bin" +. "${HOME}/.cache/wal/colors.sh" + +alias dmenu='dmenu_run -nb "$color0" -nf "$color15" -sb "$color1" -sf "$color15"' + +alias acl='arduino-cli' +alias acl='arduino-cli compile' +alias aclbl='arduino-cli board list' + +alias ls='eza -l --icons --color=always' +alias l='eza -l --icons --color=always' +alias ls='eza -l --icons --color=always' +alias la='eza -la --icons --color=always' +alias ll='eza -l --color=always --group-directories-first' +alias lt='eza -T --color=always --group-directories-first' +alias v="nvim" +alias c="clear" +alias e="exit" +alias j="joshuto" +alias g="grep" +alias g="rg" +alias zl="zellij" +alias h="htop" +alias n="neofetch" +alias poweroff="doas /usr/bin/poweroff" +alias reboot="doas /usr/bin/reboot" + +alias latexmk="latex-mk" + +alias orphans='doas pacman -Rcns $(pacman -Qqdt)' + +alias pf="prettier --write ." + + +alias gts="git status" +alias gta="git add ." +alias gtc="git commit -m" +alias gpo="git push origin" +alias pull="git pull origin" +alias glg="git log" + +[ -s "/home/fw/.bun/_bun" ] && source "/home/fw/.bun/_bun" + +if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then + exec startx &> /dev/null +# exec dbus-run-session run_something &> /dev/null +fi + +case ":$PATH:" in + *":$GEM:"*) ;; + *) export PATH="$GEM:$PATH" ;; +esac + +source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh +source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh diff --git a/wallpaper.png b/wallpaper.png new file mode 100644 index 0000000..dc66f9c Binary files /dev/null and b/wallpaper.png differ diff --git a/wp2062872.jpg b/wp2062872.jpg new file mode 100644 index 0000000..212975e Binary files /dev/null and b/wp2062872.jpg differ diff --git a/x/.Xresources b/x/.Xresources new file mode 100644 index 0000000..1f301c5 --- /dev/null +++ b/x/.Xresources @@ -0,0 +1,28 @@ +st.alpha: 0.8 +st.font: FiraCode-12; +dmenu.font: FiraCode-11; +st.termname: st-256color +st.borderpx: 0 +dwm.borderpx: 0 +dwm.showbar: 0 +dwm.font: FiraCode-12; + + *.color0: #1d2021 + *.color1: #cc241d + *.color2: #98971a + *.color3: #d79921 + *.color4: #458588 + *.color5: #b16286 + *.color6: #689d6a + *.color7: #a89984 + *.color8: #928374 + *.color9: #fb4934 + *.color10: #b8bb26 + *.color11: #fabd2f + *.color12: #83a598 + *.color13: #d3869b + *.color14: #8ec07c + *.color15: #ebdbb2 + *.background: #282828 + *.foreground: white + *.cursorColor: white diff --git a/x/.xinitrc b/x/.xinitrc new file mode 100644 index 0000000..78a943a --- /dev/null +++ b/x/.xinitrc @@ -0,0 +1,33 @@ +#!/bin/sh + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/X11/xinit/.Xmodmap + +[ -f /etc/xprofile ] && . /etc/xprofile +[ -f ~/.xprofile ] && . ~/.xprofile + +if [ -f $sysresources ]; then + xrdb -merge $sysresources +fi + +if [ -f $sysmodmap ]; then + xmodmap $sysmodmap +fi + +if [ -f "$userresources" ]; then + xrdb -merge "$userresources" +fi + +if [ -f "$usermodmap" ]; then + xmodmap "$usermodmap" +fi + +if [ -d /etc/X11/xinit/xinitrc.d ] ; then + for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do + [ -x "$f" ] && . "$f" + done + unset f +fi +exec dbus-run-session dwm diff --git a/x/.xprofile b/x/.xprofile new file mode 100644 index 0000000..6f80fbd --- /dev/null +++ b/x/.xprofile @@ -0,0 +1,14 @@ +#!/bin/sh + +autostart="lxpolkit mpd" + +for program in $autostart; do + pidof -sx "$program" || "$program" & +done >/dev/null 2>&1 + +xrandr --dpi 96 +setxkbmap pl +wal -i ~/Repositories/rice/wp2062872.jpg & +picom -b & + +[ -n "$xrdbpid" ] && wait "$xrdbpid" diff --git a/zathura/zathurarc b/zathura/zathurarc new file mode 100644 index 0000000..d1885a9 --- /dev/null +++ b/zathura/zathurarc @@ -0,0 +1,70 @@ +set selection-clipboard clipboard +# Zathura configuration file +# See man `man zathurarc' + +set statusbar-h-padding 0 +set statusbar-v-padding 0 +set page-padding 2 +# Open document in fit-width mode by default +set adjust-open "fit-page" + +# One page per row by default +set pages-per-row 1 + +#stop at page boundries +set scroll-page-aware "true" +set smooth-scroll "true" +set scroll-full-overlap 0.01 +set scroll-step 100 + +set window-title-home-tilde 1 +set statusbar-home-tilde 1 +set window-title-basename 1 +#zoom settings +#set zoom-min 10 +set guioptions 1 + +# bookmarks settings +set database "plain" +# set sandbox "none" +# zathurarc-dark + +set font "Courier 12" +set default-bg "#0" #00 +set default-fg "#F7F7F6" #01 + +set statusbar-fg "#B0B0B0" #04 +set statusbar-bg "#202020" #01 + +set inputbar-bg "#000000" #00 currently not used +set inputbar-fg "#FFFFFF" #02 + +set notification-error-bg "#AC4142" #08 +set notification-error-fg "#151515" #00 + +set notification-warning-bg "#AC4142" #08 +set notification-warning-fg "#151515" #00 + +set highlight-color "#F4BF75" #0A +set highlight-active-color "#6A9FB5" #0D + +set completion-highlight-fg "#151515" #02 +set completion-highlight-bg "#90A959" #0C + +set completion-bg "#303030" #02 +set completion-fg "#E0E0E0" #0C + +set notification-bg "#90A959" #0B +set notification-fg "#151515" #00 + +#set recolor "true" +set recolor-lightcolor "#000000" #00 +set recolor-darkcolor "#E0E0E0" #06 +set recolor-reverse-video "true" +set recolor-keephue "true" + + +#set render-loading "false" +set scroll-step 50 +map feedkeys ":bmark " +set database "plain" -- cgit v1.2.3