cambios varios post reinstalacion
This commit is contained in:
parent
547281955b
commit
df2c7a2f0a
14
.Xresources
14
.Xresources
|
@ -58,7 +58,7 @@ URxvt*scrollBar: false
|
|||
URxvt*scrollBar_right: false
|
||||
URxvt*letterSpace: 0
|
||||
URxvt*depth: 32
|
||||
URxvt*saveline: 2000
|
||||
URxvt*saveline: 0
|
||||
URxvt*scrollTtyOutput: false
|
||||
URxvt*scrollWithBuffer: true
|
||||
URxvt*scrollTtyKeypress: true
|
||||
|
@ -68,11 +68,11 @@ URxvt*dynamicColors: on
|
|||
URxvt*cutchars: "\"()*,<>[]{}|\'"
|
||||
|
||||
! esto afecta a pd-l2ork y otras cosas, guarda
|
||||
!Xft.lcdfilter: lcddefault
|
||||
!Xft.hintstyle: hintmedium
|
||||
!Xft.antialias: true
|
||||
!Xft.hinting: true
|
||||
!Xft.autohint: true
|
||||
!Xft.rgba: rgb
|
||||
Xft.autohint: 0
|
||||
Xft.lcdfilter: lcddefault
|
||||
Xft.hintstyle: hintmedium
|
||||
Xft.hinting: 1
|
||||
Xft.antialias: 1
|
||||
Xft.rgba: rgb
|
||||
|
||||
Xcursor.theme: Alkano
|
|
@ -1,40 +0,0 @@
|
|||
<?xml encoding="UTF-8" version="1.0"?>
|
||||
<actions>
|
||||
<action>
|
||||
<icon>utilities-terminal</icon>
|
||||
<name>Terminal</name>
|
||||
<unique-id>1530489151398985-1</unique-id>
|
||||
<command>exo-open --working-directory %f --launch TerminalEmulator</command>
|
||||
<description></description>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
</action>
|
||||
<action>
|
||||
<icon>gcr-password</icon>
|
||||
<name>Thunar Root</name>
|
||||
<unique-id>1530489181576302-2</unique-id>
|
||||
<command>pkexec thunar %f</command>
|
||||
<description>Thunar Root</description>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
</action>
|
||||
<action>
|
||||
<icon>system-search</icon>
|
||||
<name>Search</name>
|
||||
<unique-id>1367866030392913-3</unique-id>
|
||||
<command>catfish %f</command>
|
||||
<description>find files and folders</description>
|
||||
<patterns>*</patterns>
|
||||
<directories/>
|
||||
</action>
|
||||
<action>
|
||||
<icon>text-x-component</icon>
|
||||
<name>Edit As Root</name>
|
||||
<unique-id>1524021080822463-1</unique-id>
|
||||
<command>pkexec gedit %f</command>
|
||||
<description></description>
|
||||
<patterns>*</patterns>
|
||||
<other-files/>
|
||||
<text-files/>
|
||||
</action>
|
||||
</actions>
|
|
@ -4,7 +4,8 @@ xsetroot -cursor_name left_ptr &
|
|||
compton -b &
|
||||
# redshift -c ~/.config/redshift/redshift.conf &
|
||||
dunst -conf ~/.config/dunst/dunstrc &
|
||||
sleep 2s
|
||||
sleep 1s
|
||||
mpd &
|
||||
unclutter &
|
||||
xss-lock -- exeflock4 &
|
||||
urxvtd -q -o -f
|
||||
|
|
|
@ -49,12 +49,9 @@ bspc config focused_border_color "$(get_xrdb color3)"
|
|||
bspc config border_width $b_width
|
||||
|
||||
# Flotantes
|
||||
bspc rule -a Lxappearance state=floating
|
||||
bspc rule -a vlc state=floating
|
||||
bspc rule -a REAPER state=floating, layer=below
|
||||
bspc rule -a Sol state=floating
|
||||
bspc rule -a Pavucontrol state=floating
|
||||
bspc rule -a qsynth state=floating
|
||||
bspc rule -a Catia state=floating
|
||||
bspc rule -a Cadence state=floating
|
||||
bspc rule -a Qalculate-gtk state=floating
|
||||
|
@ -70,15 +67,10 @@ bspc rule -a Nm-connection-editor state=floating
|
|||
bspc rule -a Godot state=floating
|
||||
bspc rule -a Pinentry state=floating
|
||||
bspc rule -a URxvt:flota state=floating
|
||||
bspc rule -a stalonetray layer=above
|
||||
|
||||
# Otros
|
||||
bspc rule -a Zathura state=tiled
|
||||
bspc rule -a Oblogout manage=off
|
||||
|
||||
# Fijos
|
||||
bspc rule -a Termite desktop='^1'
|
||||
bspc rule -a Firefox desktop='^2'
|
||||
bspc rule -a Oblogout layer=above
|
||||
|
||||
bspc config external_rules_command "$HOME/.config/bspwm/external_rules.sh"
|
||||
2bspwm &
|
||||
|
|
|
@ -17,14 +17,14 @@ vertPref=south
|
|||
|
||||
# if dimensions are within this percent, will split $horiPref,
|
||||
# else direction is determined by width or height being greater.
|
||||
percent=.33
|
||||
percent=.45
|
||||
|
||||
# if 1 node is open, switch directions (related to custom_monocle)
|
||||
mon_width=$(bspc query -T -m | jq .rectangle.width)
|
||||
mon_height=$(bspc query -T -m | jq .rectangle.height)
|
||||
if [ $mon_width -gt $mon_height ]; then
|
||||
if [ "$mon_width" -gt "$mon_height" ]; then
|
||||
node_count=$(bspc query -N -d $desk -n .leaf.normal | wc -l)
|
||||
[ $node_count -eq 1 ] && vertPref=$horiPref
|
||||
[ "$node_count" -eq 1 ] && vertPref=$horiPref
|
||||
fi
|
||||
|
||||
# get any presels on the current desktop, select one if so.
|
||||
|
@ -33,14 +33,14 @@ targetNode=${presel:-focused}
|
|||
|
||||
# we get these values early because you can't use bspc commands
|
||||
# in an external rule after you start echoing.
|
||||
width=$(bspc query -T -n $targetNode | jq '.rectangle.width')
|
||||
height=$(bspc query -T -n $targetNode | jq '.rectangle.height')
|
||||
width=$(bspc query -T -n "$targetNode" | jq '.rectangle.width')
|
||||
height=$(bspc query -T -n "$targetNode" | jq '.rectangle.height')
|
||||
|
||||
# set node
|
||||
echo node=$targetNode
|
||||
echo node="$targetNode"
|
||||
|
||||
# not specifying split dir if targetting presel
|
||||
[ ! -z $presel ] && exit 0
|
||||
[ ! -z "$presel" ] && exit 0
|
||||
|
||||
bcInput="$(iif "[ $width -gt $height ]" \
|
||||
"($width-$height)/$width" \
|
||||
|
@ -54,4 +54,4 @@ else
|
|||
split_dir=$(iif "[ $width -gt $height ]" $horiPref $vertPref)
|
||||
fi
|
||||
|
||||
echo split_dir=$split_dir
|
||||
echo split_dir="$split_dir"
|
|
@ -0,0 +1,10 @@
|
|||
# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
|
||||
# probably wise not to edit this file manually. Use localectl(1) to
|
||||
# instruct systemd-localed to update it.
|
||||
Section "InputClass"
|
||||
Identifier "system-keyboard"
|
||||
MatchIsKeyboard "on"
|
||||
Option "XkbLayout" "latam"
|
||||
Option "XkbModel" "pc105"
|
||||
Option "XkbOptions" "terminate:ctrl_alt_bksp"
|
||||
EndSection
|
|
@ -0,0 +1 @@
|
|||
vm.swappiness=10
|
|
@ -0,0 +1,11 @@
|
|||
LANG="en_US.UTF-8"
|
||||
LC_ADDRESS="es_AR.UTF-8"
|
||||
LC_COLLATE=C
|
||||
LC_MESSAGES="en_US.UTF-8"
|
||||
LC_MONETARY="es_AR.UTF-8"
|
||||
LC_PAPER="es_AR.UTF-8"
|
||||
LC_NAME="es_AR.UTF-8"
|
||||
LC_NUMERIC="es_AR.UTF-8"
|
||||
LC_TELEPHONE="es_AR.UTF-8"
|
||||
LC_TIME="es_AR.UTF-8"
|
||||
|
|
@ -6,7 +6,7 @@ usehal = false
|
|||
[looks]
|
||||
opacity = 45
|
||||
bgcolor = black
|
||||
buttontheme = foom
|
||||
buttontheme = rounded
|
||||
buttons = lock, logout, restart, shutdown
|
||||
|
||||
[shortcuts]
|
||||
|
@ -20,7 +20,7 @@ shutdown = S
|
|||
cancel = Escape
|
||||
|
||||
[commands]
|
||||
lock = xflock4
|
||||
lock = exeflock4
|
||||
logout = bspc quit 1
|
||||
switch = dm-tool switch-to-greeter
|
||||
suspend = fluxboxexit suspend
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
|
||||
[urgency_critical]
|
||||
background = "#fb4245"
|
||||
foreground = "#131313"
|
||||
foreground = "#e0d0c3"
|
||||
frame_color = "#e53935"
|
||||
timeout = 60
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@ map uV toggle_visual_mode reverse=True
|
|||
|
||||
# For the nostalgics: Midnight Commander bindings
|
||||
map <F1> help
|
||||
map <F2> rename_append
|
||||
map <F2> eval fm.execute_console("bulkrename") if fm.thisdir.marked_items else fm.open_console("rename ")
|
||||
map <F3> display_file
|
||||
map <F4> edit
|
||||
map <F5> copy
|
||||
|
|
|
@ -145,11 +145,11 @@ ext mobi, has ebook-viewer, X, flag f = ebook-viewer -- "$@"
|
|||
mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@"
|
||||
mime ^image/svg, has display, X, flag f = display -- "$@"
|
||||
|
||||
ext gif, has sxiv, X, flag f = sxiv-gif -- "$@"
|
||||
mime ^image, has sxiv, X, flag f = sxiv-rifle -- "$@"
|
||||
mime ^image, has feh, X, flag f = feh -- "$@"
|
||||
mime ^image, has gimp, X, flag f = gimp -- "$@"
|
||||
ext xcf, X, flag f = gimp -- "$@"
|
||||
ext gif, has sxiv, X, flag f = sxiv-gif -- "$@"
|
||||
ext gif, has mpv, X, flag f = mpv --loop=0 -- "$@"
|
||||
ext blend, has blender, X, flag f = blender -- "$@"
|
||||
|
||||
|
@ -178,6 +178,8 @@ ext ace, has unace = for file in "$@"; do unace e "$file"; done
|
|||
ext rar, has unrar = unrar l "$1" | less
|
||||
ext rar, has unrar = for file in "$@"; do unrar x "$file"; done
|
||||
|
||||
ext rar|zip|tar|tgz|xz, has file-roller, X, flag f = file-roller -- "$@"
|
||||
|
||||
# Define the editor for non-text files + pager as last action
|
||||
!mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = ask
|
||||
label editor, !mime ^text, !ext xml|json|csv|tex|py|pl|rb|js|sh|php = $EDITOR -- "$@"
|
||||
|
|
|
@ -57,6 +57,7 @@ alias ping='ping -c 5 '
|
|||
alias dd="dd status=progress"
|
||||
|
||||
# Comandos
|
||||
alias logout="bspc quit 1"
|
||||
alias svi="sudo nvim"
|
||||
alias pacmir='sudo pacman-mirrors -f5'
|
||||
alias upd='trizen -Syu'
|
||||
|
|
|
@ -133,6 +133,9 @@ wpp() { hsetroot -fill ~/Pictures/wallpaper/$1 ;}
|
|||
|
||||
# Command not found
|
||||
[[ -e /usr/share/doc/pkgfile/command-not-found.zsh ]] && source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||
|
||||
# Cleaner xev output
|
||||
xev() { xev | awk -F'[ )]+' '/^KeyPress/ { a[NR+2] } NR in a { printf "%-3s %s\n", $5, $8 }' }
|
||||
# }}}
|
||||
|
||||
# vim:foldmethod=marker:foldlevel=0
|
|
@ -1,14 +1,14 @@
|
|||
# TERM
|
||||
set -g default-terminal tmux-256color
|
||||
set -ga terminal-overrides ',xterm-256color:Tc'
|
||||
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
||||
#set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q'
|
||||
|
||||
# Opciones basicas
|
||||
set -g set-clipboard on
|
||||
#set -sg escape-time 1
|
||||
set -g mouse on
|
||||
set -gq status-utf8 on
|
||||
setw -gq utf8 on
|
||||
set -g escape-time 50
|
||||
|
||||
# Ventanas
|
||||
set -g base-index 1
|
||||
|
|
|
@ -1,5 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
userresources=$HOME/.Xresources
|
||||
usermodmap=$HOME/.Xmodmap
|
||||
sysresources=/etc/X11/xinit/.Xresources
|
||||
sysmodmap=/etc/X11/xinit/.Xmodmap
|
||||
|
||||
# merge in defaults and keymaps
|
||||
|
||||
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
|
||||
|
||||
# start some nice programs
|
||||
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
||||
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
||||
[ -x "$f" ] && . "$f"
|
||||
|
@ -7,17 +32,13 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
|||
unset f
|
||||
fi
|
||||
|
||||
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources
|
||||
|
||||
xset s off &
|
||||
xset s noblank &
|
||||
xset dpms 900 1200 1800 &
|
||||
xset s noexpose &
|
||||
|
||||
setxkbmap -option caps:escape
|
||||
|
||||
dbus-update-activation-environment --systemd DISPLAY
|
||||
eval "$(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)"
|
||||
export SSH_AUTH_SOCK
|
||||
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
|
||||
sxhkd &
|
||||
xfce4-power-manager &
|
||||
exec bspwm
|
||||
exec bspwm
|
||||
|
|
3
.zshenv
3
.zshenv
|
@ -13,5 +13,6 @@ export QUOTING_STYLE=literal
|
|||
export QT_QPA_PLATFORMTHEME=qt5ct
|
||||
export SSH_ASKPASS="/usr/lib/seahorse/ssh-askpass"
|
||||
export GTK2_RC_FILES="$HOME/.gtkrc-2.0"
|
||||
export PATH="${PATH}:/home/deadguy/bin:/usr/lib/surfraw:/usr/lib/ccache/bin/"
|
||||
|
||||
typeset -U path
|
||||
path=(~/bin /usr/lib/ccache/bin /usr/lib/surfraw $path[@])
|
||||
|
|
18
.zshrc
18
.zshrc
|
@ -12,15 +12,13 @@ zplugin load peterhurford/up.zsh
|
|||
zplugin load hlissner/zsh-autopair
|
||||
zplugin ice as"program" pick"$ZPFX/bin/git-*" make"PREFIX=$ZPFX" nocompile'!'
|
||||
zplugin light tj/git-extras
|
||||
zplugin ice pick"async.zsh" src"pure.zsh"; zplugin light sindresorhus/pure
|
||||
PURE_CMD_MAX_EXEC_TIME=10000000
|
||||
PURE_GIT_PULL=1
|
||||
PURE_PROMPT_SYMBOL='>'
|
||||
PURE_PROMPT_VICMD_SYMBOL='<'
|
||||
PURE_GIT_DOWN_ARROW='↓'
|
||||
PURE_GIT_UP_ARROW='↑'
|
||||
prompt_newline='%666v'
|
||||
PROMPT=" $PROMPT"
|
||||
GEOMETRY_COLOR_PROMPT="green"
|
||||
GEOMETRY_PROMPT_PLUGINS=(virtualenv git)
|
||||
GEOMETRY_SYMBOL_PROMPT=">"
|
||||
GEOMETRY_SYMBOL_EXIT_VALUE="!"
|
||||
GEOMETRY_SYMBOL_ROOT="#"
|
||||
zplugin ice lucid atload"prompt_geometry_render"
|
||||
zplugin light geometry-zsh/geometry
|
||||
zplugin ice atinit'local i; for i in *.zsh; do source $i; done'; zpl light ~/.config/zsh
|
||||
zplugin load djui/alias-tips
|
||||
zplugin ice pick"c.zsh" atclone"dircolors -b LS_COLORS > c.zsh" atpull"%atclone"
|
||||
|
@ -69,7 +67,7 @@ zstyle ':completion:*:builtins' list-colors '=*=1;38;5;142'
|
|||
zstyle ':completion:*:aliases' list-colors '=*=2;38;5;120'
|
||||
zstyle ':completion:*:options' list-colors '=^(-- *)=34'
|
||||
zstyle ':completion:*' list-separator "--"
|
||||
zstyle ':completion:*:default' list-colors '=(#b)*(-- *)=36=31' '=*=36'
|
||||
zstyle ':completion:*:default' list-colors '=(#b)*(-- *)=36=33' '=*=36'
|
||||
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*( *[a-z])*=34=31=33'
|
||||
zstyle ':completion:*:*:*:*:processes' command "ps -u `whoami` -o pid,user,comm -w -w"
|
||||
zstyle ':completion::complete:*' use-cache on
|
||||
|
|
33
bin/2bspwm
33
bin/2bspwm
|
@ -6,30 +6,39 @@
|
|||
focusedTint=80
|
||||
normalTint=20
|
||||
|
||||
# set border widths. if odd, outer is 1px larger
|
||||
# set border widths, if odd outer is 1px larger
|
||||
borderWidth=`bspc config border_width`
|
||||
inWidth=$(( $borderWidth/2 ))
|
||||
outWidth=$(( ($borderWidth/2) + ($borderWidth%2) ))
|
||||
|
||||
# optionally vary width based on focused or not
|
||||
|
||||
# half if even, 1px to outer if odd
|
||||
inWidthNormal=$(( $borderWidth/2 ))
|
||||
outWidthNormal=$(( ($borderWidth/2) + ($borderWidth%2) ))
|
||||
|
||||
inWidthFocused=$(( $inWidthNormal + 0 ))
|
||||
outWidthFocused=$(( $outWidthNormal - 0 ))
|
||||
|
||||
# _chwb2 [Focused|Normal] [nodeId]
|
||||
_chwb2() {
|
||||
colorType=$1
|
||||
shift
|
||||
eval chwb2 -I \$inner$colorType -O \$outer$colorType -i $inWidth -o $outWidth $@ 2>/dev/null &
|
||||
eval echo chwb2 -I \$inner$colorType -O \$outer$colorType -i $inWidth -o $outWidth $@ 2>/dev/null &
|
||||
_getVal() {
|
||||
eval echo \$$1$colorType
|
||||
}
|
||||
|
||||
chwb2 -I $(_getVal inner) -O $(_getVal outer) -i $(_getVal inWidth) -o $(_getVal outWidth) $@ 2>/dev/null &
|
||||
}
|
||||
|
||||
# define border colors based on bspwm border settings
|
||||
innerFocused=`bspc config focused_border_color | tr -d \#`
|
||||
colort -c "$innerFocused" && sign=+ || sign=-
|
||||
outerFocused=`bspc config normal_border_color | tr -d \#`
|
||||
outerFocused=`bspc config focused_border_color | tr -d \#`
|
||||
colort -c "$outerFocused" && sign=+ || sign=-
|
||||
echo $outerFocused
|
||||
innerFocused=`colort -l $sign$focusedTint "$outerFocused"`
|
||||
echo $innerFocused
|
||||
echo $outerFocused
|
||||
|
||||
innerNormal=`bspc config normal_border_color | tr -d \#`
|
||||
colort -c "$innerNormal" && sign=+ || sign=-
|
||||
outerNormal=`colort -l $sign$normalTint "$innerNormal"`
|
||||
outerNormal=`bspc config normal_border_color | tr -d \#`
|
||||
colort -c "$outerNormal" && sign=+ || sign=-
|
||||
innerNormal=`colort -l $sign$normalTint "$outerNormal"`
|
||||
|
||||
# initial draw
|
||||
_chwb2 Normal `bspc query -N -n .!descendant_of.window.!fullscreen`
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
dunst() {
|
||||
pkill -0 --exact dunst || return 0
|
||||
|
@ -21,37 +21,53 @@ dunst stop
|
|||
|
||||
# lock colors
|
||||
c0='#00000000' # clear
|
||||
#c1='#000000ff' # black
|
||||
c2='#007c0000'
|
||||
c3='#af000000'
|
||||
c4='#af0000ff'
|
||||
c1='#000000ff' # black
|
||||
c2='#FABD2F88'
|
||||
c3='#FB493488'
|
||||
c4='#EBDBB2FF'
|
||||
c5='#00d70000'
|
||||
c6='#9c060600'
|
||||
c7='#eeeeec00'
|
||||
c6='#28282888'
|
||||
c7='#282828FF'
|
||||
c8='#eeeeecff'
|
||||
c9='#12121200'
|
||||
cA='#c4a000ff'
|
||||
|
||||
# Fork both i3lock and its monitor to avoid blocking xautolock.
|
||||
lock="$HOME/Pictures/barlock.png"
|
||||
image=$(mktemp --suffix=.png)
|
||||
trap 'rm -f "$image"' SIGINT SIGTERM EXIT
|
||||
|
||||
maim -u \
|
||||
| convert png:- -scale 10% -scale 1000% \
|
||||
"$lock" -gravity center -composite -matte "$image"
|
||||
|
||||
i3lock \
|
||||
-i ~/Pictures/maralock.png \
|
||||
--image="$image" \
|
||||
--insidevercolor=$c2 \
|
||||
--insidewrongcolor=$c3 \
|
||||
--insidecolor=$c0 \
|
||||
--ringvercolor=$c5 \
|
||||
--ringwrongcolor=$c6 \
|
||||
--ringvercolor=$c7 \
|
||||
--ringwrongcolor=$c7 \
|
||||
--ringcolor=$c7 \
|
||||
--verifcolor=$c8 \
|
||||
--wrongcolor=$c4 \
|
||||
--linecolor=$c7 \
|
||||
--separatorcolor=$c9 \
|
||||
--keyhlcolor=$c8 \
|
||||
--bshlcolor=$cA \
|
||||
--radius 98 \
|
||||
--ring-width 3.8 \
|
||||
--indpos="684:353" \
|
||||
--veriftext="0x0D.7" \
|
||||
--wrongtext="005917" \
|
||||
--linecolor=$c4 \
|
||||
--separatorcolor=$c7 \
|
||||
--keyhlcolor=$c4 \
|
||||
--bshlcolor=$c3 \
|
||||
--timecolor=$c4 \
|
||||
--datecolor=$c0 \
|
||||
--layoutcolor=$c0 \
|
||||
--indpos='x+73:y+514' \
|
||||
--timepos='x+210:y+525' \
|
||||
--timestr='%H:%M' \
|
||||
--time-font='Sarasa UI J' \
|
||||
--force-clock \
|
||||
--refresh-rate=30 \
|
||||
--radius=32 \
|
||||
--ring-width=4 \
|
||||
--veriftext='' \
|
||||
--wrongtext='' \
|
||||
--noinputtext='' \
|
||||
--ignore-empty-password \
|
||||
--nofork &
|
||||
|
||||
|
|
|
@ -0,0 +1,56 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
|
||||
case "$1" in
|
||||
logout)
|
||||
if [ $DESKTOP_SESSION = "fluxbox" ]; then
|
||||
killall fluxbox
|
||||
elif [ $DESKTOP_SESSION = "openbox" ]; then
|
||||
openbox --exit
|
||||
elif [ $DESKTOP_SESSION = "i3" ]; then
|
||||
i3-msg exit
|
||||
elif [ $DESKTOP_SESSION = "bspwm" ]; then
|
||||
bspc quit 1
|
||||
else
|
||||
pkill -KILL -u $USER
|
||||
fi
|
||||
;;
|
||||
suspend)
|
||||
if [ $(cat /proc/1/comm) = "systemd" ]; then
|
||||
systemctl suspend
|
||||
else
|
||||
dbus-send --system --dest=org.freedesktop.ConsoleKit --type=method_call --print-reply --reply-timeout=2000 /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Suspend boolean:true
|
||||
fi
|
||||
;;
|
||||
hibernate)
|
||||
if [ $(cat /proc/1/comm) = "systemd" ]; then
|
||||
systemctl hibernate
|
||||
else
|
||||
dbus-send --system --dest=org.freedesktop.ConsoleKit --type=method_call --print-reply --reply-timeout=2000 /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Hibernate boolean:true
|
||||
fi
|
||||
;;
|
||||
reboot)
|
||||
if [ $(cat /proc/1/comm) = "systemd" ]; then
|
||||
systemctl reboot
|
||||
else
|
||||
dbus-send --system --print-reply --type=method_call --reply-timeout=2000 --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
|
||||
fi
|
||||
;;
|
||||
shutdown)
|
||||
if [ $(cat /proc/1/comm) = "systemd" ]; then
|
||||
systemctl poweroff
|
||||
else
|
||||
dbus-send --system --print-reply --type=method_call --reply-timeout=2000 --dest=org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
exit 0
|
|
@ -3,23 +3,23 @@
|
|||
# Shamelessly stolen from https://github.com/neeasade/dotfiles/tree/master/wm/.wm/scripts/interact
|
||||
|
||||
# if we only have one, use our border thing
|
||||
if bspc query -N -n focused.leaf && which chbpresel 2>/dev/null 1>&2; then
|
||||
if bspc query -N -n focused.leaf && command -v chbpresel 2>/dev/null 1>&2; then
|
||||
(
|
||||
cond=true
|
||||
while $cond; do
|
||||
presel_win=$(xdotool search --classname "presel_feedback")
|
||||
if [ ! -z "$presel_win" ]; then
|
||||
cond=false
|
||||
compton-trans -w $presel_win 0
|
||||
compton-trans -w "$presel_win" 0
|
||||
fi
|
||||
done
|
||||
) &
|
||||
|
||||
bspc node -p $*
|
||||
bspc node -p "$*"
|
||||
|
||||
back="$(colort -t $(bspc config focused_border_color))"
|
||||
|
||||
colort -c $back && \
|
||||
colort -c "$back" && \
|
||||
forward="$(colort -t 100 $(bspc config focused_border_color))" || \
|
||||
forward="$(colort -t -100 $(bspc config focused_border_color))"
|
||||
|
||||
|
@ -31,7 +31,7 @@ if bspc query -N -n focused.leaf && which chbpresel 2>/dev/null 1>&2; then
|
|||
west) dir=2 ;;
|
||||
esac
|
||||
|
||||
chbpresel -C $forward -c $back -d $dir $(bspc query -N -n)
|
||||
chbpresel -C "$forward" -c "$back" -d "$dir" "$(bspc query -N -n)"
|
||||
else
|
||||
bspc node -p $*
|
||||
bspc node -p "$*"
|
||||
fi
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
if command -v tmux >/dev/null 2>&1; then
|
||||
test -z "$TMUX" && (tmux new -A -s Ranger 'ranger')
|
||||
fi
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
sxiv -p -a "$@"
|
|
@ -0,0 +1,48 @@
|
|||
#!/bin/sh
|
||||
# Compatible with ranger 1.6.*
|
||||
#
|
||||
# This script searches image files in a directory, opens them all with sxiv and
|
||||
# sets the first argument to the first image displayed by sxiv.
|
||||
#
|
||||
# This is supposed to be used in rifle.conf as a workaround for the fact that
|
||||
# sxiv takes no file name arguments for the first image, just the number. Copy
|
||||
# this file somewhere into your $PATH and add this at the top of rifle.conf:
|
||||
#
|
||||
# mime ^image, has sxiv, X, flag f = path/to/this/script -- "$@"
|
||||
#
|
||||
# Implementation notes: this script is quite slow because of POSIX limitations
|
||||
# and portability concerns. First calling the shell function 'abspath' is
|
||||
# quicker than calling 'realpath' because it would fork a whole process, which
|
||||
# is slow. Second, we need to append a file list to sxiv, which can only be done
|
||||
# properly in two ways: arrays (which are not POSIX) or \0 sperated
|
||||
# strings. Unfortunately, assigning \0 to a variable is not POSIX either (will
|
||||
# not work in dash and others), so we cannot store the result of listfiles to a
|
||||
# variable.
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Usage: ${0##*/} PICTURES"
|
||||
exit
|
||||
fi
|
||||
|
||||
[ "$1" == '--' ] && shift
|
||||
|
||||
abspath () {
|
||||
case "$1" in
|
||||
/*) printf "%s\n" "$1";;
|
||||
*) printf "%s\n" "$PWD/$1";;
|
||||
esac
|
||||
}
|
||||
|
||||
listfiles () {
|
||||
find -L "$(dirname "$target")" -maxdepth 1 -type f -iregex \
|
||||
'.*\(jpe?g\|bmp\|png\|gif\)$' -print0 | sort -z
|
||||
}
|
||||
|
||||
target="$(abspath "$1")"
|
||||
count="$(listfiles | grep -a -m 1 -ZznF "$target" | cut -d: -f1)"
|
||||
|
||||
if [ -n "$count" ]; then
|
||||
listfiles | xargs -0 sxiv -n "$count" --
|
||||
else
|
||||
sxiv -- "$@" # fallback
|
||||
fi
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
if command -v tmux >/dev/null 2>&1; then
|
||||
test -z "$TMUX" && (tmux a || tmux)
|
||||
test -z "$TMUX" && (tmux new -A -s shell)
|
||||
fi
|
||||
|
||||
|
|
|
@ -32,6 +32,8 @@ compton
|
|||
cpupower
|
||||
crda
|
||||
ctags
|
||||
cups
|
||||
cups-pk-helper
|
||||
dash
|
||||
dconf-editor
|
||||
dhclient
|
||||
|
@ -181,12 +183,12 @@ pulsemixer
|
|||
python-beautifulsoup4
|
||||
python-isort
|
||||
python-language-server
|
||||
python-markdown
|
||||
python-mpd2
|
||||
python-neovim
|
||||
python-opengl
|
||||
python-pillow
|
||||
python-pip
|
||||
python-pycurl
|
||||
python-pydocstyle
|
||||
python-pyliblo
|
||||
python-pyperclip
|
||||
|
@ -222,11 +224,13 @@ srandrd
|
|||
stalonetray
|
||||
strace
|
||||
sublime-text
|
||||
subversion
|
||||
surfraw
|
||||
swh-plugins
|
||||
sxhkd
|
||||
sxiv-rifle
|
||||
syslinux
|
||||
system-config-printer
|
||||
systemd-sysvcompat
|
||||
tap-plugins
|
||||
telegram-desktop
|
||||
|
@ -237,12 +241,12 @@ texlive-formatsextra
|
|||
texlive-science
|
||||
the_silver_searcher
|
||||
thermald
|
||||
thunar-volman
|
||||
tmux
|
||||
transmission-cli
|
||||
tree
|
||||
trizen
|
||||
ttf-anonymous-pro
|
||||
ttf-font-awesome
|
||||
ttf-hanazono
|
||||
ttf-montserrat
|
||||
tumbler
|
||||
|
|
|
@ -11,8 +11,8 @@ bfs
|
|||
blockout2
|
||||
boxes-git
|
||||
calcurse-git
|
||||
canon-pixma-ip7200-printer
|
||||
colort-git
|
||||
cortex-git
|
||||
deflemask
|
||||
distrho-lv2-git
|
||||
distrho-vst-git
|
||||
|
@ -58,10 +58,12 @@ perl-extract-url
|
|||
perl-getopt-long-descriptive
|
||||
perl-uri-find
|
||||
phallus-fonts-git
|
||||
platformio
|
||||
pmount
|
||||
proggyfonts
|
||||
pymdown-extensions
|
||||
python-lolcat
|
||||
python-proc
|
||||
ranger-git
|
||||
rar
|
||||
reaper
|
||||
|
@ -72,9 +74,6 @@ shellcheck-static
|
|||
soulseekqt
|
||||
ted
|
||||
terminus-font-ll2-td1
|
||||
thunar-archive-plugin-git
|
||||
thunar-media-tags-plugin-git
|
||||
thunar-vcs-plugin-git
|
||||
toilet-fonts
|
||||
transmission-remote-cli-git
|
||||
ttf-clear-sans
|
||||
|
|
Reference in New Issue