auto recognize i3 config and utilize volume knob by lowering volume control in i3
This commit is contained in:
parent
157ad85b50
commit
681a0f19f8
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -113,3 +113,6 @@
|
||||
[submodule "editors/nvim/site/pack/qol/start/vim-fugitive"]
|
||||
path = editors/nvim/site/pack/qol/start/vim-fugitive
|
||||
url = https://github.com/tpope/vim-fugitive.git
|
||||
[submodule "editors/nvim/site/pack/qol/start/vim-startuptime"]
|
||||
path = editors/nvim/site/pack/qol/start/vim-startuptime
|
||||
url = https://github.com/dstein64/vim-startuptime.git
|
||||
|
@ -1,6 +1,7 @@
|
||||
require('keymap')
|
||||
require('plugins')
|
||||
require('calcurse')
|
||||
require('i3conf')
|
||||
|
||||
-- prevent cursor override
|
||||
vim.cmd('set guicursor=')
|
||||
|
6
editors/nvim/config/lua/i3conf.lua
Normal file
6
editors/nvim/config/lua/i3conf.lua
Normal file
@ -0,0 +1,6 @@
|
||||
-- recognize i3 config from dotfiles
|
||||
--
|
||||
vim.api.nvim_create_autocmd({"BufRead","BufNewFile"}, {
|
||||
pattern = {"*/i3/*.conf"},
|
||||
command = "set filetype=i3config",
|
||||
})
|
@ -1,2 +1,5 @@
|
||||
L2
|
||||
L3
|
||||
Pset
|
||||
Kalynn
|
||||
Appt
|
||||
|
Binary file not shown.
1
editors/nvim/site/pack/qol/start/vim-startuptime
Submodule
1
editors/nvim/site/pack/qol/start/vim-startuptime
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 6580cf539c33a212f4f5542068a3b4dd2b3ad834
|
@ -29,8 +29,8 @@ exec --no-startup-id i3-msg "workspace 2; exec brave"
|
||||
|
||||
# Use pactl to adjust volume in PulseAudio.
|
||||
set $refresh_i3status killall -SIGUSR1 i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
|
||||
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5% && $refresh_i3status
|
||||
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5% && $refresh_i3status
|
||||
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
|
||||
bindsym XF86AudioPlay exec --no-startup-id playerctl play-pause
|
||||
@ -57,10 +57,10 @@ for_window [instance="spotify"] move window to scratchpad
|
||||
for_window [instance="wiki"] move window to scratchpad
|
||||
for_window [instance="scratch"] move window to scratchpad
|
||||
# bindings
|
||||
bindsym $mod+s exec i3-scratchpad.sh todo st -n todo -e vim ~/vimwiki/todo/index.md
|
||||
bindsym $mod+s exec i3-scratchpad.sh todo st -n todo -e nvim ~/vimwiki/todo/index.md
|
||||
bindsym $mod+c exec i3-scratchpad.sh cal st -n cal -e calcurse
|
||||
bindsym $mod+m exec i3-scratchpad.sh spotify spotify
|
||||
bindsym $mod+w exec i3-scratchpad.sh wiki st -n wiki -e vim ~/vimwiki/index.md
|
||||
bindsym $mod+w exec i3-scratchpad.sh wiki st -n wiki -e nvim ~/vimwiki/index.md
|
||||
|
||||
# change focus
|
||||
bindsym $mod+h focus left
|
||||
|
Loading…
x
Reference in New Issue
Block a user