mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-04-09 20:27:46 +02:00
Compare commits
4 Commits
b8a39fd5f6
...
42c6831850
Author | SHA1 | Date | |
---|---|---|---|
|
42c6831850 | ||
a96c307688 | |||
9bd93f5e4e | |||
76aaa776d5 |
@ -119,7 +119,7 @@ let g:bookmark_highlight_lines = 1
|
||||
lua << EOF
|
||||
-- Add additional capabilities supported by nvim-cmp
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
capabilities = require("cmp_nvim_lsp").update_capabilities(capabilities)
|
||||
capabilities = require("cmp_nvim_lsp").default_capabilities(capabilities)
|
||||
|
||||
-- Set completeopt to have a better completion experience
|
||||
vim.o.completeopt = 'menuone,noselect'
|
||||
|
@ -6,6 +6,8 @@ super + f
|
||||
$TERMINAL -e $FILE
|
||||
super + m
|
||||
thunderbird
|
||||
super + x
|
||||
pkill -usr1 -x sxhkd; notify-send 'sxhkd' 'Reloaded config'
|
||||
super + shift + r
|
||||
dmenu_run -c -l 20
|
||||
super + F5
|
||||
@ -24,6 +26,9 @@ super + F11
|
||||
prompt "Shutdown computer?" "sudo -A shutdown -h now"
|
||||
super + F12
|
||||
prompt "Reboot computer?" "sudo -A reboot now"
|
||||
super + Print
|
||||
maimpick
|
||||
|
||||
XF86Launch1
|
||||
xset dpms force off
|
||||
XF86AudioMute
|
||||
@ -38,3 +43,4 @@ XF86MonBrightnessDown
|
||||
light -U 15
|
||||
XF86MonBrightnessUp
|
||||
light -A 15
|
||||
|
||||
|
18
.local/bin/tools/maimpick
Executable file
18
.local/bin/tools/maimpick
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Requires maim. It lets you choose the kind of screenshot to take,
|
||||
# including copying the image or even highlighting an area to copy.
|
||||
|
||||
output="$HOME/downloads/screenshot-$(date '+%y%m%d-%H%M-%S').png"
|
||||
xclip_cmd="xclip -sel clip -t image/png"
|
||||
|
||||
case "$(printf "a selected area\\ncurrent window\\nfull screen\\na selected area (clipboard)\\ncurrent window (clipboard)\\nfull screen (clipboard)\\ncolor picker (clipboard)" | dmenu -l 6 -i -p "Screenshot which area?")" in
|
||||
"a selected area") maim -s $output ;;
|
||||
"current window") maim -i "$(xdotool getactivewindow)" $output ;;
|
||||
"full screen") maim $output ;;
|
||||
"a selected area (clipboard)") maim -s | ${xclip_cmd} ;;
|
||||
"current window (clipboard)") maim -i "$(xdotool getactivewindow)" | ${xclip_cmd} ;;
|
||||
"full screen (clipboard)") maim | ${xclip_cmd} ;;
|
||||
"color picker (clipboard)") maim -st 0 | convert - -resize 1x1\! -format '%[pixel:p{0,0}]' info:- | ${xclip_cmd} ;;
|
||||
esac
|
||||
|
24
README.md
24
README.md
@ -43,23 +43,25 @@ There are various shortcuts and hotkeys used in this version. Included in my bui
|
||||
|
||||
| ModKey | Shift | Key | Function |
|
||||
| ------ | ----- | ----------------- | --------------------------------------------------------- |
|
||||
| Super | | Return | Spawn terminal |
|
||||
| Super | | Return | Spawn terminal |
|
||||
| Super | | b | Spawn browser |
|
||||
| Super | Shift | b | Toggle dwmbar |
|
||||
| Super | | f | Spawn filemanager |
|
||||
| Super | | f | Spawn filemanager |
|
||||
| Super | | i | Spawn intellij-idea-ultimate-edition |
|
||||
| Super | | m | Spawn thunderbird |
|
||||
| Super | | p | Spawn ncmpcpp in st |
|
||||
| Super | Shift | r | (dmenu) dmenu\_run |
|
||||
| Super | | s | (dmenu) startpagesearch |
|
||||
| Super | | F5 | enable 2 Screen Monitor |
|
||||
| Super | | F6 | toggle touchpad |
|
||||
| Super | | F7 | (dmenu) mounting drives |
|
||||
| Super | | F8 | (dmenu) unmounting drives |
|
||||
| Super | Shift | r | (dmenu) dmenu\_run |
|
||||
| Super | Shift | r | Restart sxkd |
|
||||
| Super | | s | (dmenu) Startpagesearch |
|
||||
| Super | | F5 | Enable 2 Screen Monitor |
|
||||
| Super | | F6 | Toggle touchpad |
|
||||
| Super | | F7 | (dmenu) Mounting drives |
|
||||
| Super | | F8 | (dmenu) Unmounting drives |
|
||||
| Super | | F9 | Restart NetworkManager |
|
||||
| Super | | F10 | (dmenu) prompt, if yes: slock |
|
||||
| Super | | F11 | (dmenu) prompt, if yes: reboot |
|
||||
| Super | | F12 | (dmenu) prompt, if yes: shutdown |
|
||||
| Super | | F10 | (dmenu) Prompt, if yes: slock |
|
||||
| Super | | F11 | (dmenu) Prompt, if yes: reboot |
|
||||
| Super | | F12 | (dmenu) Prompt, if yes: shutdown |
|
||||
| Super | | Print | (dmenu) Prompt to take a screenshot |
|
||||
| | | AudioMute | Volume mute |
|
||||
| | | AudioMicMute | Mic Mute |
|
||||
| | | AudioLowerVolume | Volume lower |
|
||||
|
Loading…
x
Reference in New Issue
Block a user