mirror of
https://github.com/FAUSheppy/config
synced 2025-12-06 07:01:36 +01:00
Compare commits
2 Commits
88cad94e09
...
52c4454da1
| Author | SHA1 | Date | |
|---|---|---|---|
| 52c4454da1 | |||
| c44463f933 |
11
README.md
11
README.md
@@ -1,4 +1,9 @@
|
||||
You are free to use any of this for yourself, most of my config i learned or took from http://ruderich.org/simon/#config
|
||||
This is my personal config for:
|
||||
|
||||
Herbstluftwm can be found here:
|
||||
https://herbstluftwm.org/index.html
|
||||
- git
|
||||
- ssh
|
||||
- zsh
|
||||
- vim
|
||||
- herbstluft
|
||||
|
||||
..and some additional helper scripts and standard packages.
|
||||
|
||||
@@ -167,6 +167,10 @@ hc keybind XF86AudioMute spawn amixer set Master toggle
|
||||
hc keybind XF86AudioRaiseVolume spawn amixer set Master 10%+
|
||||
hc keybind XF86AudioLowerVolume spawn amixer set Master 10%-
|
||||
|
||||
# bluethooth
|
||||
hc keybind $Mod-b spawn ~/.config/herbstluftwm/bluethooth_connect.sh c
|
||||
hc keybind $Mod-n spawn ~/.config/herbstluftwm/bluethooth_connect.sh d
|
||||
|
||||
# theme
|
||||
hc attr theme.tiling.reset 1
|
||||
hc attr theme.floating.reset 1
|
||||
|
||||
17
herbstluftwm/bluethooth_connect.sh
Executable file
17
herbstluftwm/bluethooth_connect.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
SESSION="btconnect"
|
||||
MAC="E8:9E:13:04:0A:77"
|
||||
|
||||
if [[ "$1" == "d" ]]; then
|
||||
CMD="disconnect $MAC"
|
||||
else
|
||||
CMD="connect $MAC"
|
||||
fi
|
||||
|
||||
tmux new-session -d -s "$SESSION" "bluetoothctl"
|
||||
|
||||
sleep 0.3
|
||||
|
||||
tmux send-keys -t "$SESSION" "$CMD" C-m
|
||||
tmux send-keys -t "$SESSION" C-d
|
||||
Reference in New Issue
Block a user