This commit is contained in:
Clay Gomera 2023-02-22 16:46:06 -04:00
parent ddfda07f01
commit 6f97ae2d33
9 changed files with 154 additions and 97 deletions

View file

@ -10,21 +10,15 @@
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ] if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]
then then
#startx -- vt1 -keeptty &>/dev/null #startx -- vt1 -keeptty &>/dev/null
export MOZ_ENABLE_WAYLAND=1
sh "./.local/bin/hyprland_session" sh "./.local/bin/hyprland_session"
logout logout
fi fi
### ENVIRONMENT VARIABLES ### ENVIRONMENT VARIABLES
export EDITOR="lvim" # $EDITOR use lunarvim in terminal export EDITOR="lvim" # $EDITOR use lunarvim in terminal
export VISUAL="neovide --neovim-bin ./.local/bin/lvim" # $VISUAL use neovide for lunarvim in GUI
export XDG_DATA_HOME="${XDG_DATA_HOME:="$HOME/.local/share"}" export XDG_DATA_HOME="${XDG_DATA_HOME:="$HOME/.local/share"}"
export XDG_CACHE_HOME="${XDG_CACHE_HOME:="$HOME/.cache"}" export XDG_CACHE_HOME="${XDG_CACHE_HOME:="$HOME/.cache"}"
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:="$HOME/.config"}" export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:="$HOME/.config"}"
export XDG_CURRENT_DESKTOP=hyprland
export XDG_SESSION_TYPE=wayland
export QT_QPA_PLATFORMTHEME=qt5ct
export QT_QPA_PLATFORM=wayland
### BASHRC ### BASHRC
source "$HOME"/.bashrc # Load the bashrc source "$HOME"/.bashrc # Load the bashrc

View file

@ -14,8 +14,8 @@ set -U fish_user_paths $HOME/.bin $HOME/.local/bin $HOME/.config/emacs/bin $HOM
### EXPORT ### ### EXPORT ###
set fish_greeting # Supresses fish's intro message set fish_greeting # Supresses fish's intro message
set TERM "xterm-256color" # Sets the terminal type set TERM "xterm-256color" # Sets the terminal type
set EDITOR "lvim" # $EDITOR use lvim in terminal set EDITOR "./.local/bin/lvim" # $EDITOR use lvim in terminal
set VISUAL "neovide --neovim-bin ./.local/bin/lvim" # $VISUAL use neovide for lvim in GUI mode set VISUAL "wezterm start --class editor ./.local/bin/lvim" # $VISUAL open wezterm with lvim
### SET BAT AS MANPAGER ### SET BAT AS MANPAGER
set -x MANPAGER "sh -c 'col -bx | bat -l man -p'" set -x MANPAGER "sh -c 'col -bx | bat -l man -p'"

View file

@ -0,0 +1,11 @@
[Filechooser Settings]
LocationMode=path-bar
ShowHidden=false
ShowSizeColumn=true
GeometryX=0
GeometryY=0
GeometryWidth=1000
GeometryHeight=1000
SortColumn=name
SortOrder=ascending
StartupMode=recent

View file

@ -1,7 +1,7 @@
[Settings] [Settings]
gtk-theme-name=gruvbox-dark-gtk gtk-theme-name=gruvbox-dark-gtk
gtk-icon-theme-name=oomox-gruvbox-dark gtk-icon-theme-name=gruvbox-dark-icons-gtk
gtk-font-name=Mononoki Nerd Font 10 gtk-font-name=mononoki Nerd Font 10
gtk-cursor-theme-name=Simp1e-Gruvbox-Dark gtk-cursor-theme-name=Simp1e-Gruvbox-Dark
gtk-cursor-theme-size=24 gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_BOTH gtk-toolbar-style=GTK_TOOLBAR_BOTH

View file

