This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" | |
. $HOME/.asdf/asdf.sh | |
. $HOME/.asdf/completions/asdf.bash | |
alias gg='git gui' | |
alias gw='github_workflow' | |
alias be='bundle exec' | |
__git_color_ps1 () |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can use xinput to float the input device under X. | |
1 Execute the command `xinput list` to list your input devices. | |
2 Locate `AT Translated Set 2 keyboard` and take note of its `id` number; this will be used to disable the keyboard. Also, take note of the number at the end, `[slave keyboard (#)]`; this is the id number of the master, which will be used to re-enable your keyboard. | |
3 To disable the keyboard, execute the command `xinput float <id#>`, where `<id#>` is your keyboard's id number. For example, if the id was 10, then the command would be `xinput float 10`. | |
4 To re-enable the keyboard, execute the command `xinput reattach <id#> <master#>`, where master is that second number we noted down. So if the number was 3, you would do `xinput reattach 10 3`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#... | |
# Colorized output of git branch in prompt | |
# WORKING_TREE_CLEAN_MESSAGE must be changed due to git version and localization (git status) | |
# COLOR_DIRTY, COLOR_CLEAN and PS1 must be tweaked due to used OS | |
__git_color_ps1 () | |
{ | |
if [ -n "$(__git_ps1)" ]; then | |
local WORKING_TREE_CLEAN_MESSAGE="working tree clean" | |
local COLOR_DIRTY="\e[1;31m" | |
local COLOR_CLEAN="\e[1;37m" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
synclient TouchpadOff=$(synclient -l | grep -c 'TouchpadOff.*=.*0') |