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