From 0a682cb686af7f40dbd19d214e652d01be1e5ae6 Mon Sep 17 00:00:00 2001 From: Shubham Saini Date: Fri, 28 May 2021 15:48:03 +0530 Subject: fixed disp --- bin/.bin/disp | 3 ++- sxhkd/.config/sxhkd/sxhkdrc | 2 -- 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 @@ status=$(cat /sys/class/drm/card0/*HDMI*/status) if [ $status == "connected" ]; then - 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 + # 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 + xrandr --output eDP-1 --mode 1920x1080 --pos 0x768 --scale 1 --output HDMI-1 --primary --mode 1366x768 --pos 318x0 --scale 1 bspc wm -r else 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 urxvtc -e nvim ~/.cache/bujo/todo.md Print maim ~/screens/$(date +%d-%b-%y-%I:%M%p).png -control + Print - maim -i $(xdotool getactivewindow) ~/screens/$(date +%d-%b-%y-%I:%M%p).png control + alt + Print maim -s ~/screens/$(date +%d-%b-%y-%I:%M%p).png super + shift + p diff --git a/zsh/.zshrc b/zsh/.zshrc index 8316cb9..fa6a5c2 100755 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -65,6 +65,10 @@ bind() { ssh -L localhost\:$1\:localhost\:$1 $2 } +findstr() { + find . -type f -exec grep -H "$1" {} \; +} + # Enable colors and change prompt: autoload -U colors && colors fpath+=$HOME/.cache/zsh/pure -- cgit v1.2.3