diff options
author | Shubham Saini <shubham6405@gmail.com> | 2020-04-29 17:30:14 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2020-04-29 17:30:14 +0000 |
commit | 2f4ae46af302ca41fc2a5bbb453b2ecf78f2e903 (patch) | |
tree | b6585d5765f2860914b4cb884e1607b153a98808 | |
parent | fb2a1589d31a01621b0335ba5e48bbf218935367 (diff) |
nice
-rwxr-xr-x | bin/.local/bin/statusbar | 4 | ||||
-rw-r--r-- | nvim/.config/nvim/init.vim | 1 | ||||
-rw-r--r-- | 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' | |||
4 | BB='\033[00m' | 4 | BB='\033[00m' |
5 | 5 | ||
6 | vol(){ | 6 | vol(){ |
7 | vol=$(amixer get Master | awk -F'[][]' 'END{ print $2 }') | 7 | vol=$(pulsemixer --get-volume | awk '{print $1}') |
8 | echo -e "+@fg=1;vol+@fg=0; $vol " | 8 | echo -e "+@fg=1;vol+@fg=0; $vol% " |
9 | } | 9 | } |
10 | 10 | ||
11 | bat() { | 11 | 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' | |||
8 | Plug 'ap/vim-css-color' | 8 | Plug 'ap/vim-css-color' |
9 | Plug 'luochen1990/rainbow' | 9 | Plug 'luochen1990/rainbow' |
10 | Plug 'tpope/vim-eunuch' | 10 | Plug 'tpope/vim-eunuch' |
11 | Plug 'tpope/vim-commentary' | ||
11 | Plug 'scrooloose/nerdtree' | 12 | Plug 'scrooloose/nerdtree' |
12 | Plug 'junegunn/goyo.vim' | 13 | Plug 'junegunn/goyo.vim' |
13 | Plug 'airblade/vim-gitgutter' | 14 | 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 | |||
105 | program[menu] = ~/bin/menu | 105 | program[menu] = ~/bin/menu |
106 | program[bup] = sudo bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done' | 106 | program[bup] = sudo bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; done' |
107 | program[bdown] = sudo bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done' | 107 | program[bdown] = sudo bash -c 'for f in /sys/class/backlight/*; do echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; done' |
108 | program[soundinc] = amixer set Master 5%+ | 108 | program[soundinc] = pulsemixer --change-volume +5 |
109 | program[sounddec] = amixer set Master 5%- | 109 | program[sounddec] = pulsemixer --change-volume -5 |
110 | program[soundmute] = amixer set Master toggle | 110 | program[soundmute] = pulsemixer --toggle-mute |
111 | program[shut] = ~/.local/bin/shut | 111 | program[shut] = ~/.local/bin/shut |
112 | program[scrot] = scrot | ||
113 | # 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 | 112 | # 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 |
114 | # 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 | 113 | # 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 |
115 | 114 | ||
@@ -123,11 +122,10 @@ bind[soundinc] = XF86AudioRaiseVolume | |||
123 | bind[sounddec] = XF86AudioLowerVolume | 122 | bind[sounddec] = XF86AudioLowerVolume |
124 | bind[soundmute] = XF86AudioMute | 123 | bind[soundmute] = XF86AudioMute |
125 | bind[shut] = MOD+x | 124 | bind[shut] = MOD+x |
126 | bind[scrot] = Print | ||
127 | 125 | ||
128 | # Optional default programs that will only be validated if you override: | 126 | # Optional default programs that will only be validated if you override: |
129 | # program[screenshot_all] = screenshot.sh full # optional | 127 | program[screenshot_all] = screenshot full # optional |
130 | # program[screenshot_wind] = screenshot.sh window # optional | 128 | program[screenshot_wind] = screenshot window # optional |
131 | # program[initscr] = initscreen.sh # optional | 129 | # program[initscr] = initscreen.sh # optional |
132 | 130 | ||
133 | # EXAMPLE: Define 'firefox' action and bind to key. | 131 | # EXAMPLE: Define 'firefox' action and bind to key. |