Browse Source

add status for strawberry

master
Schneider 4 years ago
parent
commit
f9cbf0491d
Signed by: schneider GPG Key ID: 3F50B02A50039F3B
  1. 3
      awesome/autorun.sh
  2. 1
      init.vim
  3. 2
      tmux/clementine.sh
  4. 8
      tmux/strawberry.sh
  5. 2
      tmux/theme.sh
  6. 5
      vim/ftplugin/javascript.vim

3
awesome/autorun.sh

@ -11,4 +11,5 @@ run keepass
setxkbmap -option caps:swapescape -layout us -variant altgr-intl setxkbmap -option caps:swapescape -layout us -variant altgr-intl
run pulseaudio --start run pulseaudio --start
run ~/.dotfiles/change-wallpaper.sh run ~/.dotfiles/change-wallpaper.sh
run /usr/bin/compton --backend glx --paint-on-overlay --vsync opengl-swc
run compton
#run /usr/bin/compton --backend glx --paint-on-overlay --vsync opengl-mswc --glx-no-stencil --glx-swap-method 2 --unredir-if-possible --glx-use-gpushader4

1
init.vim

@ -107,6 +107,7 @@ Plug 'jwalton512/vim-blade', { 'for': 'php' }
" {{{ Python " {{{ Python
Plug 'jeetsukumaran/vim-pythonsense', { 'for': ['python'] } " text objects for python Plug 'jeetsukumaran/vim-pythonsense', { 'for': ['python'] } " text objects for python
Plug 'heavenshell/vim-pydocstring', { 'for': ['python'], 'do': 'make install' } Plug 'heavenshell/vim-pydocstring', { 'for': ['python'], 'do': 'make install' }
Plug 'anntzer/vim-cython', { 'for': ['python']}
"}}} "}}}
" All of your Plugins must be added before the following line " All of your Plugins must be added before the following line

2
tmux/clementine.sh

@ -5,4 +5,6 @@ if hash clementine 2>/dev/null && pgrep clementine > /dev/null; then
TITLE=$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata | grep 'xesam:title: ' | cut -c14-) TITLE=$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata | grep 'xesam:title: ' | cut -c14-)
COMBINED="$ARTIST - $TITLE" COMBINED="$ARTIST - $TITLE"
echo ${COMBINED:0:40} echo ${COMBINED:0:40}
return 0
fi fi
return 1

8
tmux/strawberry.sh

@ -0,0 +1,8 @@
#!/usr/bin/env zsh
set -eu
if hash strawberry 2>/dev/null && pgrep strawberry > /dev/null; then
ARTIST=$(qdbus org.mpris.MediaPlayer2.strawberry /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata | grep 'xesam:artist: ' | cut -c15-)
TITLE=$(qdbus org.mpris.MediaPlayer2.strawberry /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata | grep 'xesam:title: ' | cut -c14-)
COMBINED="$ARTIST - $TITLE"
echo ${COMBINED:0:40}
fi

2
tmux/theme.sh

@ -48,7 +48,7 @@ set-window-option -g clock-mode-colour $tm_color_active
#tm_tunes="#[fg=$tm_color_music]#(osascript ~/.dotfiles/applescripts/tunes.scpt)" #tm_tunes="#[fg=$tm_color_music]#(osascript ~/.dotfiles/applescripts/tunes.scpt)"
#tm_battery="#(~/.dotfiles/bin/battery_indicator.sh)" #tm_battery="#(~/.dotfiles/bin/battery_indicator.sh)"
#tm_banshee="#[fg=$tm_color_music]#($HOME/.dotfiles/tmux/banshee.sh)" #tm_banshee="#[fg=$tm_color_music]#($HOME/.dotfiles/tmux/banshee.sh)"
tm_clementine="#[fg=$tm_color_music]#($HOME/.dotfiles/tmux/clementine.sh)"
tm_clementine="#[fg=$tm_color_music]#($HOME/.dotfiles/tmux/strawberry.sh)"
tm_battery="#[fg=$tm_color_inactive]#(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage | awk '{print $2}')" tm_battery="#[fg=$tm_color_inactive]#(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep percentage | awk '{print $2}')"
tm_date="#[fg=$tm_color_inactive] %R %d %b" tm_date="#[fg=$tm_color_inactive] %R %d %b"

5
vim/ftplugin/javascript.vim

@ -1,11 +1,15 @@
" use prettier in ALE " use prettier in ALE
let b:ale_fixers = {} let b:ale_fixers = {}
let b:ale_fixers['javascript'] = ['prettier'] let b:ale_fixers['javascript'] = ['prettier']
let b:ale_fixers['typescript'] = ['prettier']
let b:ale_javascript_prettier_options = '--no-semi --single-quote' let b:ale_javascript_prettier_options = '--no-semi --single-quote'
let b:ale_typescript_prettier_options = '--no-semi --single-quote'
let b:ale_fixers['vue'] = ['prettier'] let b:ale_fixers['vue'] = ['prettier']
let b:ale_vue_prettier_options = '--no-semi --single-quote' let b:ale_vue_prettier_options = '--no-semi --single-quote'
let b:ale_fix_on_save = 1 let b:ale_fix_on_save = 1
let b:ale_javascript_prettier_use_local_config = 1 let b:ale_javascript_prettier_use_local_config = 1
let b:ale_typescript_prettier_use_local_config = 1
let b:ale_linters=['']
"autocmd bufwritepost *.js silent !standard --fix % "autocmd bufwritepost *.js silent !standard --fix %
setlocal wildignore+=node_modules setlocal wildignore+=node_modules
@ -15,3 +19,4 @@ setlocal shiftwidth=2
" Create jsdoc with ,h " Create jsdoc with ,h
nnoremap <leader>h :JsDoc<CR> nnoremap <leader>h :JsDoc<CR>
nnoremap <F8> Biawait <ESC>A
Loading…
Cancel
Save