diff options
| author | Shubham Saini <pryr@pryr.xyz> | 2021-05-28 10:18:03 +0000 |
|---|---|---|
| committer | Shubham Saini <pryr@pryr.xyz> | 2021-05-28 10:18:03 +0000 |
| commit | 0a682cb686af7f40dbd19d214e652d01be1e5ae6 (patch) | |
| tree | d1215311b37ddcfd352e0d7269f170dcfd055f81 | |
| parent | a9f4fdfef13577dfa159b1c82826230fe982fa86 (diff) | |
fixed disp
| -rwxr-xr-x | bin/.bin/disp | 3 | ||||
| -rwxr-xr-x | sxhkd/.config/sxhkd/sxhkdrc | 2 | ||||
| -rwxr-xr-x | zsh/.zshrc | 4 |
3 files changed, 6 insertions, 3 deletions
diff --git a/bin/.bin/disp b/bin/.bin/disp index 43d6987..1ebbd8d 100755 --- a/bin/.bin/disp +++ b/bin/.bin/disp | |||
| @@ -2,7 +2,8 @@ | |||
| 2 | 2 | ||
| 3 | status=$(cat /sys/class/drm/card0/*HDMI*/status) | 3 | status=$(cat /sys/class/drm/card0/*HDMI*/status) |
| 4 | if [ $status == "connected" ]; then | 4 | if [ $status == "connected" ]; then |
| 5 | xrandr --output eDP-1 --mode 1920x1080 --pos 0x1076 --rotate normal --output HDMI-1 --primary --mode 1366x768 --scale 1.4x1.4 --pos 0x0 --rotate normal --output DP-1 --off | 5 | # xrandr --output eDP-1 --mode 1920x1080 --pos 0x1076 --rotate normal --output HDMI-1 --primary --mode 1366x768 --scale 1.4x1.4 --pos 0x0 --rotate normal --output DP-1 --off |
| 6 | xrandr --output eDP-1 --mode 1920x1080 --pos 0x768 --scale 1 --output HDMI-1 --primary --mode 1366x768 --pos 318x0 --scale 1 | ||
| 6 | bspc wm -r | 7 | bspc wm -r |
| 7 | else | 8 | else |
| 8 | xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1 --off --output DisplayPort-0 --off | 9 | xrandr --output eDP-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-1 --off --output DisplayPort-0 --off |
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 2b6de5d..4573545 100755 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc | |||
| @@ -16,8 +16,6 @@ super + n | |||
| 16 | urxvtc -e nvim ~/.cache/bujo/todo.md | 16 | urxvtc -e nvim ~/.cache/bujo/todo.md |
| 17 | 17 | ||
| 18 | maim ~/screens/$(date +%d-%b-%y-%I:%M%p).png | 18 | maim ~/screens/$(date +%d-%b-%y-%I:%M%p).png |
| 19 | control + Print | ||
| 20 | maim -i $(xdotool getactivewindow) ~/screens/$(date +%d-%b-%y-%I:%M%p).png | ||
| 21 | control + alt + Print | 19 | control + alt + Print |
| 22 | maim -s ~/screens/$(date +%d-%b-%y-%I:%M%p).png | 20 | maim -s ~/screens/$(date +%d-%b-%y-%I:%M%p).png |
| 23 | super + shift + p | 21 | super + shift + p |
| @@ -65,6 +65,10 @@ bind() { | |||
| 65 | ssh -L localhost\:$1\:localhost\:$1 $2 | 65 | ssh -L localhost\:$1\:localhost\:$1 $2 |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | findstr() { | ||
| 69 | find . -type f -exec grep -H "$1" {} \; | ||
| 70 | } | ||
| 71 | |||
| 68 | # Enable colors and change prompt: | 72 | # Enable colors and change prompt: |
| 69 | autoload -U colors && colors | 73 | autoload -U colors && colors |
| 70 | fpath+=$HOME/.cache/zsh/pure | 74 | fpath+=$HOME/.cache/zsh/pure |
