updates i guess

main
Ayush Mukherjee 1 year ago
parent c8dfc67ba7
commit 256350d665

@ -41,12 +41,14 @@ on() {
# general aliases # general aliases
alias ls='ls --color=auto' alias ls='ls --color=auto'
alias vim='nvim' alias vim='nvim'
alias tf='terraform'
# git aliases # git aliases
alias ga='git add' alias ga='git add'
alias gcm='git commit -m' alias gcm='git commit -m'
alias gs='git status' alias gs='git status'
alias gp='git push' alias gp='git push'
alias gl='git log'
# config aliases # config aliases
alias vimc='nvim ~/.config/nvim/init.lua' alias vimc='nvim ~/.config/nvim/init.lua'
@ -55,7 +57,18 @@ alias wmc='nvim ~/.config/sway/config'
# asus tools aliases # asus tools aliases
alias sup='supergfxctl' alias sup='supergfxctl'
PS1='\[\e[1;33m\]\u ($HOSTNAME) \[\e[1;32m\]\w \[\e[0m\]$(parse_git_branch)\n\[\e[35m\]\[\e[1m\]\$ \[\e[0m\]' # Shell prompt
# Reset PS1 prompt everytime
resetPrompt() {
printf "\e[6 q"
}
# Colors: https://misc.flogisoft.com/bash/tip_colors_and_formatting
PS1='$(resetPrompt)\[\e[1;36m\]\u ($HOSTNAME) \[\e[1;32m\]\w \[\e[0m\]$(parse_git_branch)\n\[\e[35m\]\[\e[1m\]\$ \[\e[0m\]'
# export editor
export EDITOR=nvim
# export pip path # export pip path
export PATH=$PATH:~/.local/bin export PATH=$PATH:~/.local/bin
@ -75,4 +88,3 @@ export CHROME_EXECUTABLE=brave
# pnpm # pnpm
export PNPM_HOME="/home/ayush/.local/share/pnpm" export PNPM_HOME="/home/ayush/.local/share/pnpm"
export PATH="$PNPM_HOME:$PATH" export PATH="$PNPM_HOME:$PATH"
# pnpm end

@ -19,15 +19,17 @@ export LC_ALL="en_US.UTF-8"
# wayland fixes # wayland fixes
export XDG_SESSION_TYPE=wayland export XDG_SESSION_TYPE=wayland
export MOZ_ENABLE_WAYLAND=1 export MOZ_ENABLE_WAYLAND=1
export MOZ_USE_XINPUT2=1
export GTK_USE_PORTAL=0 export GTK_USE_PORTAL=0
export SDL_VIDEODRIVER=wayland #export SDL_VIDEODRIVER=wayland
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1
export QT_QPA_PLATFORM=wayland export QT_QPA_PLATFORM=wayland
export XDG_CURRENT_DESKTOP=Sway export XDG_CURRENT_DESKTOP=Sway
export XDG_SESSION_DESKTOP=Sway export XDG_SESSION_DESKTOP=Sway
export WLR_NO_HARDWARE_CURSORS=1 export WLR_NO_HARDWARE_CURSORS=1
# fix for slow loads on igpu-only mode
export __EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json:/usr/share/glvnd/egl_vendor.d/10_nvidia.json
# gnome keyring # gnome keyring
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh) eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK export SSH_AUTH_SOCK
@ -35,9 +37,8 @@ export SSH_AUTH_SOCK
# start sway # start sway
#status=$(sudo cat /sys/class/drm/card1-HDMI-A-2/status) #status=$(sudo cat /sys/class/drm/card1-HDMI-A-2/status)
#if [ "$status" = "connected" ]; then #if [ "$status" = "connected" ]; then
# sway --unsupported-gpu # export WLR_RENDERER=vulkan
#else # export WLR_DRM_DEVICES=/dev/dri/card1
# sway
#fi #fi
export WLR_DRM_DEVICES=/dev/dri/card0
sway --unsupported-gpu sway --unsupported-gpu

