From 2f4ae46af302ca41fc2a5bbb453b2ecf78f2e903 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Wed, 29 Apr 2020 23:00:14 +0530 Subject: nice --- bin/.local/bin/statusbar | 4 ++-- nvim/.config/nvim/init.vim | 1 + spectrwm/.config/spectrwm/spectrwm.conf | 12 +++++------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/bin/.local/bin/statusbar b/bin/.local/bin/statusbar index 31f9be0..433b4d5 100755 --- a/bin/.local/bin/statusbar +++ b/bin/.local/bin/statusbar @@ -4,8 +4,8 @@ BOLD='\033[1m' BB='\033[00m' vol(){ - vol=$(amixer get Master | awk -F'[][]' 'END{ print $2 }') - echo -e "+@fg=1;vol+@fg=0; $vol " + vol=$(pulsemixer --get-volume | awk '{print $1}') + echo -e "+@fg=1;vol+@fg=0; $vol% " } bat() { diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 3229b65..9686f54 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -8,6 +8,7 @@ Plug 'Shougo/deol.nvim' Plug 'ap/vim-css-color' Plug 'luochen1990/rainbow' Plug 'tpope/vim-eunuch' +Plug 'tpope/vim-commentary' Plug 'scrooloose/nerdtree' Plug 'junegunn/goyo.vim' Plug 'airblade/vim-gitgutter' diff --git a/spectrwm/.config/spectrwm/spectrwm.conf b/spectrwm/.config/spectrwm/spectrwm.conf index 40738ca..62709ad 100644 --- a/spectrwm/.config/spectrwm/spectrwm.conf +++ b/spectrwm/.config/spectrwm/spectrwm.conf @@ -105,11 +105,10 @@ program[term] = urxvtc program[menu] = ~/bin/menu program[bup] = sudo bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done' program[bdown] = sudo bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done' -program[soundinc] = amixer set Master 5%+ -program[sounddec] = amixer set Master 5%- -program[soundmute] = amixer set Master toggle +program[soundinc] = pulsemixer --change-volume +5 +program[sounddec] = pulsemixer --change-volume -5 +program[soundmute] = pulsemixer --toggle-mute program[shut] = ~/.local/bin/shut -program[scrot] = scrot # program[search] = dmenu $dmenu_bottom -i -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected # program[name_workspace] = dmenu $dmenu_bottom -p Workspace -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_color_selected -sf $bar_font_color_selected @@ -123,11 +122,10 @@ bind[soundinc] = XF86AudioRaiseVolume bind[sounddec] = XF86AudioLowerVolume bind[soundmute] = XF86AudioMute bind[shut] = MOD+x -bind[scrot] = Print # Optional default programs that will only be validated if you override: -# program[screenshot_all] = screenshot.sh full # optional -# program[screenshot_wind] = screenshot.sh window # optional +program[screenshot_all] = screenshot full # optional +program[screenshot_wind] = screenshot window # optional # program[initscr] = initscreen.sh # optional # EXAMPLE: Define 'firefox' action and bind to key. -- cgit v1.2.3