use more printf and less echo -e, and add cursor_size

This commit is contained in:
lelgenio 2020-10-05 20:58:06 -03:00
parent 65fcf5ddee
commit 467d4fac4b
7 changed files with 9 additions and 8 deletions

View File

@ -56,6 +56,7 @@ profiles:
interface: Inter
gtk_theme: materia-custom-accent-dark
cursor_theme: capitaine-cursors
cursor_size: 24
color:
accent: '#D9534F'
bg: '#202020'
@ -181,7 +182,6 @@ actions:
+PlugUpdate
+qall
&> /dev/null
& disown
crontab_install: |
crontab -r
crontab ~/.local/share/crontab

View File

@ -125,6 +125,7 @@ function esway
# set -x LD_PRELOAD '/usr/lib/libgtk3-nocsd.so.0'
set -x XCURSOR_THEME {{@@ cursor_theme @@}}
set -x XCURSOR_SIZE {{@@ cursor_size @@}}
set -x GTK_THEME materia-custom-accent:dark
# set -x XDG_CURRENT_DESKTOP Unity

View File

@ -118,7 +118,7 @@ call plug#end()
cmap w!! w !sudo tee % >/dev/null
" Auto deploy dotfiles in the background
autocmd BufWritePost {{@@ parent_dir( _dotdrop_dotpath ) @@}}/{config.yaml,dotfiles/**} silent call jobstart('dotdrop install -f &')
autocmd BufWritePost {{@@ parent_dir( _dotdrop_dotpath ) @@}}/{config.yaml,dotfiles/**} silent !sh -c 'dotdrop install -f &'
"}}}
" Syntax options{{{

View File

@ -11,12 +11,12 @@ choose(){
choicePreview=$( curl -s "api.deezer.com/$sType/$choiceId/$preview_suffix" |
jq -r '.preview, .data[0].preview | select(. != null)' )
choice=$( echo -e "Preview\nDownload\nCopy URL" | wdmenu )
choice=$( printf "Preview\nDownload\nCopy URL" | wdmenu )
if [ "$choice" = Preview ]
then
mpv --quiet "$choicePreview" &
mpvPid=$!
choice=$(echo -e "Download\nAnother" | wdmenu -p 'Download?')
choice=$(printf "Download\nAnother" | wdmenu -p 'Download?')
kill $mpvPid
if test "$choice" = "Another"
then
@ -48,7 +48,7 @@ clean(){
}
trap clean EXIT
sType=$(echo -e "Track\nAlbum\nArtist" | wdmenu | tr [:upper:] [:lower:] )
sType=$(printf "Track\nAlbum\nArtist" | wdmenu | tr [:upper:] [:lower:] )
query=$(echo -n | wdmenu | sed 's/[^ a-z]//g;s/ /+/g')
case "$sType" in
track)

View File

@ -1,7 +1,7 @@
#!/bin/sh
opts="Fone\nSpeaker\nHDMI"
out=$(echo $opts | wdmenu -p "Saida:")
out=$(printf $opts | wdmenu -p "Saida:")
vol=$(pamixer --get-volume)
if [ "$out" = "HDMI" ]

View File

@ -14,7 +14,7 @@ entry=$(printf '%s\n' "${password_files[@]}" | wdmenu -p Password $@)
username=$( pass show "$entry" 2>/dev/null | perl -ne 'print $1 if /^login: (.*)/' )
password=$( pass show "$entry" 2>/dev/null | head -n 1 )
action=$(echo -e "Autotype\nUsername -> $username\nPassword" | wdmenu -p Action)
action=$(printf "Autotype\nUsername -> $username\nPassword" | wdmenu -p Action)
autotype(){
if swaymsg -t get_inputs | grep -i colemak > /dev/null

View File

@ -53,7 +53,7 @@
#hide the mouse after 10 seconds
seat * hide_cursor 10000
seat * xcursor_theme {{@@ cursor_theme @@}}
seat * xcursor_theme {{@@ cursor_theme @@}} {{@@ cursor_size @@}}
input "type:touchpad" {
#disable while typing