small tweaks to sway-lock, lldbinit

This commit is contained in:
rileyrg 2021-07-26 09:17:00 +02:00
parent a7e0474df6
commit 183164fd4d
6 changed files with 47 additions and 51 deletions

View file

@ -4,17 +4,17 @@ logger -t "startup-initfile" BASH_PROFILE
[ -f ~/.profile ] && . ~/.profile || true
[ -f ~/.bashrc ] && . ~/.bashrc || true
## this bit sucks. start mbsync,time manually if enrypted homedir else it doesnt work
systemctl is-active --user mbsync.timer || systemctl --user start mbsync.timer
dropbox-start-once &> /dev/null &
if command -v guix; then
echo "GUIX initialised."
GUIX_PROFILE="/home/rgr/.guix-profile"
. "$GUIX_PROFILE/etc/profile"
fi
## this bit sucks. start mbsync,time manually if enrypted homedir else it doesnt work
systemctl is-active --user mbsync.timer || systemctl --user start mbsync.timer
dropbox-start-once &> /dev/null &
[ -f "${HOME}/.bash_profile.local" ] && . "${HOME}/.bash_profile.local"
if [ -f "${HOME}/.START_SWAY" ]; then

View file

@ -7,6 +7,9 @@ settings set target.load-cwd-lldbinit true
settings set interpreter.prompt-on-quit false
settings set target.x86-disassembly-flavor intel
command alias bfl breakpoint set -f %1 -l %2
command alias sl source list -a $rip
command regex srcb 's/([0-9]+)/settings set stop-line-count-before %1/'
srcb 0
command regex srca 's/([0-9]+)/settings set stop-line-count-after %1/'

View file

