diff options
author | Shubham Saini <pryr@pryr.xyz> | 2021-01-10 10:06:07 +0000 |
---|---|---|
committer | Shubham Saini <pryr@pryr.xyz> | 2021-01-10 10:06:07 +0000 |
commit | 5a58034071911286816bbf2418a349f7657494ab (patch) | |
tree | 5f3d494b9a1cc44c1d56add4c880025c6f1019e2 | |
parent | a42bf68b85d951d9a4cf624fffb74dc247ed6fe1 (diff) |
added shortcut for hdmi
-rwxr-xr-x | bin/.bin/disp | 7 | ||||
-rwxr-xr-x | bin/.bin/lay | 2 | ||||
-rwxr-xr-x | bin/.bin/lay_edp | 2 | ||||
-rwxr-xr-x | bin/.bin/temp | 2 | ||||
-rwxr-xr-x | bin/.bin/unblock | 8 | ||||
-rwxr-xr-x | bspwm/.config/bspwm/bspwmrc | 2 | ||||
-rwxr-xr-x | polybar/.config/polybar/config | 2 | ||||
-rwxr-xr-x | sxhkd/.config/sxhkd/sxhkdrc | 6 |
8 files changed, 12 insertions, 19 deletions
diff --git a/bin/.bin/disp b/bin/.bin/disp new file mode 100755 index 0000000..e6de4a8 --- /dev/null +++ b/bin/.bin/disp | |||
@@ -0,0 +1,7 @@ | |||
1 | #!/bin/sh | ||
2 | status=$(cat /sys/class/drm/card0/*HDMI*/status) | ||
3 | if [ $status == "connected" ]; then | ||
4 | xrandr --output eDP --primary --mode 1920x1080 --pos 0x1080 --rotate normal --output HDMI-A-0 --mode 1366x768 --pos 0x0 --scale 1.4x1.4 --rotate normal --output DisplayPort-0 --off | ||
5 | else | ||
6 | xrandr --output eDP --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-A-0 --off | ||
7 | fi | ||
diff --git a/bin/.bin/lay b/bin/.bin/lay deleted file mode 100755 index f9ea307..0000000 --- a/bin/.bin/lay +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | xrandr --output eDP --primary --mode 1920x1080 --pos 0x1080 --rotate normal --output HDMI-A-0 --mode 1366x768 --pos 0x0 --rotate normal --output DisplayPort-0 --off | ||
diff --git a/bin/.bin/lay_edp b/bin/.bin/lay_edp deleted file mode 100755 index fcac2f6..0000000 --- a/bin/.bin/lay_edp +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | xrandr --output eDP --primary --mode 1920x1080 --pos 0x0 --rotate normal --output HDMI-A-0 --off | ||
diff --git a/bin/.bin/temp b/bin/.bin/temp deleted file mode 100755 index fec8439..0000000 --- a/bin/.bin/temp +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | paste <(cat /sys/class/thermal/thermal_zone*/type) <(cat /sys/class/thermal/thermal_zone*/temp) | column -s $'\t' -t | sed 's/\(.\)..$/.\1°C/' | ||
diff --git a/bin/.bin/unblock b/bin/.bin/unblock deleted file mode 100755 index 257c4fb..0000000 --- a/bin/.bin/unblock +++ /dev/null | |||
@@ -1,8 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | #whitelist escape | ||
3 | set -e | ||
4 | printf "\033[0;35mSetting wlo1 down....\033[0m\n" | ||
5 | sudo ip link set wlo1 down | ||
6 | printf "\033[0;36mChanging MAC address....\033[0m\n" | ||
7 | sudo macchanger --mac=FC:77:74:C7:71:71 wlo1 | ||
8 | printf "\033[0;32mEnjoy....\033[0m\n" | ||
diff --git a/bspwm/.config/bspwm/bspwmrc b/bspwm/.config/bspwm/bspwmrc index 770eab4..c68484b 100755 --- a/bspwm/.config/bspwm/bspwmrc +++ b/bspwm/.config/bspwm/bspwmrc | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | # bspwm | 3 | # bspwm |
4 | bspc monitor -d 1 2 3 4 5 6 | 4 | bspc monitor eDP -d 1 2 3 4 5 6 |
5 | bspc config border_width 3 | 5 | bspc config border_width 3 |
6 | bspc config window_gap 8 | 6 | bspc config window_gap 8 |
7 | bspc config split_ratio 0.50 | 7 | bspc config split_ratio 0.50 |
diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index 165f477..67965f1 100755 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config | |||
@@ -3,7 +3,7 @@ screenchange-reload = true | |||
3 | 3 | ||
4 | [colors] | 4 | [colors] |
5 | ;background = ${xrdb:background:#060808} | 5 | ;background = ${xrdb:background:#060808} |
6 | background = #171a1f | 6 | background = #00171a1f |
7 | background-alt = ${xrdb:color0:#000} | 7 | background-alt = ${xrdb:color0:#000} |
8 | ;foreground = ${xrdb:foreground:#c5c8c6} | 8 | ;foreground = ${xrdb:foreground:#c5c8c6} |
9 | foreground = #b7b7b7 | 9 | foreground = #b7b7b7 |
diff --git a/sxhkd/.config/sxhkd/sxhkdrc b/sxhkd/.config/sxhkd/sxhkdrc index 2444e39..69126ac 100755 --- a/sxhkd/.config/sxhkd/sxhkdrc +++ b/sxhkd/.config/sxhkd/sxhkdrc | |||
@@ -31,9 +31,9 @@ XF86Audio{RaiseVolume,LowerVolume} | |||
31 | XF86Audio{Mute,MicMute} | 31 | XF86Audio{Mute,MicMute} |
32 | pulsemixer --toggle-mute {--id sink-0,--id source-1} | 32 | pulsemixer --toggle-mute {--id sink-0,--id source-1} |
33 | 33 | ||
34 | # cmus | 34 | # display |
35 | XF86Audio{Play,Next,Prev} | 35 | XF86Favorites |
36 | cmus-remote {-u,-n,-r} | 36 | ~/.bin/disp |
37 | 37 | ||
38 | # brightness | 38 | # brightness |
39 | XF86MonBrightnessDown | 39 | XF86MonBrightnessDown |