Compare commits

..

10 Commits

Author SHA1 Message Date
cea6e1450c added waybar config 2023-05-05 15:35:28 +02:00
0cbb143d31 updated rofi 2023-05-05 15:34:30 +02:00
035283fcce added hyprpaper config 2023-05-05 15:33:09 +02:00
449383d535 added hyperland config 2023-05-05 15:32:51 +02:00
13576ad416 added vscode flags to use wayland by default 2023-05-05 15:32:09 +02:00
2dc054c0a9 added nvchad's config file
it need to be simlinked into the nvchad at
.config/nvim/lua/custom/chadrc.lua
2023-05-05 15:28:37 +02:00
03535234ca use nvchad for neovim 2023-05-05 15:18:00 +02:00
8ce5ac1bde updated zshrc 2023-05-05 15:03:03 +02:00
405ba3fd5d added some stuff to profile 2023-05-05 15:01:41 +02:00
739edfe915 updated p10k config 2023-05-05 14:59:54 +02:00
21 changed files with 1485 additions and 408 deletions

File diff suppressed because it is too large Load Diff

20
.config/chadrc.lua Normal file
View File

@@ -0,0 +1,20 @@
---@type ChadrcConfig
local M = {}
M.ui = {
theme = 'vscode_dark',
transparency = true
}
-- Reset curser
vim.api.nvim_create_autocmd({"VimLeave"}, {
pattern = {"*"},
callback = function()
vim.o.guicursor = "a:ver1-blinkon0"
end
})
-- Enable strg + shift + c clipboard
vim.o.clipboard = "unnamedplus"
return M

1
.config/code-flags.conf Normal file
View File

@@ -0,0 +1 @@
--ozone-platform-hint=auto

1
.config/electron-flags.conf Symbolic link
View File

@@ -0,0 +1 @@
code-flags.conf

185
.config/hypr/hyprland.conf Normal file
View File

@@ -0,0 +1,185 @@
#
# Please note not all available settings / options are set here.
# For a full list, see the wiki
#
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=,preferred,auto,auto
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
# Some default env vars.
env = XCURSOR_SIZE,24
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
kb_layout = us
kb_variant =
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
touchpad {
natural_scroll = no
}
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}
general {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
gaps_in = 5
gaps_out = 7
border_size = 2
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
layout = dwindle
}
decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
rounding = 5
blur = yes
blur_size = 3
blur_passes = 1
blur_new_optimizations = on
drop_shadow = yes
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(1a1a1aee)
}
animations {
enabled = yes
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
}
dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this
}
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_is_master = true
}
gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = off
}
binds {
workspace_back_and_forth=true
}
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#executing for more
device:zly-zelotes-game-mouse {
sensitivity = -1
}
# Window/Layer-Rules
layerrule = noanim,rofi
windowrulev2 = workspace special, class:^(Spotify)$
# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# Env
env = MOZ_ENABLE_WAYLAND,1
# Autostart
exec-once = waybar
exec-once = swaync
exec-once = hyprpaper
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
$mainModShift = SUPER_SHIFT
bind = $mainMod, Return, exec, alacritty
bind = $mainModShift, Q, exec, $XDG_CONFIG_HOME/hypr/killscript.sh
bind = $mainModShift, E, exec, $XDG_CONFIG_HOME/rofi/powermenu.sh
bind = $mainModShift, Space, togglefloating
bind = $mainMod, D, exec, rofi -show drun -theme $XDG_CONFIG_HOME/rofi/launcher.rasi
bind = $mainMod, M, exec, $XDG_CONFIG_HOME/waybar/mute-toggle.sh
#bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, F, fullscreen
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
# Move windows with mainMod + Shift + arrow
bind = $mainModShift, left, movewindow, l
bind = $mainModShift, right, movewindow,r
bind = $mainModShift, up, movewindow, u
bind = $mainModShift, down, movewindow, d
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Scratchpad
bind = $mainMod, F1, togglespecialworkspace

View File

@@ -0,0 +1,4 @@
preload = ~/pictures/wallpapers/nok4cs22es851.png
wallpaper = HDMI-A-1, ~/pictures/wallpapers/nok4cs22es851.png

8
.config/hypr/killscript.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/sh
if [ "$(hyprctl activewindow -j | jq -r ".class")" = "Steam" ]; then
xdotool getactivewindow windowunmap
else
hyprctl dispatch killactive ""
fi

View File

@@ -1,54 +0,0 @@
" _ _ __ ___
" | \| |___ __\ \ / (_)_ __
" | .` / -_) _ \ V /| | ' \
" |_|\_\___\___/\_/ |_|_|_|_|
"
" Required packages:
" - neovim (duh)
" - neovim-plug-git
" Set course to a line when exiting nvim
:au VimLeave * set guicursor=a:ver1-blinkon0
" Set color for dark backgrounds
:set background=dark
" Line number
:set number
" tabstop
set tabstop=4
set shiftwidth=4
" yaml indentation
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
" Start NERDTree when Vim is started without file arguments.
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
" Mouse support
set mouse=a
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
call plug#begin('~/.config/nvim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'preservim/nerdtree'
Plug 'ryanoasis/vim-devicons'
Plug 'vim-airline/vim-airline'
call plug#end()
nnoremap <C-b> :NERDTreeToggle<CR>
nnoremap <C-l> :bnext<CR>
nnoremap <C-h> :bprevious<CR>
syntax enable
set clipboard=unnamedplus
cmap w!! w !sudo tee %

View File

@@ -0,0 +1,17 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Colors
**/
* {
background: #2E3440FF;
background-alt: #383E4AFF;
foreground: #E5E9F0FF;
selected: #81A1C1FF;
active: #A3BE8CFF;
urgent: #BF616AFF;
}

View File

@@ -1,2 +0,0 @@
@import "/home/niklas/.cache/wal/colors-rofi-dark"

View File

@@ -0,0 +1 @@
colors/nord.rasi

309
.config/rofi/launcher.rasi Normal file
View File