@ -4,6 +4,8 @@ exec-once /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = /usr/lib/xdg-desktop-portal exec-once = /usr/lib/xdg-desktop-portal
exec-once = /usr/lib/xdg-desktop-portal-wlr exec-once = /usr/lib/xdg-desktop-portal-wlr
exec-once = dunst --config ~/.config/dunst/dunstrc exec-once = dunst --config ~/.config/dunst/dunstrc
exec-once = wl-paste --type text --watch cliphist store #Stores only text data
exec-once = wl-paste --type image --watch cliphist store #Stores only image data
exec-once = hyprpaper exec-once = hyprpaper
exec-once = waybar exec-once = waybar
@ -165,6 +167,7 @@ bind = $supMod_SHIFT, E, exec, $HOME/.config/rofi/scripts/rofi_emoji
bind = $supMod_SHIFT, S, exec, $HOME/.config/rofi/scripts/rofi_scrot bind = $supMod_SHIFT, S, exec, $HOME/.config/rofi/scripts/rofi_scrot
bind = $supMod_$conMod_SHIFT, S, exec, $HOME/.config/rofi/scripts/rofi_scrot -s bind = $supMod_$conMod_SHIFT, S, exec, $HOME/.config/rofi/scripts/rofi_scrot -s
bind = $supMod_SHIFT, Q, exec, $HOME/.config/rofi/scripts/rofi_power bind = $supMod_SHIFT, Q, exec, $HOME/.config/rofi/scripts/rofi_power
bind = $supMod_SHIFT, C, exec, cliphist list | rofi -dmenu -p "  Clipboard " | cliphist decode | wl-copy
# Move active window to a workspace with supMod + SHIFT + [0-9] # Move active window to a workspace with supMod + SHIFT + [0-9]
bind = $supMod SHIFT, 1, movetoworkspace, 1 bind = $supMod SHIFT, 1, movetoworkspace, 1
@ -191,6 +194,13 @@ bindl=, XF86AudioRaiseVolume, exec, pamixer -i 5
bindl=, XF86AudioLowerVolume, exec, pamixer -d 5 bindl=, XF86AudioLowerVolume, exec, pamixer -d 5
bindl=, XF86AudioMute, exec, pamixer -t bindl=, XF86AudioMute, exec, pamixer -t
bindl=, XF86AudioMicMute, exec, pamixer --default-source -t bindl=, XF86AudioMicMute, exec, pamixer --default-source -t
bindl=, XF86AudioPause, exec, playerctl play-pause
bindl=, XF86AudioPlay, exec, playerctl play-pause
bindl=, XF86AudioNext, exec, playerctl next
bindl=, XF86AudioPrev, exec, playerctl previous
bindl=, XF86AudioStop, exec, playerctl stop
bindl=, XF86News, exec, wezterm start --class newsboat -- newsboat
# Brightness control # Brightness control
bindl=, XF86MonBrightnessUp, exec, light -A 10 bindl=, XF86MonBrightnessUp, exec, light -A 10

View file

@ -1,12 +1,12 @@
{ {
"position": "top", "position": "top",
"height": 28, "height": 26,
//"width": 1280, "spacing": 3,
"spacing": 0,
// Choose the order of the modules // Choose the order of the modules
"modules-left": ["wlr/workspaces"], "modules-left": ["wlr/workspaces"],
"modules-right": ["idle_inhibitor", "pulseaudio", "backlight", "battery", "network", "clock"], "modules-center": ["clock"],
"modules-right": ["idle_inhibitor", "hyprland/language", "pulseaudio", "backlight", "battery", "network"],
"wlr/workspaces": { "wlr/workspaces": {
"on-click": "activate", "on-click": "activate",
@ -15,26 +15,35 @@
"on-scroll-down": "hyprctl dispatch workspace e-1" "on-scroll-down": "hyprctl dispatch workspace e-1"
}, },
"hyprland/language": {
"format": "{}  ",
"format-en": "US",
"format-es": "ES",
"keyboard-name": "at-translated-set-2-keyboard",
"on-click": "hyprctl switchxkblayout at-translated-set-2-keyboard next"
},
"idle_inhibitor": { "idle_inhibitor": {
"format": "{icon}", "format": "{icon}",
"format-icons": { "format-icons": {
"activated": "", "activated": "",
"deactivated": "" "deactivated": "󰤄"
} }
}, },
"clock": { "clock": {
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>", "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}" "format": "󰥔 {:%H:%M}",
"format-alt": " {:%Y-%m-%d}"
}, },
"backlight": { "backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}", "format": "{percent}% {icon}",
"format-icons": ["󰃞 ", "󰃞 ", "󰃞 ", "󰃟 ", "󰃟 ", "󰃟 ", "󰃠 ", "󰃠 ", "󰃠 "] "format-icons": ["󱠃", "󱠃", "󱠃", "󱠃", "󱠃", "󱠂", "󱠂", "󱠂", "󱠂"]
}, },
"battery": { "battery": {
"states": { "states": {
// "good": 95,
"warning": 30, "warning": 30,
"critical": 15 "critical": 15
}, },
@ -42,10 +51,11 @@
"format-charging": "{capacity}% 󱐋", "format-charging": "{capacity}% 󱐋",
"format-plugged": "{capacity}% 󰚥", "format-plugged": "{capacity}% 󰚥",
"format-alt": "{time} {icon}", "format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module "format-critical": "{capacity}% {icon}",
// "format-full": "", "format-warning": "{capacity}% {icon}",
"format-icons": [" ", " ", " ", " ", " "] "format-icons": [" ", " ", " ", " ", " "]
}, },
"pulseaudio": { "pulseaudio": {
"scroll-step": 1, // %, can be a float "scroll-step": 1, // %, can be a float
"format": "{volume}% {icon} {format_source}", "format": "{volume}% {icon} {format_source}",
@ -65,6 +75,7 @@
}, },
"on-click": "wezterm start -- pulsemixer" "on-click": "wezterm start -- pulsemixer"
}, },
"network": { "network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface // "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) 󱚻 ", "format-wifi": "{essid} ({signalStrength}%) 󱚻 ",

View file

@ -1,10 +1,14 @@
* { * {
margin-top: 2.5px;
margin-bottom: 2.5px;
margin-right: 2.5px;
margin-left: 2.5px;
font-family: mononoki Nerd Font, mononoki Nerd Font Mono; font-family: mononoki Nerd Font, mononoki Nerd Font Mono;
font-size: 18px; font-size: 18px;
} }
window#waybar { window#waybar {
background-color: rgba(29, 32, 33, 0.90); background-color: rgba(29, 32, 33, 0.9);
color: #ebdbb2; color: #ebdbb2;
transition-property: background-color; transition-property: background-color;
transition-duration: .5s; transition-duration: .5s;
@ -44,12 +48,12 @@ button:hover {
} }
#workspaces button.active { #workspaces button.active {
background-color: rgba(204, 36, 29, 0.5); background-color: rgba(204, 36, 29, 0.3);
color: #ebdbb2; color: #ebdbb2;
} }
#workspaces button:hover { #workspaces button:hover {
background: rgba(29, 32, 33, 1); background: #9d0006;
} }
#workspaces button.focused { #workspaces button.focused {
@ -71,6 +75,7 @@ button:hover {
#backlight, #backlight,
#network, #network,
#pulseaudio, #pulseaudio,
#language,
#mode, #mode,
#idle_inhibitor { #idle_inhibitor {
padding: 0 10px; padding: 0 10px;
@ -93,18 +98,21 @@ button:hover {
} }
#clock { #clock {
background-color: #8f3f71; background-color: #3c3836;
color: #ebdbb2 color: #ebdbb2;
border-radius: 15px;
} }
#battery { #battery {
background-color: #79740e; background-color: #79740e;
color: #ebdbb2; color: #ebdbb2;
border-radius: 6px;
} }
#battery.charging, #battery.plugged { #battery.charging, #battery.plugged {
color: #ebdbb2; color: #ebdbb2;
background-color: #689d6a; background-color: #689d6a;
border-radius: 6px;
} }
@keyframes blink { @keyframes blink {
@ -122,6 +130,7 @@ button:hover {
animation-timing-function: linear; animation-timing-function: linear;
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-direction: alternate; animation-direction: alternate;
border-radius: 6px;
} }
label:focus { label:focus {
@ -130,40 +139,47 @@ label:focus {
#backlight { #backlight {
background-color: #b57614; background-color: #b57614;
color: #ebdbb2;
border-radius: 6px;
} }
#network { #network {
background-color: #9d0006; background-color: #9d0006;
color: #ebdbb2 color: #ebdbb2;
border-radius: 6px;
} }
#network.disconnected { #network.disconnected {
background-color: #f53c3c; background-color: #cc241d;
border-radius: 6px;
} }
#pulseaudio { #pulseaudio {
background-color: #458588; background-color: #458588;
color: #ebdbb2; color: #ebdbb2;
border-radius: 6px;
} }
#pulseaudio.muted { #pulseaudio.muted {
background-color: #90b1b1; background-color: #90b1b1;
color: #2a5c45; color: #2a5c45;
border-radius: 6px;
} }
#idle_inhibitor { #idle_inhibitor {
background-color: #d65d0e; background-color: #d65d0e;
color: #ebdbb2;
border-radius: 6px;
} }
#idle_inhibitor.activated { #idle_inhibitor.activated {
background-color: #fe8019; background-color: #fe8019;
color: #2d3436; color: #3c3836;
border-radius: 6px;
} }
#language { #language {
background: #00b093; background-color: #8f3f71;
color: #740864; color: #ebdbb2;
padding: 0 5px; border-radius: 6px;
margin: 0 5px;
min-width: 16px;
} }

View file

@ -1,10 +1,6 @@
# DO NOT EDIT! This file will be overwritten by nwg-look.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
include "/home/drk/.gtkrc-2.0.mine"
gtk-theme-name="gruvbox-dark-gtk" gtk-theme-name="gruvbox-dark-gtk"
gtk-icon-theme-name="oomox-gruvbox-dark" gtk-icon-theme-name="gruvbox-dark-icons-gtk"
gtk-font-name="Mononoki Nerd Font 10" gtk-font-name="mononoki Nerd Font 10"
gtk-cursor-theme-name="Simp1e-Gruvbox-Dark" gtk-cursor-theme-name="Simp1e-Gruvbox-Dark"
gtk-cursor-theme-size=24 gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_BOTH gtk-toolbar-style=GTK_TOOLBAR_BOTH

View file

@ -8,6 +8,12 @@ export HYPRLAND_LOG_WLR=1
# Tell XWayland to use a cursor theme # Tell XWayland to use a cursor theme
export XCURSOR_THEME=Simp1e-Gruvbox-Dark export XCURSOR_THEME=Simp1e-Gruvbox-Dark
# GTK shit
gsettings set org.gnome.desktop.interface gtk-theme 'gruvbox-dark-gtk'
gsettings set org.gnome.desktop.interface icon-theme 'gruvbox-dark-icons-gtk'
gsettings set org.gnome.desktop.interface cursor-theme 'Simp1e-Gruvbox-Dark'
gsettings set org.gnome.desktop.interface font-name 'mononoki Nerd Font'
# Set a cursor size # Set a cursor size
export XCURSOR_SIZE=16 export XCURSOR_SIZE=16
@ -17,5 +23,18 @@ export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx export XMODIFIERS=@im=fcitx
export SDL_IM_MODULE=fcitx export SDL_IM_MODULE=fcitx
export GLFW_IM_MODULE=ibus export GLFW_IM_MODULE=ibus
export XDG_CURRENT_DESKTOP=Hyprland
export XDG_SESSION_TYPE=wayland
export QT_QPA_PLATFORMTHEME=qt5ct
export MOZ_ENABLE_WAYLAND=1
export GDK_BACKEND=wayland
export WM=Hyprland
export SDL_VIDEODRIVER=wayland
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export XKB_DEFAULT_LAYOUT="us"
export EDITOR="$HOME/.local/bin/lvim"
export VISUAL="wezterm start --class editor -- $HOME/.local/bin/lvim"
export BROWSER="firefox"
export VIEWER="zathura"
exec Hyprland exec Hyprland