@ -1,3 +1,6 @@
import:
- ~/.config/alacritty/catppuccin/catppuccin-macchiato.yml
window: window:
opacity: 1 opacity: 1
padding: padding:
@ -14,14 +17,19 @@ font:
x: 0 x: 0
y: 3 y: 3
cursor:
style:
shape: beam
blinking: on
draw_bold_text_with_bright_colors: false draw_bold_text_with_bright_colors: false
# Colors (One Dark) # Colors (One Dark)
colors: #colors:
# Default colors # Default colors
primary: #primary:
background: '#282c34' # background: '#282c34'
foreground: '#abb2bf' # foreground: '#abb2bf'
# Bright and dim foreground colors # Bright and dim foreground colors
# #
@ -29,7 +37,7 @@ colors:
# If the bright foreground color is not set, or `draw_bold_text_with_bright_colors` # If the bright foreground color is not set, or `draw_bold_text_with_bright_colors`
# is `false`, the normal foreground color will be used. # is `false`, the normal foreground color will be used.
#dim_foreground: '0x9a9a9a' #dim_foreground: '0x9a9a9a'
bright_foreground: '0xe6efff' # bright_foreground: '0xe6efff'
# Cursor colors # Cursor colors
# #
@ -40,37 +48,37 @@ colors:
# cursor: '0xffffff' # cursor: '0xffffff'
# Normal colors # Normal colors
normal: #normal:
black: '0x1e2127' #black: '0x1e2127'
red: '0xe06c75' #red: '0xe06c75'
green: '0x98c379' #green: '0x98c379'
yellow: '0xd19a66' #yellow: '0xd19a66'
blue: '0x61afef' #blue: '0x61afef'
magenta: '0xc678dd' #magenta: '0xc678dd'
cyan: '0x56b6c2' #cyan: '0x56b6c2'
white: '0x828791' #white: '0x828791'
# Bright colors # Bright colors
bright: #bright:
black: '0x5c6370' #black: '0x5c6370'
red: '0xe06c75' #red: '0xe06c75'
green: '0x98c379' #green: '0x98c379'
yellow: '0xd19a66' #yellow: '0xd19a66'
blue: '0x61afef' #blue: '0x61afef'
magenta: '0xc678dd' #magenta: '0xc678dd'
cyan: '0x56b6c2' #cyan: '0x56b6c2'
white: '0xe6efff' #white: '0xe6efff'
# Dim colors # Dim colors
# #
# If the dim colors are not set, they will be calculated automatically based # If the dim colors are not set, they will be calculated automatically based
# on the `normal` colors. # on the `normal` colors.
dim: #dim:
black: '0x1e2127' #black: '0x1e2127'
red: '0xe06c75' #red: '0xe06c75'
green: '0x98c379' #green: '0x98c379'
yellow: '0xd19a66' #yellow: '0xd19a66'
blue: '0x61afef' #blue: '0x61afef'
magenta: '0xc678dd' #magenta: '0xc678dd'
cyan: '0x56b6c2' #cyan: '0x56b6c2'
white: '0x828791' #white: '0x828791'

@ -0,0 +1 @@
Subproject commit 3c808cbb4f9c87be43ba5241bc57373c793d2f17

@ -1,14 +1,14 @@
# -*- conf -*- # -*- conf -*-
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd) # shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
# term=foot (or xterm-256color if built with -Dterminfo=disabled) term=xterm-256color
# login-shell=no # login-shell=no
# app-id=foot # app-id=foot
# title=foot # title=foot
# locked-title=no # locked-title=no
font=Roboto Mono for Powerline:size=10 font=Roboto Mono for Powerline:size=14
# font-bold=<bold variant of regular font> # font-bold=<bold variant of regular font>
# font-italic=<italic variant of regular font> # font-italic=<italic variant of regular font>
# font-bold-italic=<bold+italic variant of regular font> # font-bold-italic=<bold+italic variant of regular font>
@ -18,7 +18,7 @@ font=Roboto Mono for Powerline:size=10
# vertical-letter-offset=0 # vertical-letter-offset=0
underline-offset=2px underline-offset=2px
# box-drawings-uses-font-glyphs=no # box-drawings-uses-font-glyphs=no
dpi-aware=yes dpi-aware=no
# initial-window-size-pixels=700x500 # Or, # initial-window-size-pixels=700x500 # Or,
# initial-window-size-chars=<COLSxROWS> # initial-window-size-chars=<COLSxROWS>