@@ -0,0 +1,309 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Rofi Theme File
* Rofi Version: 1.7.3
**/
/*****----- Configuration -----*****/
configuration {
modi: "drun,filebrowser,window";
show-icons: true;
display-drun: "";
display-run: "";
display-filebrowser: "";
display-window: "";
drun-display-format: "{name}";
window-format: "{w} · {c} · {t}";
}
/*****----- Global Properties -----*****/
@import "current-color.rasi"
* {
border-colour: var(selected);
handle-colour: var(selected);
background-colour: var(background);
foreground-colour: var(foreground);
alternate-background: var(background-alt);
normal-background: var(background);
normal-foreground: var(foreground);
urgent-background: var(urgent);
urgent-foreground: var(background);
active-background: var(active);
active-foreground: var(background);
selected-normal-background: var(selected);
selected-normal-foreground: var(background);
selected-urgent-background: var(active);
selected-urgent-foreground: var(background);
selected-active-background: var(urgent);
selected-active-foreground: var(background);
alternate-normal-background: var(background);
alternate-normal-foreground: var(foreground);
alternate-urgent-background: var(urgent);
alternate-urgent-foreground: var(background);
alternate-active-background: var(active);
alternate-active-foreground: var(background);
}
/*****----- Main Window -----*****/
window {
/* properties for window widget */
transparency: "real";
location: center;
anchor: center;
fullscreen: false;
width: 600px;
x-offset: 0px;
y-offset: 0px;
/* properties for all widgets */
enabled: true;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 10px;
border-color: @border-colour;
cursor: "default";
/* Backgroud Colors */
background-color: @background-colour;
/* Backgroud Image */
//background-image: url("/path/to/image.png", none);
/* Simple Linear Gradient */
//background-image: linear-gradient(red, orange, pink, purple);
/* Directional Linear Gradient */
//background-image: linear-gradient(to bottom, pink, yellow, magenta);
/* Angle Linear Gradient */
//background-image: linear-gradient(45, cyan, purple, indigo);
}
/*****----- Main Box -----*****/
mainbox {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 30px;
border: 0px solid;
border-radius: 0px 0px 0px 0px;
border-color: @border-colour;
background-color: transparent;
children: [ "inputbar", "message", "listview" ];
}
/*****----- Inputbar -----*****/
inputbar {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: @border-colour;
background-color: transparent;
text-color: @foreground-colour;
children: [ "textbox-prompt-colon", "entry", "mode-switcher" ];
}
prompt {
enabled: true;
background-color: inherit;
text-color: inherit;
}
textbox-prompt-colon {
enabled: true;
padding: 5px 0px;
expand: false;
str: "";
background-color: inherit;
text-color: inherit;
}
entry {
enabled: true;
padding: 5px 0px;
background-color: inherit;
text-color: inherit;
cursor: text;
placeholder: "Search...";
placeholder-color: inherit;
}
num-filtered-rows {
enabled: true;
expand: false;
background-color: inherit;
text-color: inherit;
}
textbox-num-sep {
enabled: true;
expand: false;
str: "/";
background-color: inherit;
text-color: inherit;
}
num-rows {
enabled: true;
expand: false;
background-color: inherit;
text-color: inherit;
}
case-indicator {
enabled: true;
background-color: inherit;
text-color: inherit;
}
/*****----- Listview -----*****/
listview {
enabled: true;
columns: 1;
lines: 8;
cycle: true;
dynamic: true;
scrollbar: true;
layout: vertical;
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 5px;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: @border-colour;
background-color: transparent;
text-color: @foreground-colour;
cursor: "default";
}
scrollbar {
handle-width: 5px ;
handle-color: @handle-colour;
border-radius: 10px;
background-color: @alternate-background;
}
/*****----- Elements -----*****/
element {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 5px 10px;
border: 0px solid;
border-radius: 10px;
border-color: @border-colour;
background-color: transparent;
text-color: @foreground-colour;
cursor: pointer;
}
element normal.normal {
background-color: var(normal-background);
text-color: var(normal-foreground);
}
element normal.urgent {
background-color: var(urgent-background);
text-color: var(urgent-foreground);
}
element normal.active {
background-color: var(active-background);
text-color: var(active-foreground);
}
element selected.normal {
background-color: var(selected-normal-background);
text-color: var(selected-normal-foreground);
}
element selected.urgent {
background-color: var(selected-urgent-background);
text-color: var(selected-urgent-foreground);
}
element selected.active {
background-color: var(selected-active-background);
text-color: var(selected-active-foreground);
}
element alternate.normal {
background-color: var(alternate-normal-background);
text-color: var(alternate-normal-foreground);
}
element alternate.urgent {
background-color: var(alternate-urgent-background);
text-color: var(alternate-urgent-foreground);
}
element alternate.active {
background-color: var(alternate-active-background);
text-color: var(alternate-active-foreground);
}
element-icon {
background-color: transparent;
text-color: inherit;
size: 24px;
cursor: inherit;
}
element-text {
background-color: transparent;
text-color: inherit;
highlight: inherit;
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.0;
}
/*****----- Mode Switcher -----*****/
mode-switcher{
enabled: true;
spacing: 10px;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: @border-colour;
background-color: transparent;
text-color: @foreground-colour;
}
button {
padding: 5px 10px;
border: 0px solid;
border-radius: 10px;
border-color: @border-colour;
background-color: @alternate-background;
text-color: inherit;
cursor: pointer;
}
button selected {
background-color: var(selected-normal-background);
text-color: var(selected-normal-foreground);
}
/*****----- Message -----*****/
message {
enabled: true;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px 0px 0px 0px;
border-color: @border-colour;
background-color: transparent;
text-color: @foreground-colour;
}
textbox {
padding: 8px 10px;
border: 0px solid;
border-radius: 10px;
border-color: @border-colour;
background-color: @alternate-background;
text-color: @foreground-colour;
vertical-align: 0.5;
horizontal-align: 0.0;
highlight: none;
placeholder-color: @foreground-colour;
blink: true;
markup: true;
}
error-message {
padding: 10px;
border: 2px solid;
border-radius: 10px;
border-color: @border-colour;
background-color: @background-colour;
text-color: @foreground-colour;
}

167
.config/rofi/powermenu.rasi Normal file
View File

@@ -0,0 +1,167 @@
/**
*
* Author : Aditya Shakya (adi1090x)
* Github : @adi1090x
*
* Rofi Theme File
* Rofi Version: 1.7.3
**/
/*****----- Configuration -----*****/
configuration {
show-icons: false;
}
/*****----- Global Properties -----*****/
@import "current-color.rasi"
/*****----- Main Window -----*****/
window {
/* properties for window widget */
transparency: "real";
location: center;
anchor: center;
fullscreen: false;
width: 605px;
x-offset: 0px;
y-offset: 0px;
/* properties for all widgets */
enabled: true;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 4px;
border-color: @selected;
cursor: "default";
background-color: @background;
}
/*****----- Main Box -----*****/
mainbox {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 20px;
border: 0px solid;
border-radius: 0px;
border-color: @selected;
background-color: transparent;
children: [ "inputbar", "message", "listview" ];
}
/*****----- Inputbar -----*****/
inputbar {
enabled: true;
spacing: 10px;
margin: 0px;
padding: 0px;
border: 0px;
border-radius: 0px;
border-color: @selected;
background-color: transparent;
text-color: @foreground;
children: [ "textbox-prompt-colon", dummy, "prompt"];
}
dummy {
background-color: transparent;
}
textbox-prompt-colon {
enabled: true;
expand: false;
str: "";
padding: 10px 14px;
border-radius: 4px;
background-color: @urgent;
text-color: @background;
}
prompt {
enabled: true;
padding: 10px;
border-radius: 4px;
background-color: @active;
text-color: @background;
}
/*****----- Message -----*****/
message {
enabled: true;
margin: 0px;
padding: 10px;
border: 0px solid;
border-radius: 4px;
border-color: @selected;
background-color: @background-alt;
text-color: @foreground;
}
textbox {
background-color: inherit;
text-color: inherit;
vertical-align: 0.5;
horizontal-align: 0.5;
placeholder-color: @foreground;
blink: true;
markup: true;
}
error-message {
padding: 10px;
border: 0px solid;
border-radius: 0px;
border-color: @selected;
background-color: @background;
text-color: @foreground;
}
/*****----- Listview -----*****/
listview {
enabled: true;
columns: 5;
lines: 1;
cycle: true;
dynamic: true;
scrollbar: false;
layout: vertical;
reverse: false;
fixed-height: true;
fixed-columns: true;
spacing: 10px;
margin: 0px;
padding: 0px;
border: 0px solid;
border-radius: 0px;
border-color: @selected;
background-color: transparent;
text-color: @foreground;
cursor: "default";
}
/*****----- Elements -----*****/
element {
enabled: true;
spacing: 0px;
margin: 0px;
padding: 10px;
border: 0px solid;
border-radius: 4px;
border-color: @selected;
background-color: @background-alt;
text-color: @foreground;
cursor: pointer;
}
element-text {
background-color: transparent;
text-color: inherit;
cursor: inherit;
vertical-align: 0.5;
horizontal-align: 0.5;
}
element selected.normal {
border: 0px 2px 0px 2px;
border-radius: 4px;
background-color: var(selected);
text-color: var(background);
}

44
.config/rofi/powermenu.sh Executable file
View File

@@ -0,0 +1,44 @@
#!/usr/bin/env sh
ROFI_CONFIG_DIR="$XDG_CONFIG_HOME/rofi/"
UPTIME="`uptime -p | sed -e 's/up //g'`"
SHUTDOWN=""
RESTART=""
LOCK=""
LOGOUT=""
WINDOWS=""
rofi_cmd(){
echo -e "$SHUTDOWN\n$WINDOWS\n$RESTART\n$LOGOUT\n$LOCK" | \
rofi -dmenu \
-p "Power" \
-mesg "Uptime: $UPTIME" \
-theme ${ROFI_CONFIG_DIR}/powermenu.rasi
}
selection=$(rofi_cmd)
case ${selection} in
$SHUTDOWN)
systemctl poweroff
;;
$RESTART)
systemctl reboot
;;
$LOCK)
# TODO
;;
$LOGOUT)
if [[ "$XDG_CURRENT_DESKTOP" == 'Hyprland' ]]; then
hyprctl dispatch exit
fi
;;
$WINDOWS)
# TODO
# grub-set-default
;;
esac

69
.config/waybar/config Normal file
View File

@@ -0,0 +1,69 @@
{
"height": 30, // Waybar height (to be removed for auto height)
"spacing": 4, // Gaps between modules (4px)
"modules-left": ["wlr/workspaces"],
"modules-center": [],
"modules-right": ["custom/playerctl", "idle_inhibitor", "pulseaudio", "clock", "tray","custom/swaync"],
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
},
"pulseaudio": {
"scroll-step": 5,
"format": "{volume}% {icon} {format_source}",
"format-muted": " {format_source}",
"format-source": "",
"format-source-muted": "",
"format-icons": {
"default": ["", "", ""]
},
"on-click-middle": "pavucontrol",
"on-click":"$XDG_CONFIG_HOME/waybar/mute-toggle.sh",
"tooltip":false,
"max-volume":150
},
"custom/playerctl": {
"format": "{}",
"on-click":"playerctl --player=spotify,%any play-pause",
"on-click-right":"playerctl --player=spotify,%any next",
"on-scroll-up":"playerctl --player=spotify,%any volume 0.05+",
"on-scroll-down":"playerctl --player=spotify,%any volume 0.05-",
"exec": "playerctl --player=spotify,%any -f '{{title}} - {{artist}}' metadata -F 2>/dev/null",
"max-length":50,
"tooltip":false
},
"custom/swaync":{
"tooltip": false,
"format": "{icon}",
"format-icons": {
"notification": "<span foreground='red'><sup></sup></span>",
"none": "",
"dnd-notification": "<span foreground='red'><sup></sup></span>",
"dnd-none": "",
"inhibited-notification": "<span foreground='red'><sup></sup></span>",
"inhibited-none": "",
"dnd-inhibited-notification": "<span foreground='red'><sup></sup></span>",
"dnd-inhibited-none": ""
},
"return-type": "json",
"exec-if": "which swaync-client",
"exec": "swaync-client -swb",
"on-click": "swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
}
}
// vim:set filetype=jsonc :

11
.config/waybar/mute-toggle.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env sh
wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
if pactl get-source-mute @DEFAULT_SOURCE@ | grep yes; then
# Muted
mpv "$XDG_CONFIG_HOME/waybar/mute.wav" --volume=60
else
# Not muted
mpv "$XDG_CONFIG_HOME/waybar/unmute.wav" --volume=60
fi

BIN
.config/waybar/mute.wav Normal file

Binary file not shown.

296
.config/waybar/style.css Normal file
View File

@@ -0,0 +1,296 @@
* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: FontAwesome, Roboto, Helvetica, Arial, sans-serif;
font-size: 13px;
}
window#waybar {
background-color: rgba(43, 48, 59, 0.5);
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
color: #ffffff;
transition-property: background-color;
transition-duration: .5s;
}
window#waybar.hidden {
opacity: 0.2;
}
/*
window#waybar.empty {
background-color: transparent;
}
window#waybar.solo {
background-color: #FFFFFF;
}
*/
window#waybar.termite {
background-color: #3F3F3F;
}
window#waybar.chromium {
background-color: #000000;
border: none;
}
button {
/* Use box-shadow instead of border so the text isn't offset */
box-shadow: inset 0 -3px transparent;
/* Avoid rounded borders under each button name */
border: none;
border-radius: 0;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
button:hover {
background: inherit;
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button {
padding: 0 5px;
background-color: transparent;
color: #ffffff;
}
#workspaces button:hover {
background: rgba(0, 0, 0, 0.2);
}
#workspaces button.focused {
background-color: #64727D;
box-shadow: inset 0 -3px #ffffff;
}
#workspaces button.urgent {
background-color: #eb4d4b;
}
#mode {
background-color: #64727D;
border-bottom: 3px solid #ffffff;
}
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad,
#mpd {
padding: 0 10px;
color: #ffffff;
}
#window,
#workspaces {
margin: 0 4px;
}
/* If workspaces is the leftmost module, omit left margin */
.modules-left > widget:first-child > #workspaces {
margin-left: 0;
}
/* If workspaces is the rightmost module, omit right margin */
.modules-right > widget:last-child > #workspaces {
margin-right: 0;
}
#clock {
background-color: #64727D;
}
#battery {
background-color: #ffffff;
color: #000000;
}
#battery.charging, #battery.plugged {
color: #ffffff;
background-color: #26A65B;
}
@keyframes blink {
to {
background-color: #ffffff;
color: #000000;
}
}
#battery.critical:not(.charging) {
background-color: #f53c3c;
color: #ffffff;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
label:focus {
background-color: #000000;
}
#cpu {
background-color: #2ecc71;
color: #000000;
}
#memory {
background-color: #9b59b6;
}
#disk {
background-color: #964B00;
}
#backlight {
background-color: #90b1b1;
}
#network {
background-color: #2980b9;
}
#network.disconnected {
background-color: #f53c3c;
}
#pulseaudio {
background-color: #f1c40f;
color: #000000;
}
#pulseaudio.muted {
background-color: #90b1b1;
color: #2a5c45;
}
#wireplumber {
background-color: #fff0f5;
color: #000000;
}
#wireplumber.muted {
background-color: #f53c3c;
}
#custom-media {
background-color: #66cc99;
color: #2a5c45;
min-width: 100px;
}
#custom-media.custom-spotify {
background-color: #66cc99;
}
#custom-media.custom-vlc {
background-color: #ffa000;
}
#temperature {
background-color: #f0932b;
}
#temperature.critical {
background-color: #eb4d4b;
}
#tray {
background-color: #2980b9;
}
#tray > .passive {
-gtk-icon-effect: dim;
}
#tray > .needs-attention {
-gtk-icon-effect: highlight;
background-color: #eb4d4b;
}
#idle_inhibitor {
background-color: #2d3436;
}
#idle_inhibitor.activated {
background-color: #ecf0f1;
color: #2d3436;
}
#mpd {
background-color: #66cc99;
color: #2a5c45;
}
#mpd.disconnected {
background-color: #f53c3c;
}
#mpd.stopped {
background-color: #90b1b1;
}
#mpd.paused {
background-color: #51a37a;
}
#language {
background: #00b093;
color: #740864;
padding: 0 5px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state {
background: #97e1ad;
color: #000000;
padding: 0 0px;
margin: 0 5px;
min-width: 16px;
}
#keyboard-state > label {
padding: 0 5px;
}
#keyboard-state > label.locked {
background: rgba(0, 0, 0, 0.2);
}
#scratchpad {
background: rgba(0, 0, 0, 0.2);
}
#scratchpad.empty {
background-color: transparent;
}
#custom-playerctl {
padding: 0 10px;
background-color: #1DB954; /*Spotify green*/
}
#custom-swaync {
font-family: "NotoSansMono Nerd Font";
padding: 0 10px;
color: #ffffff;
font-size: 17px;
}
#workspaces button.active{
background-color: #4B4952;
}

