diff --git a/.bashrc b/.bashrc index c0785b1..60f7e58 100644 --- a/.bashrc +++ b/.bashrc @@ -16,6 +16,18 @@ ect() { fi } +off4() { + for x in /sys/devices/system/cpu/cpu[4-7]*/online; do + echo 0 | sudo tee "$x" + done +} + +on() { + for x in /sys/devices/system/cpu/cpu[0-7]*/online; do + echo 1 | sudo tee "$x" + done +} + [ -z ${WSLENV+x} ] || export PATH="${PATH:+"$PATH:"}$HOME/bin" # base16 config @@ -63,4 +75,4 @@ export CHROME_EXECUTABLE=brave # pnpm export PNPM_HOME="/home/ayush/.local/share/pnpm" export PATH="$PNPM_HOME:$PATH" -# pnpm end \ No newline at end of file +# pnpm end diff --git a/.winitrc b/.winitrc index f9a6afe..aba4d28 100755 --- a/.winitrc +++ b/.winitrc @@ -1,6 +1,4 @@ #!/bin/sh -# eDP's dpi -#xrandr --dpi 119 --output eDP-1 --mode 1920x1080 --rate 144 # lang exports export LANG=en_US.UTF-8 @@ -21,6 +19,7 @@ export LC_ALL="en_US.UTF-8" # wayland fixes export XDG_SESSION_TYPE=wayland export MOZ_ENABLE_WAYLAND=1 +export MOZ_USE_XINPUT2=1 export GTK_USE_PORTAL=0 export SDL_VIDEODRIVER=wayland export _JAVA_AWT_WM_NONREPARENTING=1 @@ -28,11 +27,17 @@ export QT_QPA_PLATFORM=wayland export XDG_CURRENT_DESKTOP=Sway export XDG_SESSION_DESKTOP=Sway export WLR_NO_HARDWARE_CURSORS=1 -export WLR_DRM_DEVICES=/dev/dri/card0 # gnome keyring eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) export SSH_AUTH_SOCK # start sway +#status=$(sudo cat /sys/class/drm/card1-HDMI-A-2/status) +#if [ "$status" = "connected" ]; then +# sway --unsupported-gpu +#else +# sway +#fi +export WLR_DRM_DEVICES=/dev/dri/card0 sway --unsupported-gpu diff --git a/.xinitrc b/.xinitrc index 4ba6571..3fa8e3e 100755 --- a/.xinitrc +++ b/.xinitrc @@ -38,4 +38,4 @@ eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) export SSH_AUTH_SOCK # start i3 -exec i3 +exec prime-run i3 diff --git a/foot/foot.ini b/foot/foot.ini index 351ff5a..e5570a5 100644 --- a/foot/foot.ini +++ b/foot/foot.ini @@ -8,22 +8,22 @@ # title=foot # locked-title=no -font=Roboto Mono for Powerline:size=14 +font=Roboto Mono for Powerline:size=10 # font-bold= # font-italic= # font-bold-italic= -# line-height= +#line-height=13.5 # letter-spacing=0 # horizontal-letter-offset=0 # vertical-letter-offset=0 -# underline-offset= +underline-offset=2px # box-drawings-uses-font-glyphs=no -# dpi-aware=auto +dpi-aware=yes # initial-window-size-pixels=700x500 # Or, # initial-window-size-chars= # initial-window-mode=windowed -# pad=2x2 # optionally append 'center' +pad=10x4 center # resize-delay-ms=100 # notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body} @@ -70,6 +70,14 @@ font=Roboto Mono for Powerline:size=14 # alpha=1.0 foreground=abb2bf background=282c34 +regular0=1e2127 +regular1=e06c75 +regular2=98c379 +regular3=d19a66 +regular4=61afef +regular5=c678dd +regular6=56b6c2 +regular7=828791 ## Normal/regular colors (color palette 0-7) # regular0=222222 # black diff --git a/i3/config b/i3/config index c0fee00..69a14c2 100644 --- a/i3/config +++ b/i3/config @@ -228,7 +228,7 @@ bindsym XF86MonBrightnessDown exec sudo /usr/bin/light -U 10 bindsym $mod+n exec firefox bindsym $mod+b exec notesnook -bindsym $mod+Shift+b exec "microsoft-edge-beta --enable-features=VaapiVideoDecoder,VaapiVideoEncoder --disable-features=UseChromeOSDirectVideoDecoder" +bindsym $mod+Shift+b exec "prime-run microsoft-edge-beta --enable-features=VaapiVideoDecoder,VaapiVideoEncoder --disable-features=UseChromeOSDirectVideoDecoder" # Mod + b min #bindsym $mod+b exec "min --use-gl=desktop --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --disable-features=UseSkiaRenderer,UseChromeOSDirectVideoDecoder --canvas-oop-rasterization" diff --git a/polybar/gloom-onedark.ini b/polybar/gloom-onedark.ini index d27df1b..264c8fb 100644 --- a/polybar/gloom-onedark.ini +++ b/polybar/gloom-onedark.ini @@ -21,6 +21,7 @@ dark-light = #272A2B active-light = #313435 [bar/example] +monitor = ${env:MONITOR:} tray-position = right width = 100% height = 25 diff --git a/sway/config b/sway/config index 493d2f2..8955ee8 100644 --- a/sway/config +++ b/sway/config @@ -2,8 +2,13 @@ output eDP-1 { #mode 1920x1080@60.004Hz mode 1920x1080@144.003Hz - scale 1.25 - adaptive_sync off + scale 1.0 + adaptive_sync on +} + +output HDMI-A-2 { + mode 2560x1440@144.000Hz + scale 1.0 } # set mouse @@ -45,7 +50,7 @@ font pango:Roboto Mono for Powerline 10 floating_modifier $mod # start a terminal -bindsym $mod+Return exec alacritty +bindsym $mod+Return exec foot # kill focused window bindsym $mod+Shift+q kill diff --git a/sway/wall.jpg b/sway/wall.jpg index 9b0a03b..229462a 100644 Binary files a/sway/wall.jpg and b/sway/wall.jpg differ