added keybind for xcolor

This commit is contained in:
Gabe Venberg 2022-03-01 18:08:07 -06:00
parent 43b15731f0
commit 23dbddefa0
2 changed files with 7 additions and 4 deletions

View file

@ -183,9 +183,9 @@ font pango:DejaVu Sans Mono 8
bindsym $mod+x exec --no-startup-id "~/dotfiles/scripts/screen_off $lock_command_nof"
bindsym $mod+shift+x exec --no-startup-id "$lock_command"; exec --no-startup-id "systemctl suspend"
# disable screen going to sleep with mod+c, enable screen going to sleep with mod+shift+c
bindsym $mod+c exec --no-startup-id "xset s off -dpms; notify-send --expire-time=500 'screen blanking off'"
bindsym $mod+shift+c exec --no-startup-id "xset +dpms; notify-send --expire-time=500 'screen blanking on'"
# disable screen going to sleep with mod+b, enable screen going to sleep with mod+shift+c
bindsym $mod+b exec --no-startup-id "xset s off -dpms; notify-send --expire-time=500 'screen blanking off'"
bindsym $mod+shift+b exec --no-startup-id "xset +dpms; notify-send --expire-time=500 'screen blanking on'"
# change brightness
bindsym $mod+control+plus exec --no-startup-id "xbacklight -inc 10; notify-send --expire-time=500 Brightness\ $(xbacklight -get | cut --delimiter=. -f 1)"
@ -194,6 +194,9 @@ font pango:DejaVu Sans Mono 8
#screenshot everything with mod+s, current window with mod+shift+s
bindsym $mod+s exec --no-startup-id "maim ~/Pictures/$(date +%s).png"
bindsym $mod+shift+s exec --no-startup-id "maim -i $(xdotool getactivewindow) ~/Pictures/$(date +%s).png"
#colour picker with xcolor
bindsym --release $mod+c exec --no-startup-id "xcolor -s"
#mpd controls
bindsym $mod+mod1+p exec --no-startup-id "mpc toggle"

View file

@ -88,7 +88,7 @@ vim.cmd 'colorscheme moonfly'
map('', '<leader>h', ':nohls<CR>', opts)
--open nvim-tree with leader+t
map('n', '<leader>t', ':NvimTreeToggle<CR>', opts)
--open symbols-outline with leader+s
--open symbols-outline with leader+o
map('n', '<leader>o', ':SymbolsOutline<CR>', opts)
--telescope stuff
map('n', '<leader>ff', ':lua require "telescope".extensions.file_browser.file_browser()<CR>', opts)