BIN
.config/waybar/unmute.wav Normal file

Binary file not shown.

View File

@@ -9,13 +9,14 @@ export XDG_CACHE_HOME="$HOME/.cache"
export XDG_STATE_HOME="$HOME/.local/state" export XDG_STATE_HOME="$HOME/.local/state"
# XDG_DESKTOP_DIR="$HOME/desktop" # XDG_DESKTOP_DIR="$HOME/desktop"
# XDG_DOCUMENTS_DIR="$HOME/documents" XDG_DOCUMENTS_DIR="$HOME/doc"
export XDG_DOWNLOAD_DIR="$HOME/downloads" export XDG_DOWNLOAD_DIR="$HOME/downloads"
# XDG_MUSIC_DIR="$HOME/music" export XDG_MUSIC_DIR="$HOME/music"
# XDG_PICTURES_DIR="$HOME/pictures" # XDG_PICTURES_DIR="$HOME/pictures"
# XDG_PUBLICSHARE_DIR="$HOME/public" # XDG_PUBLICSHARE_DIR="$HOME/public"
# XDG_TEMPLATES_DIR="$HOME/templates" # XDG_TEMPLATES_DIR="$HOME/templates"
# XDG_VIDEOS_DIR="$HOME/videos" # XDG_VIDEOS_DIR="$HOME/videos"
export XDG_DATA_DIRS="$XDG_DATA_HOME/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/"
export GOPATH="$XDG_DATA_HOME/go" export GOPATH="$XDG_DATA_HOME/go"
export VSCODE_EXTENSIONS="$XDG_DATA_HOME/vscode/extensions" export VSCODE_EXTENSIONS="$XDG_DATA_HOME/vscode/extensions"

30
.zshrc
View File

