Compare commits
2 Commits
30c02876e8
...
632694bbcd
Author | SHA1 | Date | |
---|---|---|---|
632694bbcd
|
|||
2569e705ed
|
25
.config/dunst/dunstrc
Normal file
25
.config/dunst/dunstrc
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
[global]
|
||||||
|
font = Ubuntu Nerd Font 10
|
||||||
|
corner_radius = 10
|
||||||
|
follow = mouse
|
||||||
|
origin = top-center
|
||||||
|
offset = 0x0
|
||||||
|
frame_width = 1
|
||||||
|
frame_color = "#232323"
|
||||||
|
format = "<big>%s</big>\n<span color='#ffffff7f'>%b</span>"
|
||||||
|
|
||||||
|
[urgency_low]
|
||||||
|
background = "#232323"
|
||||||
|
foreground = "#ffffff"
|
||||||
|
timeout = 10
|
||||||
|
|
||||||
|
[urgency_normal]
|
||||||
|
background = "#232323"
|
||||||
|
foreground = "#ffffff"
|
||||||
|
timeout = 10
|
||||||
|
|
||||||
|
[urgency_critical]
|
||||||
|
background = "#d64e4e"
|
||||||
|
foreground = "#f0e0e0"
|
||||||
|
frame_color = "#d64e4e"
|
||||||
|
timeout = 0
|
@ -1,13 +1,8 @@
|
|||||||
exec-once = dunst
|
|
||||||
exec-once = $statusbar
|
exec-once = $statusbar
|
||||||
exec-once = waypaper --restore
|
exec-once = waypaper --restore
|
||||||
|
exec-once = dunst
|
||||||
exec-once = wl-paste --watch cliphist store
|
exec-once = wl-paste --watch cliphist store
|
||||||
exec-once = dbus-update-activation-environment --all
|
|
||||||
exec-once = gnome-keyring-daemon --start --components=pkcs11,secrets,ssh
|
|
||||||
|
|
||||||
exec-once = [workspace 3 silent] $browser
|
exec-once = [workspace 1 silent] $browser
|
||||||
exec-once = [workspace 4 silent] $terminal
|
|
||||||
exec-once = [workspace 5 silent] $terminal
|
|
||||||
exec-once = [workspace 6 silent] $terminal
|
|
||||||
exec-once = [workspace 7 silent] $files
|
exec-once = [workspace 7 silent] $files
|
||||||
exec-once = [workspace 9 silent] $email
|
exec-once = [workspace 9 silent] $email
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Some default env vars.
|
# Cursor
|
||||||
env = XCURSOR_SIZE,24
|
env = XCURSOR_SIZE,24
|
||||||
env = TERMINAL,$terminal
|
env = WLR_NO_HARDWARE_CURSORS,1
|
||||||
|
|
||||||
# Firefox
|
# Firefox
|
||||||
env = MOZ_ENABLE_WAYLAND,1
|
env = MOZ_ENABLE_WAYLAND,1
|
||||||
@ -9,7 +9,10 @@ env = MOZ_ENABLE_WAYLAND,1
|
|||||||
env = LIBVA_DRIVER_NAME,nvidia
|
env = LIBVA_DRIVER_NAME,nvidia
|
||||||
env = GBM_BACKEND,nvidia-drm
|
env = GBM_BACKEND,nvidia-drm
|
||||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||||
env = WLR_NO_HARDWARE_CURSORS,1
|
|
||||||
|
# Programs
|
||||||
|
env = EDITOR,$editor
|
||||||
|
env = TERMINAL,$terminal
|
||||||
|
|
||||||
# Qt
|
# Qt
|
||||||
env = QT_QPA_PLATFORM,wayland
|
env = QT_QPA_PLATFORM,wayland
|
||||||
@ -22,4 +25,3 @@ env = SSH_AUTH_SOCK,$XDG_RUNTIME_DIR/gcr/ssh
|
|||||||
# Wayland
|
# Wayland
|
||||||
env = XDG_SESSION_TYPE,wayland
|
env = XDG_SESSION_TYPE,wayland
|
||||||
env = GDK_BACKEND,wayland
|
env = GDK_BACKEND,wayland
|
||||||
env = SDL_VIDEODRIVER,wayland
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
general {
|
general {
|
||||||
gaps_in = 5
|
gaps_in = 5
|
||||||
gaps_out = 10
|
gaps_out = 20
|
||||||
border_size = 2
|
border_size = 2
|
||||||
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
|
||||||
col.inactive_border = rgba(595959aa)
|
col.inactive_border = rgba(595959aa)
|
||||||
|
@ -5,8 +5,8 @@ $movews = CTRL ALT
|
|||||||
bind = $leader, T, exec, $terminal
|
bind = $leader, T, exec, $terminal
|
||||||
bind = $leader, B, exec, $browser
|
bind = $leader, B, exec, $browser
|
||||||
bind = $leader, E, exec, $files
|
bind = $leader, E, exec, $files
|
||||||
bind = $leader, Super_L, exec, $menu
|
|
||||||
bind = $leader, L, exec, $lockscreen
|
bind = $leader, L, exec, $lockscreen
|
||||||
|
bind = $leader, Space, exec, $menu
|
||||||
bind = $leader, F12, exec, $logout
|
bind = $leader, F12, exec, $logout
|
||||||
bind = , Print, exec, $screenshot
|
bind = , Print, exec, $screenshot
|
||||||
|
|
||||||
@ -14,8 +14,8 @@ bind = , Print, exec, $screenshot
|
|||||||
bind = $leader, C, killactive,
|
bind = $leader, C, killactive,
|
||||||
bind = $leader, F, fullscreen,
|
bind = $leader, F, fullscreen,
|
||||||
bind = $leader, V, togglefloating,
|
bind = $leader, V, togglefloating,
|
||||||
bind = $leader, P, pseudo, # dwindle
|
bind = $leader, P, pseudo,
|
||||||
bind = $leader, J, togglesplit, # dwindle
|
bind = $leader, J, togglesplit,
|
||||||
bind = $leader, M, exit,
|
bind = $leader, M, exit,
|
||||||
|
|
||||||
# Move focus with leader + arrow keys
|
# Move focus with leader + arrow keys
|
||||||
|
@ -4,7 +4,7 @@ $email = geary
|
|||||||
$files = nautilus
|
$files = nautilus
|
||||||
$logout = wlogout
|
$logout = wlogout
|
||||||
$lockscreen = swaylock
|
$lockscreen = swaylock
|
||||||
$menu = ~/.bin/toggle-fuzzel
|
$menu = pkill fuzzel || fuzzel
|
||||||
$screenshot = grim -g "$(slurp -d)" - | wl-copy
|
$screenshot = grim -g "$(slurp -d)" - | wl-copy
|
||||||
$statusbar = ~/.bin/launch-waybar
|
$statusbar = ~/.bin/launch-waybar
|
||||||
$terminal = alacritty
|
$terminal = alacritty
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
windowrulev2 = tile, class:.*
|
|
||||||
windowrulev2 = suppressevent maximize, class:.*
|
windowrulev2 = suppressevent maximize, class:.*
|
||||||
|
#windowrulev2 = tile, class:.*
|
||||||
|
@ -1,51 +0,0 @@
|
|||||||
# Git
|
|
||||||
alias g = git
|
|
||||||
alias gc = git clone
|
|
||||||
alias gd = git diff
|
|
||||||
alias gl = git log --oneline
|
|
||||||
alias gp = git pull
|
|
||||||
alias gs = git status
|
|
||||||
alias home = git $"--git-dir=($env.HOME)/.home/" $"--work-tree=($env.HOME)"
|
|
||||||
|
|
||||||
# Go
|
|
||||||
alias gob = go build -v
|
|
||||||
alias got = go test -v
|
|
||||||
|
|
||||||
# Hyperfine
|
|
||||||
alias bench = hyperfine --shell=none
|
|
||||||
|
|
||||||
# Neovim
|
|
||||||
alias e = nvim
|
|
||||||
alias n = nvim
|
|
||||||
|
|
||||||
# Pacman
|
|
||||||
alias p = pacman
|
|
||||||
alias pi = sudo pacman -S
|
|
||||||
alias pr = sudo pacman -Rs
|
|
||||||
alias pu = sudo pacman -Syu
|
|
||||||
|
|
||||||
# Tmux
|
|
||||||
alias t = tmux
|
|
||||||
alias ta = tmux attach
|
|
||||||
alias td = tmux detach
|
|
||||||
alias tl = tmux ls
|
|
||||||
alias tk = tmux kill-server
|
|
||||||
|
|
||||||
# Systemctl
|
|
||||||
alias s = systemctl
|
|
||||||
alias s+ = systemctl start
|
|
||||||
alias s- = systemctl stop
|
|
||||||
alias sl = systemctl list-units --type=service --state=running
|
|
||||||
alias sld = systemctl list-unit-files --type=service --state=disabled
|
|
||||||
alias sle = systemctl list-unit-files --type=service --state=enabled
|
|
||||||
alias slt = systemctl list-timers
|
|
||||||
alias ss = systemctl status
|
|
||||||
|
|
||||||
# ...
|
|
||||||
alias cdp = cd ~/projects
|
|
||||||
alias cls = clear
|
|
||||||
alias hex = hexdump -C
|
|
||||||
alias ll = ls -la
|
|
||||||
|
|
||||||
# Close all windows
|
|
||||||
def closeall [] { wmctrl -l | awk '{print $1}' | xargs -rn1 wmctrl -ic }
|
|
@ -1,7 +0,0 @@
|
|||||||
source ~/.config/nushell/prompt.nu
|
|
||||||
source ~/.config/nushell/alias.nu
|
|
||||||
|
|
||||||
$env.config.show_banner = false
|
|
||||||
$env.config.history.file_format = "sqlite"
|
|
||||||
$env.config.history.isolation = true
|
|
||||||
$env.config.hooks.pre_prompt = [{print --no-newline $"(ansi title)(whoami)@(hostname)(ansi st)"}]
|
|
@ -1,3 +0,0 @@
|
|||||||
$env.EDITOR = "nvim"
|
|
||||||
$env.GOPATH = $"($env.HOME)/.go"
|
|
||||||
$env.LANG = "en_US.UTF-8"
|
|
@ -1,27 +0,0 @@
|
|||||||
def prompt [] {
|
|
||||||
mut home = ""
|
|
||||||
|
|
||||||
try {
|
|
||||||
if $nu.os-info.name == "windows" {
|
|
||||||
$home = $env.USERPROFILE
|
|
||||||
} else {
|
|
||||||
$home = $env.HOME
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
let dir = ([
|
|
||||||
($env.PWD | str substring 0..($home | str length) | str replace $home "~"),
|
|
||||||
($env.PWD | str substring ($home | str length)..)
|
|
||||||
] | str join)
|
|
||||||
|
|
||||||
let path_color = (if (is-admin) { ansi red_bold } else { ansi green_bold })
|
|
||||||
let separator_color = (if (is-admin) { ansi light_red_bold } else { ansi light_green_bold })
|
|
||||||
let path_segment = $"($path_color)($dir)"
|
|
||||||
|
|
||||||
$path_segment | str replace --all (char path_sep) $"($separator_color)/($path_color)"
|
|
||||||
}
|
|
||||||
|
|
||||||
$env.PROMPT_COMMAND = {|| prompt}
|
|
||||||
$env.PROMPT_COMMAND_RIGHT = ""
|
|
||||||
$env.PROMPT_INDICATOR = " "
|
|
||||||
$env.PROMPT_MULTILINE_INDICATOR = {|| "::: " }
|
|
@ -2,22 +2,32 @@
|
|||||||
"layer": "top",
|
"layer": "top",
|
||||||
"modules-left": ["custom/os","hyprland/workspaces"],
|
"modules-left": ["custom/os","hyprland/workspaces"],
|
||||||
"modules-center": ["clock"],
|
"modules-center": ["clock"],
|
||||||
"modules-right": ["cpu","memory","disk","network","custom/power"],
|
"modules-right": ["cpu","custom/gpu","memory","disk","network","custom/power"],
|
||||||
"clock": {
|
"clock": {
|
||||||
"interval": 60,
|
"interval": 60,
|
||||||
"format": "{:%a %H : %M}",
|
"format": "{:%H : %M}",
|
||||||
"tooltip-format": "{:%Y-%m-%d}"
|
"tooltip-format": "{:%A, %Y-%m-%d}",
|
||||||
|
"on-click": "date -u +'%Y-%m-%dT%H:%M:%SZ' | wl-copy"
|
||||||
},
|
},
|
||||||
"cpu": {
|
"cpu": {
|
||||||
"interval": 2,
|
"interval": 2,
|
||||||
"format": "{icon} {usage}%",
|
"format": "{icon} {usage}%",
|
||||||
"format-icons": ["", "", ""],
|
"format-icons": ["", "", ""],
|
||||||
"max-length": 10
|
"max-length": 10,
|
||||||
|
"on-click": "$TERMINAL -e btop",
|
||||||
|
},
|
||||||
|
"custom/gpu": {
|
||||||
|
"exec": "nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader,nounits",
|
||||||
|
"format": " {}%",
|
||||||
|
"return-type": "",
|
||||||
|
"interval": 2,
|
||||||
|
"on-click": "$TERMINAL -e nvtop",
|
||||||
},
|
},
|
||||||
"memory": {
|
"memory": {
|
||||||
"interval": 2,
|
"interval": 2,
|
||||||
"format": " {used} GiB",
|
"format": " {used} GiB",
|
||||||
"max-length": 10
|
"max-length": 10,
|
||||||
|
"on-click": "$TERMINAL -e btop",
|
||||||
},
|
},
|
||||||
"network": {
|
"network": {
|
||||||
"interval": 2,
|
"interval": 2,
|
||||||
@ -29,12 +39,14 @@
|
|||||||
"tooltip-format-wifi": " {essid} ({signalStrength}%)",
|
"tooltip-format-wifi": " {essid} ({signalStrength}%)",
|
||||||
"tooltip-format-ethernet": " {ifname}",
|
"tooltip-format-ethernet": " {ifname}",
|
||||||
"tooltip-format-disconnected": "",
|
"tooltip-format-disconnected": "",
|
||||||
"max-length": 50
|
"max-length": 50,
|
||||||
|
"on-click": "$TERMINAL -e nethogs",
|
||||||
},
|
},
|
||||||
"disk": {
|
"disk": {
|
||||||
"interval": 30,
|
"interval": 30,
|
||||||
"format": " {used}",
|
"format": " {used}",
|
||||||
"path": "/"
|
"path": "/",
|
||||||
|
"on-click": "$TERMINAL -e dua i",
|
||||||
},
|
},
|
||||||
"mpris": {
|
"mpris": {
|
||||||
"format": "{player_icon} {title}",
|
"format": "{player_icon} {title}",
|
||||||
@ -53,7 +65,7 @@
|
|||||||
"format-muted": "",
|
"format-muted": "",
|
||||||
"scroll-step": 5,
|
"scroll-step": 5,
|
||||||
"on-click": "helvum",
|
"on-click": "helvum",
|
||||||
"format-icons": ["", "", ""]
|
"format-icons": ["", "", ""],
|
||||||
},
|
},
|
||||||
"hyprland/workspaces": {
|
"hyprland/workspaces": {
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
@ -66,11 +78,11 @@
|
|||||||
"active": "",
|
"active": "",
|
||||||
"default": ""
|
"default": ""
|
||||||
},
|
},
|
||||||
"sort-by-number": true
|
"sort-by-number": true,
|
||||||
},
|
},
|
||||||
"custom/os":{
|
"custom/os":{
|
||||||
"format": "",
|
"format": "",
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"on-click": "alacritty --hold -e neofetch",
|
"on-click": "$TERMINAL --hold -e neofetch",
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
@ -22,23 +22,27 @@ window#waybar.hidden {
|
|||||||
#network,
|
#network,
|
||||||
#wireplumber,
|
#wireplumber,
|
||||||
#workspaces,
|
#workspaces,
|
||||||
#custom-os {
|
#custom-os,
|
||||||
|
#custom-gpu {
|
||||||
color: @fg;
|
color: @fg;
|
||||||
background: @bg;
|
background: @bg;
|
||||||
margin: 0 4px;
|
margin: 0 8px;
|
||||||
transition: none;
|
transition: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
#workspaces button {
|
||||||
padding: 0px 5px;
|
padding: 0px 5px;
|
||||||
color: rgba(255, 255, 255, 0.5);
|
color: rgba(255, 255, 255, 0.5);
|
||||||
|
background: transparent;
|
||||||
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#workspaces button:hover,
|
||||||
#workspaces button.active {
|
#workspaces button.active {
|
||||||
color: rgba(255, 255, 255, 1.0);
|
color: rgba(255, 255, 255, 1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-os {
|
#custom-os {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
color: #89DCEB;
|
color: rgb(137, 220, 235);
|
||||||
}
|
}
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -8,11 +8,11 @@
|
|||||||
!/.config
|
!/.config
|
||||||
/.config/*
|
/.config/*
|
||||||
!/.config/alacritty
|
!/.config/alacritty
|
||||||
|
!/.config/dunst
|
||||||
!/.config/fish
|
!/.config/fish
|
||||||
!/.config/fuzzel
|
!/.config/fuzzel
|
||||||
!/.config/htop
|
!/.config/htop
|
||||||
!/.config/hypr
|
!/.config/hypr
|
||||||
!/.config/nushell
|
|
||||||
!/.config/nvim
|
!/.config/nvim
|
||||||
!/.config/swaylock
|
!/.config/swaylock
|
||||||
!/.config/tmux
|
!/.config/tmux
|
||||||
|
Reference in New Issue
Block a user