From 2c269d03a8ded484c8bb4c796d92f85cd225ce18 Mon Sep 17 00:00:00 2001 From: AngeD Date: Sun, 12 Nov 2023 11:53:36 +0100 Subject: [PATCH] feat: autorandr --- .config/autorandr/ip-agn/config | 9 +++++++++ .config/autorandr/ip-agn/setup | 2 ++ {bin => .config/autorandr/postswitch.d}/wallpaper | 0 .config/autorandr/settings.ini | 2 ++ .config/nvim/pack/plugins/opt/treesitter | 2 +- .config/suckless/dwm-6.4/config.h | 4 ++-- .config/zsh/.zshrc | 1 + .config/zsh/aliases/general.zsh | 1 + .xinitrc | 4 +--- 9 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 .config/autorandr/ip-agn/config create mode 100644 .config/autorandr/ip-agn/setup rename {bin => .config/autorandr/postswitch.d}/wallpaper (100%) create mode 100644 .config/autorandr/settings.ini diff --git a/.config/autorandr/ip-agn/config b/.config/autorandr/ip-agn/config new file mode 100644 index 0000000..c478261 --- /dev/null +++ b/.config/autorandr/ip-agn/config @@ -0,0 +1,9 @@ +output HDMI-A-0 +mode 1920x1080 +pos 0x0 +primary +rate 60.00 +output eDP +mode 1920x1080 +pos 1920x0 +rate 60.00 diff --git a/.config/autorandr/ip-agn/setup b/.config/autorandr/ip-agn/setup new file mode 100644 index 0000000..f9ff678 --- /dev/null +++ b/.config/autorandr/ip-agn/setup @@ -0,0 +1,2 @@ +HDMI-A-0 00ffffffffffff000472ff0275d130442b18010380351e78ca9265a655559f280d5054bfef80714f8140818081c081009500b300d1c0023a801871382d40582c4500132b2100001e000000fd00374c1e5011000a202020202020000000fc0047323436484c0a202020202020000000ff004c57414545303138383536380a014d020324f14f01020304050607901112131415161f230907078301000067030c001000382d023a801871382d40582c4500132b2100001f011d8018711c1620582c2500132b2100009f011d007251d01e206e285500132b2100001e8c0ad08a20e02d10103e9600132b21000018000000000000000000000000000000000000007e +eDP 00ffffffffffff0009e5d50800000000231d0104a5221378030b95935c59932a20505400000001010101010101010101010101010101043a803671381e403020360058c21000001a000000000000000000000000000000000000000000fe00424f452043510a202020202020000000fe004e5431353646484d2d4e34330a000e diff --git a/bin/wallpaper b/.config/autorandr/postswitch.d/wallpaper similarity index 100% rename from bin/wallpaper rename to .config/autorandr/postswitch.d/wallpaper diff --git a/.config/autorandr/settings.ini b/.config/autorandr/settings.ini new file mode 100644 index 0000000..6515a70 --- /dev/null +++ b/.config/autorandr/settings.ini @@ -0,0 +1,2 @@ +[config] +skip-options=crtc,gamma,x-prop-colorspace,x-prop-max_bpc,x-prop-non_desktop,x-prop-scaling_mode,x-prop-tearfree,x-prop-underscan,x-prop-underscan_hborder,x-prop-underscan_vborder, diff --git a/.config/nvim/pack/plugins/opt/treesitter b/.config/nvim/pack/plugins/opt/treesitter index 04a9a90..075a64a 160000 --- a/.config/nvim/pack/plugins/opt/treesitter +++ b/.config/nvim/pack/plugins/opt/treesitter @@ -1 +1 @@ -Subproject commit 04a9a90c2a60c86aa9451c539586326b337b03e5 +Subproject commit 075a64addc33390028ea124a1046a43497f05cd1 diff --git a/.config/suckless/dwm-6.4/config.h b/.config/suckless/dwm-6.4/config.h index a3a3c0b..6243bc3 100644 --- a/.config/suckless/dwm-6.4/config.h +++ b/.config/suckless/dwm-6.4/config.h @@ -52,8 +52,8 @@ static const Layout layouts[] = { static const char *dmenucmd[] = { "dmenu_run", "-i", "-fn", dmenufont, NULL }; static const char *termcmd[] = { "alacritty", NULL }; static const char *calccmd[] = { "alacritty", "-epython", NULL }; -static const char *wwwcmd[] = { "org.mozilla.firefox", NULL }; -static const char *pwwwcmd[] = { "org.mozilla.firefox", "--private-window", NULL }; +static const char *wwwcmd[] = { "firefox", NULL }; +static const char *pwwwcmd[] = { "firefox", "--private-window", NULL }; static const char *fmcmd[] = { "pcmanfm", NULL }; static const char *lockcmd[] = { "lock", NULL }; static const char *prtsccmd[] = { "flameshot", "full", "-c", NULL }; diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 76603b8..a43055d 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -37,6 +37,7 @@ export LESS_TERMCAP_so="${fg_bold[yellow]}${bg[blue]}" export LESS_TERMCAP_se="${reset_color}" export LESS_TERMCAP_us="${fg_bold[green]}" export LESS_TERMCAP_ue="${reset_color}" +export GROFF_NO_SGR=1 . <(dircolors) zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" diff --git a/.config/zsh/aliases/general.zsh b/.config/zsh/aliases/general.zsh index a3c7fe7..9bc15bc 100644 --- a/.config/zsh/aliases/general.zsh +++ b/.config/zsh/aliases/general.zsh @@ -13,6 +13,7 @@ alias zconf='(cd "$ZDOTDIR/" && $EDITOR .) && . "$ZDOTDIR/.zshrc"' # dev alias valgrind='epitest valgrind' +alias ssh='TERM=linux ssh' # alias function coloralias() { diff --git a/.xinitrc b/.xinitrc index 1f1e46c..09fbbad 100644 --- a/.xinitrc +++ b/.xinitrc @@ -1,9 +1,7 @@ #!/bin/sh -# bar -#(i3status | while read line; do xsetroot -name "$line"; done) & - # startup +autorandr -c & xss-lock -n screensaver -- lock & /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 || # arch /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 || # debian