@@ -22,7 +22,7 @@
# - pkgfile # - pkgfile
# - trash-cli (with gvfs) # - trash-cli (with gvfs)
export PATH=$HOME/.local/bin:$HOME/.dotnet/tools:$XDG_DATA_HOME/npm_global/bin:$XDG_DATA_HOME/npm_global/bin:$XDG_DATA_HOME/cargo/bin:$PATH export PATH=$HOME/.local/bin:$HOME/.dotnet/tools:$XDG_DATA_HOME/npm_global/bin:$XDG_DATA_HOME/cargo/bin:$PATH
[[ $- != *i* ]] && return [[ $- != *i* ]] && return
[ -n $SSH_CONNECTION ] && source ~/.profile [ -n $SSH_CONNECTION ] && source ~/.profile
@@ -40,8 +40,8 @@ if [ -z $SSH_CONNECTION ]; then
fi fi
fi fi
export ZSH="/usr/share/oh-my-zsh" ZSH="/usr/share/oh-my-zsh"
export HISTFILE="$XDG_CACHE_HOME/zsh_history" HISTFILE="$XDG_CACHE_HOME/zsh_history"
if [[ -n $SSH_CONNECTION ]]; then if [[ -n $SSH_CONNECTION ]]; then
ZSH_THEME="gallois" ZSH_THEME="gallois"
@@ -54,27 +54,26 @@ else
fi fi
# wal subshell # wal subshell
(cat ~/.cache/wal/sequences &) #(cat ~/.cache/wal/sequences &)
DISABLE_UPDATE_PROMPT=true DISABLE_UPDATE_PROMPT=true
DISABLE_AUTO_UPDATE=true DISABLE_AUTO_UPDATE=true
ZSH_CACHE_DIR="$XDG_CACHE_HOME/oh-my-zsh" # mkdir ~/.cache/oh-my-zsh ZSH_CACHE_DIR="$XDG_CACHE_HOME/oh-my-zsh" # mkdir ~/.cache/oh-my-zsh
_Z_DATA="$XDG_CACHE_HOME/z" _Z_DATA="$XDG_CACHE_HOME/z"
ZSH_COMPDUMP=$ZSH/cache/.zcompdump-$HOST
plugins=( plugins=(
git git
last-working-dir last-working-dir
colored-man-pages
extract extract
z z
) )
autoload -U compinit
# start oh my zsh # start oh my zsh
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
autoload -U compinit -d "$XDG_CACHE_HOME/zcompdump-$ZSH_VERSION"
# Sytax highlight # Sytax highlight
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
@@ -82,10 +81,12 @@ source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zs
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
# command not found # command not found
source /usr/share/doc/pkgfile/command-not-found.zsh source /usr/share/doc/pkgfile/command-not-found.zsh # dont forget to run pkgfile -u
# Variables # Variables
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
# ZSH percent fix # ZSH percent fix
export PROMPT_EOL_MARK="" export PROMPT_EOL_MARK=""
@@ -93,10 +94,6 @@ export PROMPT_EOL_MARK=""
export FZF_DEFAULT_COMMAND="fd --type file --color=always" export FZF_DEFAULT_COMMAND="fd --type file --color=always"
export FZF_DEFAULT_OPTS="--ansi" export FZF_DEFAULT_OPTS="--ansi"
# nvm
[ -z "$NVM_DIR" ] && export NVM_DIR="$XDG_CACHE_HOME/nvm"
alias nvm-init="source /usr/share/nvm/nvm.sh;source /usr/share/nvm/install-nvm-exec"
# Aliases # Aliases
alias vim="nvim" alias vim="nvim"
alias sudo='sudo ' alias sudo='sudo '
@@ -105,20 +102,19 @@ alias please='sudo '
[ -z $SSH_CONNECTION ] && alias ls='exa --icons' [ -z $SSH_CONNECTION ] && alias ls='exa --icons'
alias svim='sudo -E nvim' alias svim='sudo -E nvim'
alias xclip='xclip -selection "clipboard"'
alias mixer='ncpamixer'
alias dotfiles="git --git-dir=$XDG_DATA_HOME/dotfiles-remastered --work-tree=$HOME" # dotfile config --local status.showUntrackedFiles no alias dotfiles="git --git-dir=$XDG_DATA_HOME/dotfiles-remastered --work-tree=$HOME" # dotfile config --local status.showUntrackedFiles no
alias open="xdg-open" alias open="xdg-open"
alias mixer="pulsemixer" alias mixer="pulsemixer"
alias yt-dl-audio="youtube-dl --extract-audio --audio-format mp3 -o '%(title)s.%(ext)s'" alias yt-dl-audio="yt-dlp --extract-audio --audio-format mp3 -o '%(title)s.%(ext)s'"
alias rm="trash" alias rm="trash"
alias modx="chmod +x" alias modx="chmod +x"
alias mv="mv -iv" alias mv="mv -iv"
alias cp="cp -riv" alias cp="cp -riv"
alias mkdir="mkdir -pv" alias mkdir="mkdir -pv"
alias ssh="TERM=xterm-256color ssh"
alias yeet="sudo pacman -Rns" alias yeet="sudo pacman -Rns"
alias ip="ip -c=auto" alias ip="ip -c=auto"
alias syu="sudo pacman -Syu" alias syu="sudo pacman -Syu"
alias virsh="virsh -c qemu:///system" alias virsh="virsh -c qemu:///system"
alias k="kubectl"
alias ssh="TERM=xterm-256color ssh"