@ -27,7 +27,10 @@ require('packer').startup(function()
'RubixDev/mason-update-all', 'RubixDev/mason-update-all',
'neovim/nvim-lspconfig' 'neovim/nvim-lspconfig'
} }
use 'joshdick/onedark.vim' use {
'catppuccin/nvim',
as = 'catpuccin'
}
use 'nvim-treesitter/nvim-treesitter' use 'nvim-treesitter/nvim-treesitter'
@ -48,6 +51,9 @@ end)
require("user.basics") require("user.basics")
vim.cmd.colorscheme 'catppuccin-macchiato'
vim.opt.guicursor = 'n:block-Number,i:ver30'
local function map(mode, shortcut, command) local function map(mode, shortcut, command)
vim.keymap.set(mode, shortcut, command, { noremap = true }) vim.keymap.set(mode, shortcut, command, { noremap = true })
end end
@ -60,8 +66,8 @@ local use builtin = require("telescope.builtin")
nmap("<C-P>", builtin.find_files) nmap("<C-P>", builtin.find_files)
require("lualine").setup{ require("lualine").setup{
options = { options = {
theme = 'onedark' theme = 'auto'
} }
} }

@ -26,6 +26,5 @@ vim.opt.completeopt = { "menu", "menuone", "noselect" }
vim.cmd([[ vim.cmd([[
syntax on syntax on
syntax enable syntax enable
colorscheme onedark
hi CursorLine cterm=NONE ctermbg=237 ctermfg=NONE hi CursorLine cterm=NONE ctermbg=237 ctermfg=NONE
]]) ]])

@ -1,7 +1,8 @@
local servers = { local servers = {
'sumneko_lua', 'lua_ls',
'pyright', 'pyright',
'tsserver', 'tsserver',
'terraformls',
} }
require('mason').setup() require('mason').setup()

@ -3,12 +3,13 @@ output eDP-1 {
#mode 1920x1080@60.004Hz #mode 1920x1080@60.004Hz
mode 1920x1080@144.003Hz mode 1920x1080@144.003Hz
scale 1.0 scale 1.0
adaptive_sync on adaptive_sync off
} }
output HDMI-A-2 { output DP-1 {
mode 2560x1440@144.000Hz mode 2560x1440@144.000Hz
scale 1.0 scale 1.0
adaptive_sync off
} }
# set mouse # set mouse
@ -50,7 +51,7 @@ font pango:Roboto Mono for Powerline 10
floating_modifier $mod floating_modifier $mod
# start a terminal # start a terminal
bindsym $mod+Return exec foot bindsym $mod+Return exec alacritty
# kill focused window # kill focused window
bindsym $mod+Shift+q kill bindsym $mod+Shift+q kill
@ -232,6 +233,9 @@ exec "/usr/bin/sleep 5; /usr/bin/nextcloud --background"
# start nm-applet # start nm-applet
exec --no-startup-id nm-applet --indicator exec --no-startup-id nm-applet --indicator
# start rog-control-center
exec --no-startup-id rog-control-center
# dunst keybinds # dunst keybinds
bindsym Ctrl+space exec dunstctl close bindsym Ctrl+space exec dunstctl close
bindsym Ctrl+Shift+space exec dunstctl close-all bindsym Ctrl+Shift+space exec dunstctl close-all
@ -271,8 +275,8 @@ bindsym $mod+n exec firefox
#bindsym $mod+b exec "min --use-gl=desktop --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization --ozone-platform-hint=auto --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --disable-features=UseSkiaRenderer,UseChromeOSDirectVideoDecoder --canvas-oop-rasterization" #bindsym $mod+b exec "min --use-gl=desktop --enable-features=VaapiVideoDecoder,VaapiVideoEncoder,CanvasOopRasterization --ozone-platform-hint=auto --ignore-gpu-blocklist --enable-gpu-rasterization --enable-zero-copy --disable-features=UseSkiaRenderer,UseChromeOSDirectVideoDecoder --canvas-oop-rasterization"
bindsym $mod+b exec "notesnook --ozone-platform=wayland --ozone-platform-hint=wayland" bindsym $mod+b exec "notesnook --ozone-platform=wayland --ozone-platform-hint=wayland"
# Mod + Shift + b edge # Mod + Shift + b mercury
bindsym $mod+Shift+b exec "microsoft-edge-beta --enable-features=UseOzonePlatform,VaapiVideoDecoder,VaapiVideoEncoder,WebRTCPipeWireCapturer --ozone-platform=wayland --ozone-platform-hint=wayland --disable-features=UseChromeOSDirectVideoDecoder --use-gl=egl" bindsym $mod+Shift+b exec "mercury-browser"
# Mod + m pantheon files # Mod + m pantheon files
bindsym $mod+m exec io.elementary.files bindsym $mod+m exec io.elementary.files
@ -282,7 +286,7 @@ bindsym $mod+Shift+x exec /usr/local/bin/emotes
# Assign windows to workspaces # Assign windows to workspaces
assign [class="Brave-browser"] 3 assign [class="Brave-browser"] 3
assign [class="Steam"] 4 #assign [class="Steam"] 4
assign [class="discord"] 10 assign [class="discord"] 10
# make notification windows floating # make notification windows floating

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

