To do that, you only need wrap it into a script hooking to dbus-monitor like discussed here. This was precisely my goal, so here's the answer:
GIT BR SHORTCUT MAC COMMAND LINE PASSWORD
Right before my screensaver turns on, I want to switch to English so that it will be easy to type my password when I get back in. Then xkb-switch would only let you switch between the layouts in current group. Options=grp_led:scroll,grp:rwin_switch,compose:menu,lv3:ralt_switch, it is set to less than the total number of layouts listed in LayoutList), like this: LayoutList=us,ua,th,de
![git br shortcut mac command line git br shortcut mac command line](https://i.ytimg.com/vi/nEvsWQrKVcQ/maxresdefault.jpg)
If your ~/.config/kxkbrc uses LayoutLoopCount (e.g. This looks better than the other solutions because setxkbmap ruins all options, and setxkbmap -layout, while it preserves the options, it still fails to change the taskbar indicator nor the grp_led if set. $ xkb-switch -s us # switch to a named group Just tested it with Ubuntu 16.04.4 LTS and it works flawelessly. There seems to be no standard CLI tool, but xkb-switch is a small open-source tool to do the job. You will need to set the user name and email (removed from. show merge tree + commits info graph = log -graph -date-order -C -M -pretty=format: \" %ad %Cgreen%d%Creset %s \" -all -date=short lg = log -graph -pretty=format:'%Cred%h%Creset %C(yellow)%an%d%Creset %s %Cgreen(%cr)%Creset' -date=relative basic logging for quick browsing ls = log -pretty=format:"%C(yellow)%h%Cred%d \\ %Creset%s%Cgreen \\ " -decorate ll = log -pretty=format:"%C(yellow)%h%Cred%d \\ %Creset%s%Cgreen \\ " -decorate -numstat log + file diff fl = log -u find paths that matches the string f = " !git ls-files | grep -i " delete all merged branches dm = !git branch -merged | grep -v "\*" | xargs -n 1 git branch -d shortcuts cp = cherry-pick st = status -s cl = clone ci = commit co = checkout br = branch dc = diff -cached [ url " = "gh: " pushInsteadOf = "github: " pushInsteadOf = "git:/// "Įxcludesfile = ~/.gitignore_global setting the editor fixes git commit bug editor = /usr/bin/vim "simple" avoid headaches, specially if you use `-force` w/o specifying branch see: default = simple
![git br shortcut mac command line git br shortcut mac command line](https://static.packt-cdn.com/products/9781801075732/graphics/image/B17441_01_06.png)
Meta = yellow bold frag = magenta bold old = red bold new = green boldĪdded = yellow changed = green untracked = cyan I removed the block on purpose so other people don't copy it by mistake you will need to set these valuesĬurrent = yellow reverse local = yellow remote = green # Make sure indexing is enabled for the main volume ' ' # Load new settings before rebuilding the index Sudo defaults write /.Spotlight-V100/VolumeConfiguration Exclusions -array "/Volumes " # Change indexing order and disable some file typesĭefaults write orderedItems -array \
![git br shortcut mac command line git br shortcut mac command line](https://i.ytimg.com/vi/H5BLEPhqxe8/maxresdefault.jpg)
# Use `sudo mdutil -i off "/Volumes/foo"` to stop indexing any volume. # Time Machine # Prevent Time Machine from prompting to use new hard drives as backup volumeĭefaults write DoNotOfferNewDisksForBackup -bool true # Spotlight # Hide Spotlight tray-icon (and subsequent helper) #sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search # Disable Spotlight indexing for any volume that gets mounted and has not yet # been indexed before. # Open and save files as UTF-8 in TextEditĭefaults write PlainTextEncoding -int 4ĭefaults write PlainTextEncodingForWrite -int 4 # Screen # Save screenshots to the desktopĭefaults write location -string " $HOME/Desktop " # Save screenshots in PNG format (other options: BMP, GIF, JPG, PDF, TIFF)ĭefaults write type -string "png " # Disable shadow in screenshotsĭefaults write disable-shadow -bool true # Address Book, Dashboard, iCal, TextEdit, and Disk Utility # Use plain text mode for new TextEdit documentsĭefaults write RichText -int 0 usr/libexec/PlistBuddy -c "Set :StandardViewSettings:IconViewSettings:arrangeBy grid " ~/Library/Preferences/
![git br shortcut mac command line git br shortcut mac command line](https://miro.medium.com/max/910/1*BCZkmZR1_YzDZy22Vn4uUw.png)
usr/libexec/PlistBuddy -c "Set :FK_StandardViewSettings:IconViewSettings:arrangeBy grid " ~/Library/Preferences/ usr/libexec/PlistBuddy -c "Set :DesktopViewSettings:IconViewSettings:arrangeBy grid " ~/Library/Preferences/ Sudo nvram SystemAudioVolume= " " # Menu bar: show remaining battery time (on pre-10.8) hide percentageĭefaults write ShowPercent -string "NO "ĭefaults write ShowTime -string "YES " # Finder # Finder: show hidden files by defaultĭefaults write AppleShowAllFiles -bool true # Finder: show all filename extensionsĭefaults write NSGlobalDomain AppleShowAllExtensions -bool true # Finder: show status barĭefaults write ShowStatusBar -bool true # Finder: allow text selection in Quick Lookĭefaults write QLEnableTextSelection -bool true # Disable the warning when changing a file extensionĭefaults write FXEnableExtensionChangeWarning -bool false # Enable snap-to-grid for icons on the desktop and in other icon views # General UI/UX # Disable the sound effects on boot