diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 39d4b6a..54097cc 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -17,10 +17,22 @@ cmd open ${{ image/*) feh -g 1280x720 --scale-down "$f" &;; video/*) mpv "$f" --quiet > /dev/null & ;; application/pdf) zathura "$f" & ;; - *) xdg-open "$f" ;; + *) xdg-open "$f" &;; esac }} +cmd extract ${{ + case $f in + *.bz2) tar -xjvf $f ;; + *.gz) tar -xvf $f ;; + *.xz) tar -xf $f ;; + *.tar) tar -xvf $f ;; + *.7z|*.zip) 7z x $f ;; + *.rar) unrar x $f ;; + *) echo "File type not supported" ;; + esac +}} + cmd open_with $[ -z "$1" ] && echo "$f" || $1 "$f" cmd mkdir $mkdir -p "$(echo $* | tr ' ' '\ ')" diff --git a/.config/picom/compton.conf b/.config/picom/compton.conf deleted file mode 100644 index c5dede2..0000000 --- a/.config/picom/compton.conf +++ /dev/null @@ -1,70 +0,0 @@ -shadow = true; -detect-rounded-corners = true; -shadow-radius = 5; -shadow-offset-x = 1; -shadow-offset-y = 1; -shadow-opacity = 0.3; -shadow-ignore-shaped = false; -shadow-exclude = [ "name = 'Notification'", "override_redirect = 1 && !WM_CLASS@:s", "class_g ?= 'Dmenu'", "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", "_GTK_FRAME_EXTENTS@:c", "class_g ?= 'i3-frame'", "class_g ?= 'trayer'", "class_g ?= 'tray'", "class_g ?= 'Polybar'", "class_g ?= 'rofi'" ]; -menu-opacity = 1.0; -inactive-opacity = 1.0; -active-opacity = 1; -alpha-step = 0.01; -inactive-dim = 0.0; -blur-background = false; -blur-kern = "3x3box"; -fading = false; -fade-delta = 1; -fade-in-step = 0.03; -fade-out-step = 0.03; -fade-exclude = [ ]; -backend = "xrender"; -mark-wmwin-focused = true; -mark-ovredir-focused = true; -detect-client-opacity = true; -unredir-if-possible = true; -refresh-rate = 60; -vsync = true; -dbe = false; -focus-exclude = [ "class_g = 'Cairo-clock'" ]; -detect-transient = true; -detect-client-leader = true; -invert-color-include = [ ]; -glx-copy-from-front = false; -glx-swap-method = "undefined"; -opacity-rule = [ "99:name *?= 'Call'", -"95:name *?= 'Lynx'", -"95:name *?= 'toot'", -"95:name *?= 'nmon'", -"95:name *?= 'httping'", -"90:class_g *?= 'conky'", -"90:class_g *?= 'thunar'", -"100:class_g *?= 'Steam'", -"100:class_g *?= 'st' && !_NET_WM_STATE@:32a", -"90:class_g *?= 'atom'", -"96:class_g *?= 'emacs'", -"100:class_g *?= 'polybar' && class_g *?= 'Polybar'", -"95:class_g *?= 'surf' && name *?='suckless.org'", -"95:class_g *?= 'tabbed'", -"95:name *?= 'newsboat'", -"100:class_g = 'XTerm' && !_NET_WM_STATE@:32a", -"100:class_g = 'URxvt' && !_NET_WM_STATE@:32a", -"90:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'", -"96:_NET_WM_STATE@:32a *= '_NET_WM_STATE_STICKY'" ]; -wintypes : -{ - tooltip : - { - fade = true; - shadow = false; - opacity = 0.85; - focus = true; - }; - fullscreen : - { - fade = true; - shadow = false; - opacity = 1; - focus = true; - }; -}; diff --git a/.config/polybar/config b/.config/polybar/config index 4ee93ea..e99c9f8 100755 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -106,7 +106,7 @@ font-8 = "Iosevka Nerd Font:bold:style=solid:size=8;2" ; ---------------------------------------------------------------------------------------- modules-left = bspwm dividerS wirednetwork temp covPos covSem dividerS modules-center = date -modules-right = dividerS currency disk player-mpris-tail player-mpris mpd volume battery dividerS prompt +modules-right = dividerS disk player-mpris-tail player-mpris mpd volume battery dividerS prompt ; ---------------------------------------------------------------------------------------- tray-detached = false @@ -613,7 +613,7 @@ ramp-foreground = ${colors.secondary1L2} [module/disk] type = custom/script exec = ~/.config/polybar/scripts/disk.sh -interval = 30 +interval = 5 tail = true label-font = 3 label-foreground = ${colors.foreground} diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 8f93339..ca79023 100755 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -154,4 +154,6 @@ super + alt + g # volume super + alt + control + v sh $HOME/.scripts/volume.sh - +# mount +super + {_,shift} Insert + {dmenumount,dmenuumount} diff --git a/.local/share/oh-my-zsh/custom/example.zsh b/.local/share/oh-my-zsh/custom/example.zsh new file mode 100644 index 0000000..c505a96 --- /dev/null +++ b/.local/share/oh-my-zsh/custom/example.zsh @@ -0,0 +1,10 @@ +# You can put files here to add functionality separated per file, which +# will be ignored by git. +# Files on the custom/ directory will be automatically loaded by the init +# script, in alphabetical order. + +# For example: add yourself some shortcuts to projects you often work on. +# +# brainstormr=~/Projects/development/planetargon/brainstormr +# cd $brainstormr +# diff --git a/.local/share/oh-my-zsh/custom/plugins/example/example.plugin.zsh b/.local/share/oh-my-zsh/custom/plugins/example/example.plugin.zsh new file mode 100644 index 0000000..406f274 --- /dev/null +++ b/.local/share/oh-my-zsh/custom/plugins/example/example.plugin.zsh @@ -0,0 +1,2 @@ +# Add your own custom plugins in the custom/plugins directory. Plugins placed +# here will override ones with the same name in the main plugins directory. diff --git a/.local/share/oh-my-zsh/custom/plugins/fast-syntax-highlighting b/.local/share/oh-my-zsh/custom/plugins/fast-syntax-highlighting new file mode 160000 index 0000000..c4c419e --- /dev/null +++ b/.local/share/oh-my-zsh/custom/plugins/fast-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit c4c419edb98c54e442f743708f3f1159d6735241 diff --git a/.local/share/oh-my-zsh/custom/plugins/zsh-autosuggestions b/.local/share/oh-my-zsh/custom/plugins/zsh-autosuggestions new file mode 160000 index 0000000..ae315de --- /dev/null +++ b/.local/share/oh-my-zsh/custom/plugins/zsh-autosuggestions @@ -0,0 +1 @@ +Subproject commit ae315ded4dba10685dbbafbfa2ff3c1aefeb490d diff --git a/.local/share/oh-my-zsh/custom/plugins/zsh-syntax-highlighting b/.local/share/oh-my-zsh/custom/plugins/zsh-syntax-highlighting new file mode 160000 index 0000000..f5d1be7 --- /dev/null +++ b/.local/share/oh-my-zsh/custom/plugins/zsh-syntax-highlighting @@ -0,0 +1 @@ +Subproject commit f5d1be7ec2436cfa9d45dfc2bb72fb060eae650f diff --git a/.local/share/oh-my-zsh/custom/themes/spaceship.zsh-theme b/.local/share/oh-my-zsh/custom/themes/spaceship.zsh-theme new file mode 120000 index 0000000..e934b1d --- /dev/null +++ b/.local/share/oh-my-zsh/custom/themes/spaceship.zsh-theme @@ -0,0 +1 @@ +/home/ziro/.local/share/oh-my-zsh/themes/spaceship-prompt/spaceship.zsh-theme \ No newline at end of file diff --git a/.local/share/oh-my-zsh/custom/themes/zi.zsh-theme b/.local/share/oh-my-zsh/custom/themes/zi.zsh-theme new file mode 100644 index 0000000..37d7cb3 --- /dev/null +++ b/.local/share/oh-my-zsh/custom/themes/zi.zsh-theme @@ -0,0 +1,17 @@ +# Load version control information +autoload -Uz vcs_info +precmd() { vcs_info } + +# Format the vcs_info_msg_0_ variable +zstyle ':vcs_info:*' enable git +zstyle ':vcs_info:git:*' formats '%b %u%c' + +# Prompt +setopt PROMPT_SUBST +PROMPT=' +$fg[white]${PWD/#$HOME/~} $fg[blue]${vcs_info_msg_0_} +$fg[green]$> %b' + +#Autocomplete +ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#c5c8c6,bold,underline" + diff --git a/.scripts/play.sh b/.scripts/play.sh index e19178e..9b67b88 100755 --- a/.scripts/play.sh +++ b/.scripts/play.sh @@ -27,13 +27,13 @@ chosen=$(echo -e "$choices" | rofi -p Games -dmenu -i -theme ~/.config/rofi/them #Choice Execution ------- case "$chosen" in RetroArch) notify-send "Launching..." "$chosen" && retroarch ;; - $pc) sh $gamedir/pc.sh ;; + $pc) games -t PC ;; PS2) sh $HOME/.scripts/games/ps2.sh ;; NDS) sh $HOME/.scripts/games/nds.sh ;; - $trids) sh $HOME/.scripts/games/3ds.sh ;; + $trids) games -t 3DS ;; Steam) notify-send "Launching..." "$chosen" && steam ;; $mcbe) sh $gamedir/mcpe.sh ;; - "NES") sh $HOME/.scripts/games/nes.sh ;; + "NES") games -t NES ;; $mcje) notify-send "Launching..." "$chosen" && gamemoderun java -jar "$HOME/my Games/PC/TLauncher.jar";; esac