@ -118,6 +118,12 @@ logger -t "startup-initfile" BASH_PROFILE
[ -f ~/.profile ] && . ~/.profile || true
[ -f ~/.bashrc ] && . ~/.bashrc || true
if command -v guix; then
echo "GUIX initialised."
GUIX_PROFILE="/home/rgr/.guix-profile"
. "$GUIX_PROFILE/etc/profile"
fi
## this bit sucks. start mbsync,time manually if enrypted homedir else it doesnt work
systemctl is-active --user mbsync.timer || systemctl --user start mbsync.timer
@ -338,9 +344,9 @@ logger -t "startup-initfile" ZLOGIN
```bash
# Maintained in linux-config.org
logger -t "startup-initfile" ZPROFILE
# if [ -f ~/.profile ]; then
# emulate sh -c '. ~/.profile'
# fi
if [ -f ~/.profile ]; then
emulate sh -c '. ~/.profile'
fi
```
2. etc/zsh/zprofile
@ -428,26 +434,9 @@ Directory is [here](.oh-my-zsh/).
[GNU Guix](https://guix.gnu.org/manual/en/guix.html) is a package management tool for and distribution of the GNU system
```bash
if command -v guix; then
echo "GUIX initialised."
GUIX_PROFILE="/home/rgr/.guix-profile"
. "$GUIX_PROFILE/etc/profile"
fi
\#+begin\_src bash :tangle "DotFiles/.bash\_profile" if command -v guix; then echo "GUIX initialised." GUIX\_PROFILE="*home/rgr*.guix-profile" . "$GUIX\_PROFILE/etc/profile" fi
```
# Path
## ~/bin/add-user-paths
```bash
# Maintained in linux-config.org
logger -t "startup-initfile" ADD_USER_PATHS
#export PATH="${HOME}/bin:$HOME/.local/bin:${HOME}/.cargo/bin:./node_modules/.bin:$PATH"
```
\#+end\_src\* Path
# Tmux :tmux:
@ -1787,7 +1776,7 @@ bindsym $mod+Control+t exec sway-notify "Opening NEW terminal instance" && alacr
### autostart :autostart:
```conf
exec sway-lock
# exec sway-lock
exec sway-kanshi
exec sway-idle
exec '[ -f "$HOME/.sway-autostart" ] && . "$HOME/.sway-autostart" && (sleep 1 && sway-notify "~/.sway-autostart processed")'
@ -2115,7 +2104,7 @@ notify-send -t 3000 "${@}"
```
<a id="org5b778f5"></a>
<a id="org72eff73"></a>
### ~/bin/sway/sway-screen
@ -2136,7 +2125,7 @@ swaymsg "output ${m} ${c}"
### ~/bin/sway/sway-screen-menu
Gui to select a display and enable/disable it. Calls down to [~/bin/sway/sway-screen](#org5b778f5).
Gui to select a display and enable/disable it. Calls down to [~/bin/sway/sway-screen](#org72eff73).
:ID: 82455cae-1c48-48b2-a8b3-cb5d44eeaee9
@ -2232,7 +2221,7 @@ fi
### ~/bin/pulse-volume
pulse/pipeline volume control. Pass in a volume string to change the volume (man pactl) or on/off/toggle. It wont allow larger than 100% volume. Always returns the current volume volume/status. See [examples](#orga30532b).
pulse/pipeline volume control. Pass in a volume string to change the volume (man pactl) or on/off/toggle. It wont allow larger than 100% volume. Always returns the current volume volume/status. See [examples](#org7f28a27).
```bash
#!/usr/bin/env bash
@ -2617,6 +2606,9 @@ export PATH="${HOME}"/bin/llvm:"${HOME}"/bin/llvm/build/bin:"$PATH"
settings set interpreter.prompt-on-quit false
settings set target.x86-disassembly-flavor intel
command alias bfl breakpoint set -f %1 -l %2
command alias sl source list -a $rip
command regex srcb 's/([0-9]+)/settings set stop-line-count-before %1/'
srcb 0
command regex srca 's/([0-9]+)/settings set stop-line-count-after %1/'

View file

@ -255,7 +255,7 @@ swaybar_command waybar
}
bindsym $mod+Alt+b exec killall -SIGUSR1 waybar
exec sway-lock
# exec sway-lock
exec sway-kanshi
exec sway-idle
exec '[ -f "$HOME/.sway-autostart" ] && . "$HOME/.sway-autostart" && (sleep 1 && sway-notify "~/.sway-autostart processed")'

View file

@ -1,5 +1,5 @@
# Maintained in linux-config.org
logger -t "startup-initfile" ZPROFILE
# if [ -f ~/.profile ]; then
# emulate sh -c '. ~/.profile'
# fi
if [ -f ~/.profile ]; then
emulate sh -c '. ~/.profile'
fi

View file

@ -723,6 +723,12 @@ see [[file:/usr/share/doc/gnupg/examples][/usr/share/doc/gnupg/examples]]
[ -f ~/.profile ] && . ~/.profile || true
[ -f ~/.bashrc ] && . ~/.bashrc || true
if command -v guix; then
echo "GUIX initialised."
GUIX_PROFILE="/home/rgr/.guix-profile"
. "$GUIX_PROFILE/etc/profile"
fi
## this bit sucks. start mbsync,time manually if enrypted homedir else it doesnt work
systemctl is-active --user mbsync.timer || systemctl --user start mbsync.timer
@ -928,9 +934,9 @@ see [[file:/usr/share/doc/gnupg/examples][/usr/share/doc/gnupg/examples]]
#+begin_src bash :tangle "~/.config/zsh/.zprofile"
# Maintained in linux-config.org
logger -t "startup-initfile" ZPROFILE
# if [ -f ~/.profile ]; then
# emulate sh -c '. ~/.profile'
# fi
if [ -f ~/.profile ]; then
emulate sh -c '. ~/.profile'
fi
#+end_src
**** etc/zsh/zprofile
#+begin_src bash :tangle "etc/zsh/zshprofile"
@ -1012,16 +1018,7 @@ https://stackoverflow.com/a/38865693/37370
. "$GUIX_PROFILE/etc/profile"
fi
#+end_src
* Path
** ~/bin/add-user-paths
#+begin_src bash :tangle "~/bin/add-user-paths"
# Maintained in linux-config.org
logger -t "startup-initfile" ADD_USER_PATHS
#export PATH="${HOME}/bin:$HOME/.local/bin:${HOME}/.cargo/bin:./node_modules/.bin:$PATH"
#+end_src
#+end_src* Path
* Tmux :tmux:
** ~/.profile
:PROPERTIES:
@ -2437,7 +2434,7 @@ Thank you https://github.com/deanproxy/dotfiles/blob/master/linux/i3/scripts/blu
#+end_src
*** autostart :autostart:
#+begin_src conf
exec sway-lock
# exec sway-lock
exec sway-kanshi
exec sway-idle
exec '[ -f "$HOME/.sway-autostart" ] && . "$HOME/.sway-autostart" && (sleep 1 && sway-notify "~/.sway-autostart processed")'
@ -3140,6 +3137,9 @@ Reverse engineering packges [[https://radare.gitbooks.io/radare2book/content/fir
settings set interpreter.prompt-on-quit false
settings set target.x86-disassembly-flavor intel
command alias bfl breakpoint set -f %1 -l %2
command alias sl source list -a $rip
command regex srcb 's/([0-9]+)/settings set stop-line-count-before %1/'
srcb 0
command regex srca 's/([0-9]+)/settings set stop-line-count-after %1/'
@ -3269,12 +3269,13 @@ lldb also has a built-in Python interpreter, which is accessible by the “scrip
https://lldb.llvm.org/use/python.html
***** TODO follow up on SE post
SCHEDULED: <2021-07-14 Wed>
***** TODO [#B] follow up on SE post
:PROPERTIES:
:DateCreated: <2021-07-01 Thu 11:13>
:END:
:LOGBOOK:
- Note taken on [2021-07-13 Tue 00:49] \\
and again
- Note taken on [2021-07-07 Wed 21:33] \\
still nothing
:END: