diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2023-05-05 14:08:59 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2023-05-05 14:08:59 +0800 |
commit | fe8327560ca95571cf6f2ce4762377a112cd815d (patch) | |
tree | 1ffad499b4c6f05754e5377ad1078ec6c66bdd4a | |
parent | 55f4c195f412bec2a5a83d149f4ac8b55535ab05 (diff) |
Update
-rw-r--r-- | X11/openbox/rc.xml | 5 | ||||
-rwxr-xr-x | bin/wakeup.sh | 18 |
2 files changed, 1 insertions, 22 deletions
diff --git a/X11/openbox/rc.xml b/X11/openbox/rc.xml index afde191..cc0b085 100644 --- a/X11/openbox/rc.xml +++ b/X11/openbox/rc.xml | |||
@@ -581,11 +581,6 @@ | |||
581 | <command>networkmanager_dmenu</command> | 581 | <command>networkmanager_dmenu</command> |
582 | </action> | 582 | </action> |
583 | </keybind> | 583 | </keybind> |
584 | <keybind key="W-S-n"> | ||
585 | <action name="Execute"> | ||
586 | <command>sh -c 'nmcli device wifi rescan; networkmanager_dmenu'</command> | ||
587 | </action> | ||
588 | </keybind> | ||
589 | <keybind key="W-a"> | 584 | <keybind key="W-a"> |
590 | <action name="Execute"> | 585 | <action name="Execute"> |
591 | <command> | 586 | <command> |
diff --git a/bin/wakeup.sh b/bin/wakeup.sh index d286088..4ceee6a 100755 --- a/bin/wakeup.sh +++ b/bin/wakeup.sh | |||
@@ -1,19 +1,3 @@ | |||
1 | #! /bin/bash | 1 | #! /bin/bash |
2 | 2 | ||
3 | # Add custom scripts into PATH | 3 | date --iso-8601=minutes >~/.wakeup |
4 | export SETTING_DIR=~/helper | ||
5 | export BIN_DIR=$HOME/bin | ||
6 | export PATH=$BIN_DIR:$PATH | ||
7 | |||
8 | mkdir -p $BIN_DIR | ||
9 | find $BIN_DIR -xtype l -exec rm {} + 2>/dev/null | ||
10 | find $SETTING_DIR/bin -type f -executable -exec realpath {} + | \ | ||
11 | xargs -I{} ln -sf {} $BIN_DIR | ||
12 | |||
13 | # sync with important git repos | ||
14 | setsid ~/bin/sync.sh &>>/tmp/sync | ||
15 | |||
16 | # Copy context file from vps | ||
17 | rsync -au vps:~/.context ~/.context | ||
18 | |||
19 | date >>/tmp/wakeup | ||