After

Width:  |  Height:  |  Size: 3.1 MiB

@ -39,7 +39,7 @@
"states": { "states": {
// "good": 95, // "good": 95,
"warning": 50, "warning": 50,
"critical": 40, "critical": 19,
}, },
"format": " {capacity}%", "format": " {capacity}%",
"format-time": "{H}h {M}m", "format-time": "{H}h {M}m",

@ -4,8 +4,8 @@
} }
window#waybar { window#waybar {
background-color: #1e222a; background-color: #24273A;
color: #979eab; color: #CAD3F5;
padding: 0 500px; padding: 0 500px;
} }
@ -13,7 +13,7 @@ window#waybar {
margin: 4px 0; margin: 4px 0;
padding: 0 2px; padding: 0 2px;
background: transparent; background: transparent;
color: #979eab; color: #CAD3F5;
box-shadow: inset 0 -2px transparent; box-shadow: inset 0 -2px transparent;
border: none; border: none;
border-radius: 0; border-radius: 0;
@ -28,8 +28,8 @@ window#waybar {
} }
#workspaces button.focused { #workspaces button.focused {
background-color: #282c35; background-color: #8aadf4;
box-shadow: inset 0 -2px #61afef; color: #494D64;
} }
#workspaces button.urgent { #workspaces button.urgent {
@ -38,7 +38,7 @@ window#waybar {
#custom-left-semi, #custom-left-semi,
#custom-right-semi { #custom-right-semi {
color: #2b2f37; color: #1e2030;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
@ -82,18 +82,18 @@ window#waybar {
} }
#clock { #clock {
background-color: #282c35; background-color: #1e2030;
color: #abb2bf; color: #abb2bf;
padding: 0 10px; padding: 0 10px;
} }
#battery { #battery {
background-color: #282c35; background-color: #1e2030;
} }
#battery.charging, #battery.plugged { #battery.charging, #battery.plugged {
color: #5dabeb; color: #8AADF4;
background-color: #282c35; background-color: #1e2030;
} }
@keyframes blink { @keyframes blink {
@ -119,16 +119,16 @@ label:focus {
} }
#cpu { #cpu {
background-color: #282c35; background-color: #1e2030;
color: #abb2bf; color: #abb2bf;
} }
#memory { #memory {
background-color: #282c35; background-color: #1e2030;
} }
#disk { #disk {
background-color: #964B00; background-color: #1e2030;
} }
#backlight { #backlight {
@ -178,7 +178,6 @@ label:focus {
} }
#tray { #tray {
background-color: #1e2127;
} }
#tray > .passive { #tray > .passive {

Loading…
Cancel
Save