----- Changes: zsh

+ Added oh-my-zsh custom stuff
This commit is contained in:
ziro 2020-05-21 14:00:35 +07:00
parent 24f7803f51
commit 22a6b88e14
12 changed files with 54 additions and 77 deletions

View file

@ -17,7 +17,19 @@ cmd open ${{
image/*) feh -g 1280x720 --scale-down "$f" &;; image/*) feh -g 1280x720 --scale-down "$f" &;;
video/*) mpv "$f" --quiet > /dev/null & ;; video/*) mpv "$f" --quiet > /dev/null & ;;
application/pdf) zathura "$f" & ;; 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 esac
}} }}

View file

@ -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;
};
};

View file

@ -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-left = bspwm dividerS wirednetwork temp covPos covSem dividerS
modules-center = date 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 tray-detached = false
@ -613,7 +613,7 @@ ramp-foreground = ${colors.secondary1L2}
[module/disk] [module/disk]
type = custom/script type = custom/script
exec = ~/.config/polybar/scripts/disk.sh exec = ~/.config/polybar/scripts/disk.sh
interval = 30 interval = 5
tail = true tail = true
label-font = 3 label-font = 3
label-foreground = ${colors.foreground} label-foreground = ${colors.foreground}

View file

@ -154,4 +154,6 @@ super + alt + g
# volume # volume
super + alt + control + v super + alt + control + v
sh $HOME/.scripts/volume.sh sh $HOME/.scripts/volume.sh
# mount
super + {_,shift} Insert
{dmenumount,dmenuumount}

View file

@ -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
#

View file

@ -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.

@ -0,0 +1 @@
Subproject commit c4c419edb98c54e442f743708f3f1159d6735241

@ -0,0 +1 @@
Subproject commit ae315ded4dba10685dbbafbfa2ff3c1aefeb490d

@ -0,0 +1 @@
Subproject commit f5d1be7ec2436cfa9d45dfc2bb72fb060eae650f

View file

@ -0,0 +1 @@
/home/ziro/.local/share/oh-my-zsh/themes/spaceship-prompt/spaceship.zsh-theme

View file

@ -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"

View file

@ -27,13 +27,13 @@ chosen=$(echo -e "$choices" | rofi -p Games -dmenu -i -theme ~/.config/rofi/them
#Choice Execution ------- #Choice Execution -------
case "$chosen" in case "$chosen" in
RetroArch) notify-send "Launching..." "$chosen" && retroarch ;; RetroArch) notify-send "Launching..." "$chosen" && retroarch ;;
$pc) sh $gamedir/pc.sh ;; $pc) games -t PC ;;
PS2) sh $HOME/.scripts/games/ps2.sh ;; PS2) sh $HOME/.scripts/games/ps2.sh ;;
NDS) sh $HOME/.scripts/games/nds.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 ;; Steam) notify-send "Launching..." "$chosen" && steam ;;
$mcbe) sh $gamedir/mcpe.sh ;; $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";; $mcje) notify-send "Launching..." "$chosen" && gamemoderun java -jar "$HOME/my Games/PC/TLauncher.jar";;
esac esac