fixing stuff

This commit is contained in:
Clay Gomera 2023-06-20 18:34:41 -04:00
parent dd9e387336
commit ca4b8704b7
18 changed files with 1016 additions and 1224 deletions

View file

@ -1,447 +0,0 @@
## ____ __
## / __ \_________ _/ /_____
## / / / / ___/ __ `/ //_/ _ \
## / /_/ / / / /_/ / ,< / __/ Clay Gomera (Drake)
## /_____/_/ \__,_/_/|_|\___/ My custom alacritty config
##
## Set colorschemes
#######################################
## Alacritty colorschemes ##
#######################################
schemes:
### Doom One ###
doom-one: &doom-one
primary:
background: '#282c34'
foreground: '#bbc2cf'
cursor:
text: CellBackground
cursor: '#528bff'
selection:
text: CellForeground
background: '#3e4451'
normal:
black: '#1c1f24'
red: '#ff6c6b'
green: '#98be65'
yellow: '#da8548'
blue: '#51afef'
magenta: '#c678dd'
cyan: '#5699af'
white: '#202328'
bright:
black: '#5b6268'
red: '#da8548'
green: '#4db5bd'
yellow: '#ecbe7b'
blue: '#3071db' # This is 2257a0 in Doom Emacs but I lightened it.
magenta: '#a9a1e1'
cyan: '#46d9ff'
white: '#dfdfdf'
### Tokyo Night ###
tokyo-night: &tokyo-night
# Default colors
primary:
background: '#1a1b26'
foreground: '#a9b1d6'
# Normal colors
normal:
black: '#32344a'
red: '#f7768e'
green: '#9ece6a'
yellow: '#e0af68'
blue: '#34548a'
magenta: '#ad8ee6'
cyan: '#449dab'
white: '#9699a8'
# Bright colors
bright:
black: '#444b6a'
red: '#ff7a93'
green: '#b9f27c'
yellow: '#ff9e64'
blue: '#7da6ff'
magenta: '#bb9af7'
cyan: '#0db9d7'
white: '#acb0d0'
### Dracula ###
dracula: &dracula
primary:
background: '#282a36'
foreground: '#f8f8f2'
cursor:
text: CellBackground
cursor: CellForeground
vi_mode_cursor:
text: CellBackground
cursor: CellForeground
search:
matches:
foreground: '#44475a'
background: '#50fa7b'
focused_match:
foreground: '#44475a'
background: '#ffb86c'
bar:
background: '#282a36'
foreground: '#f8f8f2'
line_indicator:
foreground: None
background: None
selection:
text: CellForeground
background: '#44475a'
normal:
black: '#000000'
red: '#ff5555'
green: '#50fa7b'
yellow: '#f1fa8c'
blue: '#bd93f9'
magenta: '#ff79c6'
cyan: '#8be9fd'
white: '#bfbfbf'
bright:
black: '#4d4d4d'
red: '#ff6e67'
green: '#5af78e'
yellow: '#f4f99d'
blue: '#caa9fa'
magenta: '#ff92d0'
cyan: '#9aedfe'
white: '#e6e6e6'
dim:
black: '#14151b'
red: '#ff2222'
green: '#1ef956'
yellow: '#ebf85b'
blue: '#4d5b86'
magenta: '#ff46b0'
cyan: '#59dffc'
white: '#e6e6d1'
### Gruvbox dark ###
gruvbox-dark: &gruvbox-dark
# Default colors
primary:
# hard contrast: background = '0x1d2021'
background: '#1d2021'
# soft contrast: background = '0x32302f'
foreground: '#ebdbb2'
# Normal colors
normal:
black: '#282828'
red: '#cc241d'
green: '#98971a'
yellow: '#d79921'
blue: '#458588'
magenta: '#b16286'
cyan: '#689d6a'
white: '#a89984'
# Bright colors
bright:
black: '#928374'
red: '#fb4934'
green: '#b8bb26'
yellow: '#fabd2f'
blue: '#83a598'
magenta: '#d3869b'
cyan: '#8ec07c'
white: '#ebdbb2'
### Monokai ###
monokai-pro: &monokai-pro
# Default colors
primary:
background: '#2D2A2E'
foreground: '#FCFCFA'
# Normal colors
normal:
black: '#403E41'
red: '#FF6188'
green: '#A9DC76'
yellow: '#FFD866'
blue: '#FC9867'
magenta: '#AB9DF2'
cyan: '#78DCE8'
white: '#FCFCFA'
# Bright colors
bright:
black: '#727072'
red: '#FF6188'
green: '#A9DC76'
yellow: '#FFD866'
blue: '#FC9867'
magenta: '#AB9DF2'
cyan: '#78DCE8'
white: '#FCFCFA'
### Nord ###
nord: &nord
# Default colors
primary:
background: '#2E3440'
foreground: '#D8DEE9'
# Normal colors
normal:
black: '#3B4252'
red: '#BF616A'
green: '#A3BE8C'
yellow: '#EBCB8B'
blue: '#81A1C1'
magenta: '#B48EAD'
cyan: '#88C0D0'
white: '#E5E9F0'
# Bright colors
bright:
black: '#4C566A'
red: '#BF616A'
green: '#A3BE8C'
yellow: '#EBCB8B'
blue: '#81A1C1'
magenta: '#B48EAD'
cyan: '#8FBCBB'
white: '#ECEFF4'
### Oceanic Next ###
oceanic-next: &oceanic-next
# Default colors
primary:
background: '#1b2b34'
foreground: '#d8dee9'
# Colors the cursor will use if `custom_cursor_colors` is true
cursor:
text: '#1b2b34'
cursor: '#ffffff'
# Normal colors
normal:
black: '#343d46'
red: '#EC5f67'
green: '#99C794'
yellow: '#FAC863'
blue: '#6699cc'
magenta: '#c594c5'
cyan: '#5fb3b3'
white: '#d8dee9'
# Bright colors
bright:
black: '#343d46'
red: '#EC5f67'
green: '#99C794'
yellow: '#FAC863'
blue: '#6699cc'
magenta: '#c594c5'
cyan: '#5fb3b3'
white: '#d8dee9'
### Palenight ###
palenight: &palenight
# Default colors
primary:
background: '#292d3e'
foreground: '#d0d0d0'
# Normal colors
normal:
black: '#292d3e'
red: '#f07178'
green: '#c3e88d'
yellow: '#ffcb6b'
blue: '#82aaff'
magenta: '#c792ea'
cyan: '#89ddff'
white: '#d0d0d0'
# Bright colors
bright:
black: '#434758'
red: '#ff8b92'
green: '#ddffa7'
yellow: '#ffe585'
blue: '#9cc4ff'
magenta: '#e1acff'
cyan: '#a3f7ff'
white: '#ffffff'
### Solarized Dark ###
solarized-dark: &solarized-dark
# Default colors
primary:
background: '#002b36' # base03
foreground: '#839496' # base0
# Cursor colors
cursor:
text: '#002b36' # base03
cursor: '#839496' # base0
# Normal colors
normal:
black: '#073642' # base02
red: '#dc322f' # red
green: '#859900' # green
yellow: '#b58900' # yellow
blue: '#268bd2' # blue
magenta: '#d33682' # magenta
cyan: '#2aa198' # cyan
white: '#eee8d5' # base2
# Bright colors
bright:
black: '#002b36' # base03
red: '#cb4b16' # orange
green: '#586e75' # base01
yellow: '#657b83' # base00
blue: '#839496' # base0
magenta: '#6c71c4' # violet
cyan: '#93a1a1' # base1
white: '#fdf6e3' # base3
### Solarized Light ###
solarized-light: &solarized-light
# Default colors
primary:
background: '#fdf6e3' # base3
foreground: '#657b83' # base00
# Cursor colors
cursor:
text: '#fdf6e3' # base3
cursor: '#657b83' # base00
# Normal colors
normal:
black: '#073642' # base02
red: '#dc322f' # red
green: '#859900' # green
yellow: '#b58900' # yellow
blue: '#268bd2' # blue
magenta: '#d33682' # magenta
cyan: '#2aa198' # cyan
white: '#eee8d5' # base2
# Bright colors
bright:
black: '#002b36' # base03
red: '#cb4b16' # orange
green: '#586e75' # base01
yellow: '#657b83' # base00
blue: '#839496' # base0
magenta: '#6c71c4' # violet
cyan: '#93a1a1' # base1
white: '#fdf6e3' # base3
### Tomorrow Night ###
tomorrow-night: &tomorrow-night
# Default colors
primary:
background: '#1d1f21'
foreground: '#c5c8c6'
# Colors the cursor will use if `custom_cursor_colors` is true
cursor:
text: '#1d1f21'
cursor: '#ffffff'
# Normal colors
normal:
black: '#1d1f21'
red: '#cc6666'
green: '#b5bd68'
yellow: '#e6c547'
blue: '#81a2be'
magenta: '#b294bb'
cyan: '#70c0ba'
white: '#373b41'
# Bright colors
bright:
black: '#666666'
red: '#ff3334'
green: '#9ec400'
yellow: '#f0c674'
blue: '#81a2be'
magenta: '#b77ee0'
cyan: '#54ced6'
white: '#282a2e'
colors: *gruvbox-dark
## Set environment variables
env:
TERM: xterm-256color
## Window settigns
window:
opacity: 0.95
padding:
x: 6
y: 6
dynamic_padding: false
title: Alacritty
class:
instance: Alacritty
general: Alacritty
dimensions:
columns: 160
lines: 44
## Scrolling settings
scrolling:
history: 5000
## Font settings
font:
normal:
family: mononoki Nerd Font
style: Regular
bold:
family: mononoki Nerd Font
style: Bold
italic:
family: mononoki Nerd Font
style: Italic
bold_italic:
family: mononoki Nerd Font
style: Bold Italic
size: 8
offset:
x: 0
y: 1
draw_bold_text_with_bright_colors: true
cursor:
style: Underline
shell:
program: /bin/fish
key_bindings:
# (Windows, Linux, and BSD only)
- { key: V, mods: Control|Shift, action: Paste }
- { key: C, mods: Control|Shift, action: Copy }
- { key: Insert, mods: Shift, action: PasteSelection }
- { key: Key0, mods: Control, action: ResetFontSize }
- { key: Equals, mods: Control, action: IncreaseFontSize }
- { key: Plus, mods: Control, action: IncreaseFontSize }
- { key: Minus, mods: Control, action: DecreaseFontSize }
- { key: F11, mods: None, action: ToggleFullscreen }
- { key: L, mods: Control, action: ClearLogNotice }
- { key: L, mods: Control, chars: "\x0c" }
- { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt }
- { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt }

View file

@ -5,24 +5,27 @@ local apps = {
drunner = "rofi -show drun -show-icons", -- Desktop runner drunner = "rofi -show drun -show-icons", -- Desktop runner
runner = "rofi -show run", -- Normal runner runner = "rofi -show run", -- Normal runner
runner_power = "$HOME/.config/rofi/scripts/rofi_power", -- Power manager runner_power = "$HOME/.config/rofi/scripts/rofi_power", -- Power manager
runner_mount = "$HOME/.config/rofi/scripts/rofi_mount", -- Drive mounter
runner_blue = "$HOME/.config/rofi/scripts/rofi_blue", -- Bluetooth manager
runner_wifi = "$HOME/.config/rofi/scripts/rofi_wifi", -- Wifi manager runner_wifi = "$HOME/.config/rofi/scripts/rofi_wifi", -- Wifi manager
runner_scrot = "$HOME/.config/rofi/scripts/rofi_scrot", -- Screenshots manager runner_scrot = "$HOME/.config/rofi/scripts/rofi_scrot", -- Screenshots manager
runner_emoji = "$HOME/.config/rofi/scripts/rofi_emoji", -- Emojis manager runner_emoji = "$HOME/.config/rofi/scripts/rofi_emoji", -- Emojis manager
runner_wall = "$HOME/.config/rofi/scripts/rofi_wall", -- Wallpapers manager runner_wall = "$HOME/.config/rofi/scripts/rofi_wall", -- Wallpapers manager
-- Other scripts -- Other scripts
ytfzf = "wezterm start --class ytfzf -- ytfzf -flstT chafa", -- Youtube vidytfzf = "wezterm start --class vidytfzf -- ytfzf -flstT chafa", -- Youtube
ytfzf_music = "wezterm start --class ytfzf_music -- ytfzf -mlstT chafa", -- Youtube Music musytfzf = "wezterm start --class musytfzf -- ytfzf -mlstT chafa", -- Youtube Music
ani_cli = "wezterm start --class ani-cli -- ani-cli", -- Anime ani_cli = "wezterm start --class ani-cli -- ani-cli", -- Anime
flix_cli = "wezterm start --class flix-cli -- flix-cli", -- Movies flix_cli = "wezterm start --class flix-cli -- flix-cli", -- Movies
tut = "wezterm start --class tut -- tut", -- Mastodon newsboat = "wezterm start --class newsboat -- newsboat", -- Newsboat
newsboat = "wezterm start --class newsboat -- newsboat -u ~/.config/newsboat/urls", -- Newsboat
-- Selected apps -- Selected apps
editor = "neovide --neovim-bin ./.local/bin/lvim", -- TAG 1 editor = "neovide --neovim-bin .local/bin/lvim", -- TAG 1
file = "wezterm start --class vifm -- ./.config/vifm/scripts/vifmrun", -- TAG 2 file = "wezterm start --class vifm -- vifm", -- TAG 2
browser = "firefox", -- TAG 3 browser = "firefox", -- TAG 3
chat = "revolt-desktop", -- TAG 4 chat = "signal-desktop", -- TAG 4
music = "wezterm start --class cmus -- cmus", -- TAG 5 music = "wezterm start --class cmus -- cmus", -- TAG 5
office = "libreoffice", -- TAG 8 videoeditor = "org.kde.kdenlive", -- TAG 6
imageeditor = "org.kde.krita", -- TAG 7
noteapp = "com.notesnook.Notesnook", -- TAG 8
game = "retroarch" -- TAG 9 game = "retroarch" -- TAG 9
} }
return apps return apps

View file

@ -9,7 +9,8 @@ modkey = "Mod4"
conkey = "Control" conkey = "Control"
shikey = "Shift" shikey = "Shift"
--[[ Main keybinds ]]-- --[[ Main keybinds ]]
--
awful.keyboard.append_global_keybindings( awful.keyboard.append_global_keybindings(
{ {
-- Show the help menu -- Show the help menu
@ -17,7 +18,8 @@ awful.keyboard.append_global_keybindings(
{ modkey }, { modkey },
"s", "s",
hotkeys_popup.show_help, hotkeys_popup.show_help,
{ description = {
description =
"Show Help Menu", "Show Help Menu",
group = group =
"Main keybinds" "Main keybinds"
@ -28,7 +30,8 @@ awful.keyboard.append_global_keybindings(
{ modkey, conkey }, { modkey, conkey },
"r", "r",
awesome.restart, awesome.restart,
{ description = {
description =
"Reload Awesome", "Reload Awesome",
group = group =
"Main keybinds" "Main keybinds"
@ -38,10 +41,11 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey }, { modkey },
"Return", "Return",
function () function()
awful.spawn(apps.terminal) awful.spawn(apps.terminal)
end, end,
{ description = {
description =
"Open a terminal", "Open a terminal",
group = group =
"Main keybinds" "Main keybinds"
@ -49,9 +53,11 @@ awful.keyboard.append_global_keybindings(
), ),
} }
) )
--[[ ]]-- --[[ ]]
--
--[[ Tags related keybindings ]]-- --[[ Tags related keybindings ]]
--
awful.keyboard.append_global_keybindings( awful.keyboard.append_global_keybindings(
{ {
-- Switch to previous tag -- Switch to previous tag
@ -59,7 +65,8 @@ awful.keyboard.append_global_keybindings(
{ modkey }, { modkey },
"Left", "Left",
awful.tag.viewprev, awful.tag.viewprev,
{ description = {
description =
"Quickly switch to previous tag", "Quickly switch to previous tag",
group = group =
"Tag keybinds" "Tag keybinds"
@ -70,7 +77,8 @@ awful.keyboard.append_global_keybindings(
{ modkey }, { modkey },
"Right", "Right",
awful.tag.viewnext, awful.tag.viewnext,
{ description = {
description =
"Quickly switch to next tag", "Quickly switch to next tag",
group = group =
"Tag keybinds" "Tag keybinds"
@ -81,7 +89,8 @@ awful.keyboard.append_global_keybindings(
{ modkey }, { modkey },
"Escape", "Escape",
awful.tag.history.restore, awful.tag.history.restore,
{ description = {
description =
"Go back to previus tag (from history)", "Go back to previus tag (from history)",
group = group =
"Tag keybinds" "Tag keybinds"
@ -93,7 +102,7 @@ awful.keyboard.append_global_keybindings(
keygroup = "numrow", keygroup = "numrow",
description = "Switch tags with number keys from {1 to 9}", description = "Switch tags with number keys from {1 to 9}",
group = "Tag keybinds", group = "Tag keybinds",
on_press = function (index) on_press = function(index)
local screen = awful.screen.focused() local screen = awful.screen.focused()
local tag = screen.tags[index] local tag = screen.tags[index]
if tag then if tag then
@ -107,7 +116,7 @@ awful.keyboard.append_global_keybindings(
keygroup = "numrow", keygroup = "numrow",
description = "Quickly view contents in another tag with number keys from {1 to 9}", description = "Quickly view contents in another tag with number keys from {1 to 9}",
group = "Tag keybinds", group = "Tag keybinds",
on_press = function (index) on_press = function(index)
local screen = awful.screen.focused() local screen = awful.screen.focused()
local tag = screen.tags[index] local tag = screen.tags[index]
if tag then if tag then
@ -121,7 +130,7 @@ awful.keyboard.append_global_keybindings(
keygroup = "numrow", keygroup = "numrow",
description = "Move focused window to another tag with number keys from {1 to 9}", description = "Move focused window to another tag with number keys from {1 to 9}",
group = "Tag keybinds", group = "Tag keybinds",
on_press = function (index) on_press = function(index)
if client.focus then if client.focus then
local tag = client.focus.screen.tags[index] local tag = client.focus.screen.tags[index]
if tag then if tag then
@ -136,7 +145,7 @@ awful.keyboard.append_global_keybindings(
keygroup = "numrow", keygroup = "numrow",
description = "View focused window on more than one tag with number keys from {1 to 9}", description = "View focused window on more than one tag with number keys from {1 to 9}",
group = "Tag keybinds", group = "Tag keybinds",
on_press = function (index) on_press = function(index)
if client.focus then if client.focus then
local tag = client.focus.screen.tags[index] local tag = client.focus.screen.tags[index]
if tag then if tag then
@ -147,19 +156,22 @@ awful.keyboard.append_global_keybindings(
}, },
} }
) )
--[[ ]]-- --[[ ]]
--
--[[ Focus related keybindings ]]-- --[[ Focus related keybindings ]]
--
awful.keyboard.append_global_keybindings( awful.keyboard.append_global_keybindings(
{ {
-- Focus next window by index -- Focus next window by index
awful.key( awful.key(
{ modkey }, { modkey },
"j", "j",
function () function()
awful.client.focus.byidx( 1) awful.client.focus.byidx(1)
end, end,
{ description = {
description =
"Focus the next window by index", "Focus the next window by index",
group = group =
"Focus keybinds" "Focus keybinds"
@ -169,10 +181,11 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey }, { modkey },
"k", "k",
function () function()
awful.client.focus.byidx(-1) awful.client.focus.byidx(-1)
end, end,
{ description = {
description =
"Focus the previous window by index", "Focus the previous window by index",
group = group =
"Focus keybinds" "Focus keybinds"
@ -182,13 +195,14 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey }, { modkey },
"Tab", "Tab",
function () function()
awful.client.focus.history.previous() awful.client.focus.history.previous()
if client.focus then if client.focus then
client.focus:raise() client.focus:raise()
end end
end, end,
{ description = {
description =
"Focus back the previous focused window", "Focus back the previous focused window",
group = group =
"Focus keybinds" "Focus keybinds"
@ -198,10 +212,11 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey, conkey }, { modkey, conkey },
"j", "j",
function () function()
awful.screen.focus_relative(1) awful.screen.focus_relative(1)
end, end,
{ description = {
description =
"Focus the next screen", "Focus the next screen",
group = group =
"Focus keybinds" "Focus keybinds"
@ -211,10 +226,11 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey, conkey }, { modkey, conkey },
"k", "k",
function () function()
awful.screen.focus_relative(-1) awful.screen.focus_relative(-1)
end, end,
{ description = {
description =
"Focus the previous screen", "Focus the previous screen",
group = group =
"Focus keybinds" "Focus keybinds"
@ -222,19 +238,22 @@ awful.keyboard.append_global_keybindings(
), ),
} }
) )
--[[ ]]-- --[[ ]]
--
--[[ Layout keybinds ]]-- --[[ Layout keybinds ]]
--
awful.keyboard.append_global_keybindings( awful.keyboard.append_global_keybindings(
{ {
-- Swap with next window by index -- Swap with next window by index
awful.key( awful.key(
{ modkey, shikey }, { modkey, shikey },
"j", "j",
function () function()
awful.client.swap.byidx(1) awful.client.swap.byidx(1)
end, end,
{ description = {
description =
"Swap with next window in current layout by index", "Swap with next window in current layout by index",
group = group =
"Layout keybinds" "Layout keybinds"
@ -244,10 +263,11 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey, shikey }, { modkey, shikey },
"k", "k",
function () function()
awful.client.swap.byidx(-1) awful.client.swap.byidx(-1)
end, end,
{ description = {
description =
"Swap with previous window in current layout by index", "Swap with previous window in current layout by index",
group = group =
"Layout keybinds" "Layout keybinds"
@ -257,10 +277,11 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey }, { modkey },
"l", "l",
function () function()
awful.tag.incmwfact(0.05) awful.tag.incmwfact(0.05)
end, end,
{ description = {
description =
"Increase master window width size", "Increase master window width size",
group = group =
"Layout keybinds" "Layout keybinds"
@ -270,10 +291,11 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey }, { modkey },
"h", "h",
function () function()
awful.tag.incmwfact(-0.05) awful.tag.incmwfact(-0.05)
end, end,
{ description = {
description =
"Decrease master window width size", "Decrease master window width size",
group = group =
"Layout keybinds" "Layout keybinds"
@ -283,10 +305,11 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey, shikey }, { modkey, shikey },
"h", "h",
function () function()
awful.tag.incnmaster(1, nil, true) awful.tag.incnmaster(1, nil, true)
end, end,
{ description = {
description =
"Increase the number of master windows", "Increase the number of master windows",
group = group =
"Layout keybinds" "Layout keybinds"
@ -296,10 +319,11 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey, shikey }, { modkey, shikey },
"l", "l",
function () function()
awful.tag.incnmaster(-1, nil, true) awful.tag.incnmaster(-1, nil, true)
end, end,
{ description = {
description =
"Decrease the number of master windows", "Decrease the number of master windows",
group = group =
"Layout keybinds" "Layout keybinds"
@ -309,10 +333,11 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey, conkey }, { modkey, conkey },
"h", "h",
function () function()
awful.tag.incncol(1, nil, true) awful.tag.incncol(1, nil, true)
end, end,
{ description = {
description =
"Increase the number of columns in layout", "Increase the number of columns in layout",
group = group =
"Layout keybinds" "Layout keybinds"
@ -322,10 +347,11 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey, conkey }, { modkey, conkey },
"l", "l",
function () function()
awful.tag.incncol(-1, nil, true) awful.tag.incncol(-1, nil, true)
end, end,
{ description = {
description =
"Decrease the number of columns in layout", "Decrease the number of columns in layout",
group = group =
"Layout keybinds" "Layout keybinds"
@ -335,10 +361,11 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey }, { modkey },
"space", "space",
function () function()
awful.layout.inc(1) awful.layout.inc(1)
end, end,
{ description = {
description =
"Switch to the next layout", "Switch to the next layout",
group = group =
"Layout keybinds" "Layout keybinds"
@ -348,10 +375,11 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey, shikey }, { modkey, shikey },
"space", "space",
function () function()
awful.layout.inc(-1) awful.layout.inc(-1)
end, end,
{ description = {
description =
"Switch to previous layout", "Switch to previous layout",
group = group =
"Layout keybinds" "Layout keybinds"
@ -363,7 +391,7 @@ awful.keyboard.append_global_keybindings(
keygroup = "numpad", keygroup = "numpad",
description = "Select layouts directly using the numpad", description = "Select layouts directly using the numpad",
group = "layout", group = "layout",
on_press = function (index) on_press = function(index)
local t = awful.screen.focused().selected_tag local t = awful.screen.focused().selected_tag
if t then if t then
t.layout = t.layouts[index] or t.layout t.layout = t.layouts[index] or t.layout
@ -374,7 +402,7 @@ awful.keyboard.append_global_keybindings(
awful.key( awful.key(
{ modkey }, { modkey },
"b", "b",
function () function()
for s in screen do for s in screen do
s.mywibox.visible = not s.mywibox.visible s.mywibox.visible = not s.mywibox.visible
if s.mybottomwibox then if s.mybottomwibox then
@ -382,7 +410,8 @@ awful.keyboard.append_global_keybindings(
end end
end end
end, end,
{ description = {
description =
"Toggle the bar", "Toggle the bar",
group = group =
"Layout keybinds" "Layout keybinds"
@ -390,9 +419,11 @@ awful.keyboard.append_global_keybindings(
), ),
} }
) )
--[[ ]]-- --[[ ]]
--
--[[ Window keybinds ]]-- --[[ Window keybinds ]]
--
client.connect_signal( client.connect_signal(
"request::default_keybindings", "request::default_keybindings",
function() function()
@ -402,11 +433,12 @@ client.connect_signal(
awful.key( awful.key(
{ modkey }, { modkey },
"f", "f",
function (c) function(c)
c.fullscreen = not c.fullscreen c.fullscreen = not c.fullscreen
c:raise() c:raise()
end, end,
{ description = {
description =
"Toggle fullscreen", "Toggle fullscreen",
group = group =
"Window keybinds" "Window keybinds"
@ -416,20 +448,23 @@ client.connect_signal(
awful.key( awful.key(
{ modkey }, { modkey },
"q", "q",
function (c) function(c)
c:kill() c:kill()
end, end,
{ description = {
description =
"Close focused window", "Close focused window",
group = group =
"Window keybinds" } "Window keybinds"
}
), ),
-- Toggle floating mode on focused window -- Toggle floating mode on focused window
awful.key( awful.key(
{ modkey, conkey }, { modkey, conkey },
"space", "space",
awful.client.floating.toggle, awful.client.floating.toggle,
{ description = {
description =
"Toggle floating mode on focused window", "Toggle floating mode on focused window",
group = group =
"Window keybinds" "Window keybinds"
@ -439,12 +474,13 @@ client.connect_signal(
awful.key( awful.key(
{ modkey, conkey }, { modkey, conkey },
"Return", "Return",
function (c) function(c)
c:swap( c:swap(
awful.client.getmaster() awful.client.getmaster()
) )
end, end,
{ description = {
description =
"Move focused window to master", "Move focused window to master",
group = group =
"Window keybinds" "Window keybinds"
@ -454,10 +490,11 @@ client.connect_signal(
awful.key( awful.key(
{ modkey }, { modkey },
"o", "o",
function (c) function(c)
c:move_to_screen() c:move_to_screen()
end, end,
{ description = {
description =
"Move focused window to the next screen", "Move focused window to the next screen",
group = group =
"Window keybinds" "Window keybinds"
@ -467,10 +504,11 @@ client.connect_signal(
awful.key( awful.key(
{ modkey }, { modkey },
"t", "t",
function (c) function(c)
c.ontop = not c.ontop c.ontop = not c.ontop
end, end,
{ description = {
description =
"Toggle keep on top for focused window", "Toggle keep on top for focused window",
group = group =
"Window keybinds" "Window keybinds"
@ -481,7 +519,8 @@ client.connect_signal(
{ modkey }, { modkey },
"u", "u",
awful.client.urgent.jumpto, awful.client.urgent.jumpto,
{ description = {
description =
"Quickly jump to urgent window", "Quickly jump to urgent window",
group = group =
"Window keybinds" "Window keybinds"
@ -491,55 +530,60 @@ client.connect_signal(
) )
end end
) )
--[[ ]]-- --[[ ]]
--
--[[ Quick keybinds ]] --[[ Quick keybinds ]]
awful.keyboard.append_global_keybindings( awful.keyboard.append_global_keybindings(
{ {
-- Volume -- Volume
awful.key( awful.key(
{ }, {},
"XF86AudioRaiseVolume", "XF86AudioRaiseVolume",
function() function()
awful.spawn("pamixer -i 5") awful.spawn("pamixer -i 5")
end, end,
{ description = {
description =
"Increase volume by +5%", "Increase volume by +5%",
group = group =
"Quick keybinds" "Quick keybinds"
} }
), ),
awful.key( awful.key(
{ }, {},
"XF86AudioLowerVolume", "XF86AudioLowerVolume",
function() function()
awful.spawn("pamixer -d 5") awful.spawn("pamixer -d 5")
end, end,
{ description = {
description =
"Decrease volume by +5%", "Decrease volume by +5%",
group = group =
"Quick keybinds" "Quick keybinds"
} }
), ),
awful.key( awful.key(
{ }, {},
"XF86AudioMute", "XF86AudioMute",
function() function()
awful.spawn("pamixer -t") awful.spawn("pamixer -t")
end, end,
{ description = {
description =
"Mute volume", "Mute volume",
group = group =
"Quick keybinds" "Quick keybinds"
} }
), ),
awful.key( awful.key(
{ }, {},
"XF86AudioMicMute", "XF86AudioMicMute",
function() function()
awful.spawn("pamixer --default-source -t") awful.spawn("pamixer --default-source -t")
end, end,
{ description = {
description =
"Mute microphone", "Mute microphone",
group = group =
"Quick keybinds" "Quick keybinds"
@ -547,24 +591,26 @@ awful.keyboard.append_global_keybindings(
), ),
-- Brightness -- Brightness
awful.key( awful.key(
{ }, {},
"XF86MonBrightnessUp", "XF86MonBrightnessUp",
function () function()
awful.spawn("xbacklight -inc 10") awful.spawn("xbacklight -inc 10")
end, end,
{ description = {
description =
"Increase brightness by +10%", "Increase brightness by +10%",
group = group =
"Quick keybinds" "Quick keybinds"
} }
), ),
awful.key( awful.key(
{ }, {},
"XF86MonBrightnessDown", "XF86MonBrightnessDown",
function () function()
awful.spawn("xbacklight -dec 10") awful.spawn("xbacklight -dec 10")
end, end,
{ description = {
description =
"Decrease brightness by +10%", "Decrease brightness by +10%",
group = group =
"Quick keybinds" "Quick keybinds"
@ -572,12 +618,13 @@ awful.keyboard.append_global_keybindings(
), ),
-- Display configuration -- Display configuration
awful.key( awful.key(
{ }, {},
"XF86Display", "XF86Display",
function () function()
awful.spawn("arandr") awful.spawn("arandr")
end, end,
{ description = {
description =
"Configure the display using arandr", "Configure the display using arandr",
group = "Quick keybinds" group = "Quick keybinds"
} }
@ -604,8 +651,12 @@ awful.keyboard.append_global_keybindings(
awful.util.spawn(apps.chat) -- TAG 4 awful.util.spawn(apps.chat) -- TAG 4
elseif key == "5" then elseif key == "5" then
awful.util.spawn(apps.music) -- TAG 5 awful.util.spawn(apps.music) -- TAG 5
elseif key == "6" then
awful.util.spawn(apps.videoeditor) -- TAG 5
elseif key == "7" then
awful.util.spawn(apps.imageeditor) -- TAG 5
elseif key == "8" then elseif key == "8" then
awful.util.spawn(apps.office) -- TAG 8 awful.util.spawn(apps.noteapp) -- TAG 8
elseif key == "9" then elseif key == "9" then
awful.util.spawn(apps.game) -- TAG 9 awful.util.spawn(apps.game) -- TAG 9
end end
@ -613,7 +664,8 @@ awful.keyboard.append_global_keybindings(
end end
) )
end, end,
{ description = {
description =
"Launch apps with {Super + a} keychord and then numbers from {1 to 9}", "Launch apps with {Super + a} keychord and then numbers from {1 to 9}",
group = group =
"Quick keybinds" "Quick keybinds"
@ -640,7 +692,8 @@ awful.keyboard.append_global_keybindings(
end end
) )
end, end,
{ description = {
description =
"Change keyboard layout with {Super + x} keychord and then {e} for spanish and {u} for english", "Change keyboard layout with {Super + x} keychord and then {e} for spanish and {u} for english",
group = group =
"Quick keybinds" "Quick keybinds"
@ -668,19 +721,25 @@ awful.keyboard.append_global_keybindings(
awful.spawn.with_shell(apps.runner_wifi) awful.spawn.with_shell(apps.runner_wifi)
elseif key == "s" then elseif key == "s" then
awful.spawn.with_shell(apps.runner_scrot) awful.spawn.with_shell(apps.runner_scrot)
elseif key == "z" then elseif key == "e" then
awful.spawn.with_shell(apps.runner_emoji) awful.spawn.with_shell(apps.runner_emoji)
elseif key == "w" then elseif key == "w" then
awful.spawn.with_shell(apps.runner_wall) awful.spawn.with_shell(apps.runner_wall)
elseif key == "m" then
awful.spawn.with_shell(apps.runner_mount)
elseif key == "b" then
awful.spawn.with_shell(apps.runner_blue)
end end
awful.keygrabber.stop(grabber) awful.keygrabber.stop(grabber)
end end
) )
end, end,
{ description = {
description =
"Launch quick action menus with {Super + p} keychord and then {d, r, e, q, i, b, s, z, w}", "Launch quick action menus with {Super + p} keychord and then {d, r, e, q, i, b, s, z, w}",
group = group =
"Quick keybinds" } "Quick keybinds"
}
), ),
-- Multimedia scripts (Super + t followed by KEY) -- Multimedia scripts (Super + t followed by KEY)
awful.key( awful.key(
@ -695,23 +754,22 @@ awful.keyboard.append_global_keybindings(
return return
end end
if key == "y" then if key == "y" then
awful.util.spawn(apps.ytfzf) awful.util.spawn(apps.vidytfzf)
elseif key == "y" then elseif key == "m" then
awful.util.spawn(apps.ytfzf_music) awful.util.spawn(apps.musytfzf)
elseif key == "a" then elseif key == "a" then
awful.util.spawn(apps.ani_cli) awful.util.spawn(apps.ani_cli)
elseif key == "f" then elseif key == "f" then
awful.util.spawn(apps.flix_cli) awful.util.spawn(apps.flix_cli)
elseif key == "t" then elseif key == "r" then
awful.util.spawn(apps.tut)
elseif key == "n" then
awful.util.spawn(apps.newsboat) awful.util.spawn(apps.newsboat)
end end
awful.keygrabber.stop(grabber) awful.keygrabber.stop(grabber)
end end
) )
end, end,
{ description = {
description =
"Launch multimedia terminal scripts with {Super + t} and then {m, y, a, f}", "Launch multimedia terminal scripts with {Super + t} and then {m, y, a, f}",
group = group =
"Quick keybinds" "Quick keybinds"
@ -720,4 +778,3 @@ awful.keyboard.append_global_keybindings(
} }
) )
--[[ ]] --[[ ]]

View file

@ -6,16 +6,16 @@ local theme = require("ui.theme")
-- Textclock widget -- Textclock widget
local mytextclock = wibox.widget.textclock() local mytextclock = wibox.widget.textclock()
screen.connect_signal("request::desktop_decoration", function(s) screen.connect_signal("request::desktop_decoration", function(s)
-- Tag names for each screen -- Tag names for each screen
awful.tag( awful.tag(
{ {
"", -- EDITOR "󰅩", -- EDITOR
"", -- FILE MANAGER "󰉖", -- FILE MANAGER
"󰖟", -- WEB BROWSER "󰖟", -- WEB BROWSER
"󰻞", -- CHAT "󰻞", -- CHAT
"󰲹", -- MUSIC "󰲹", -- MUSIC
"", -- VIDEO "󰯜", -- VIDEO
"󰧰", -- IMAGE/EDIT TOOLS "󱇤", -- IMAGE/EDIT TOOLS
"󰧮", -- OFFICE "󰧮", -- OFFICE
"󰸶" -- GAMES "󰸶" -- GAMES
}, },
@ -23,7 +23,7 @@ screen.connect_signal("request::desktop_decoration", function(s)
awful.layout.layouts[1] awful.layout.layouts[1]
) )
-- Layoutbox widget -- Layoutbox widget
s.mylayoutbox = { s.mylayoutbox = {
widget = wibox.container.background, widget = wibox.container.background,
bg = theme.bg_normal, bg = theme.bg_normal,
@ -32,30 +32,30 @@ screen.connect_signal("request::desktop_decoration", function(s)
screen = s, screen = s,
buttons = { buttons = {
awful.button( awful.button(
{ }, {},
1, 1,
function () function()
awful.layout.inc(1) awful.layout.inc(1)
end end
), ),
awful.button( awful.button(
{ }, {},
3, 3,
function () function()
awful.layout.inc(-1) awful.layout.inc(-1)
end end
), ),
awful.button( awful.button(
{ }, {},
4, 4,
function () function()
awful.layout.inc(-1) awful.layout.inc(-1)
end end
), ),
awful.button( awful.button(
{ }, {},
5, 5,
function () function()
awful.layout.inc(1) awful.layout.inc(1)
end end
), ),
@ -63,7 +63,7 @@ screen.connect_signal("request::desktop_decoration", function(s)
} }
} }
-- Taglist widget -- Taglist widget
s.mytaglist = { s.mytaglist = {
widget = wibox.container.background, widget = wibox.container.background,
bg = theme.taglist_bg, bg = theme.taglist_bg,
@ -73,7 +73,7 @@ screen.connect_signal("request::desktop_decoration", function(s)
filter = awful.widget.taglist.filter.all, filter = awful.widget.taglist.filter.all,
buttons = { buttons = {
awful.button( awful.button(
{ }, {},
1, 1,
function(t) function(t)
t:view_only() t:view_only()
@ -89,7 +89,7 @@ screen.connect_signal("request::desktop_decoration", function(s)
end end
), ),
awful.button( awful.button(
{ }, {},
3, 3,
awful.tag.viewtoggle awful.tag.viewtoggle
), ),
@ -103,14 +103,14 @@ screen.connect_signal("request::desktop_decoration", function(s)
end end
), ),
awful.button( awful.button(
{ }, {},
4, 4,
function(t) function(t)
awful.tag.viewprev(t.screen) awful.tag.viewprev(t.screen)
end end
), ),
awful.button( awful.button(
{ }, {},
5, 5,
function(t) function(t)
awful.tag.viewnext(t.screen) awful.tag.viewnext(t.screen)
@ -120,39 +120,39 @@ screen.connect_signal("request::desktop_decoration", function(s)
} }
} }
-- Prepare custom widgets -- Prepare custom widgets
-- Volume widget -- Volume widget
s.volume = s.volume =
awful.widget.watch( awful.widget.watch(
".config/awesome/ui/widgets/volume", ".config/awesome/ui/widgets/volume",
1 -- Update time in seconds 2 -- Update time in seconds
) )
-- Battery widget -- Battery widget
s.battery = s.battery =
awful.widget.watch( awful.widget.watch(
".config/awesome/ui/widgets/battery", ".config/awesome/ui/widgets/battery",
10 -- update time in seconds 60 -- update time in seconds
) )
-- Wifi widget -- Wifi widget
s.wifi = s.wifi =
awful.widget.watch( awful.widget.watch(
".config/awesome/ui/widgets/wifi", ".config/awesome/ui/widgets/wifi",
10 -- Update time in seconds 30 -- Update time in seconds
) )
-- Brightness widget -- Brightness widget
s.brightness = s.brightness =
awful.widget.watch( awful.widget.watch(
".config/awesome/ui/widgets/brightness", ".config/awesome/ui/widgets/brightness",
1 -- Update time in seconds 5 -- Update time in seconds
) )
-- Keyboard layout widget -- Keyboard layout widget
s.layout = s.layout =
awful.widget.watch( awful.widget.watch(
".config/awesome/ui/widgets/layout", ".config/awesome/ui/widgets/layout",
1 -- Update time in seconds 2 -- Update time in seconds
) )
-- Prepare custom widgets container -- Prepare custom widgets container
local custom_widget_container = { local custom_widget_container = {
-- Keyboard layout widget -- Keyboard layout widget
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_one), wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_one),
@ -176,18 +176,18 @@ screen.connect_signal("request::desktop_decoration", function(s)
layout = wibox.layout.fixed.horizontal, layout = wibox.layout.fixed.horizontal,
} }
-- Main right widget container with pill shape -- Main right widget container with pill shape
local right_widgets = { local right_widgets = {
custom_widget_container, custom_widget_container,
widget = wibox.container.background, widget = wibox.container.background,
shape = gears.shape.rounded_rect, shape = gears.shape.rounded_rect,
} }
-- Wibar -- Wibar
s.mywibox = awful.wibar { s.mywibox = awful.wibar {
position = "top", position = "top",
height = (30), height = (30),
border_width = (10), border_width = (8),
border_color = theme.bg_normal, border_color = theme.bg_normal,
screen = s, screen = s,
widget = { widget = {
@ -220,5 +220,5 @@ screen.connect_signal("request::desktop_decoration", function(s)
} }
} }
} }
end end
) )

View file

@ -8,7 +8,7 @@ ruled.client.connect_signal(
-- All clients will match this rule. -- All clients will match this rule.
ruled.client.append_rule { ruled.client.append_rule {
id = "global", id = "global",
rule = { }, rule = {},
properties = { properties = {
focus = awful.client.focus.filter, focus = awful.client.focus.filter,
raise = true, raise = true,
@ -47,7 +47,7 @@ ruled.client.connect_signal(
properties = { floating = true } properties = { floating = true }
} }
-- TAG 1 -- TAG 1
ruled.client.append_rule { ruled.client.append_rule {
rule_any = { rule_any = {
class = { class = {
@ -59,9 +59,10 @@ ruled.client.connect_signal(
"Virt-manager" "Virt-manager"
} }
}, },
properties = { tag = "" }, properties = { tag = "󰅩" },
} }
-- TAG 2
-- TAG 2
ruled.client.append_rule { ruled.client.append_rule {
rule_any = { rule_any = {
class = { class = {
@ -70,9 +71,10 @@ ruled.client.connect_signal(
"nemo" "nemo"
} }
}, },
properties = { tag = "" }, properties = { tag = "󰉖" },
} }
-- TAG 3
-- TAG 3
ruled.client.append_rule { ruled.client.append_rule {
rule_any = { rule_any = {
class = { class = {
@ -89,7 +91,8 @@ ruled.client.connect_signal(
}, },
properties = { tag = "󰖟" } properties = { tag = "󰖟" }
} }
-- TAG 4
-- TAG 4
ruled.client.append_rule { ruled.client.append_rule {
rule_any = { rule_any = {
class = { class = {
@ -101,12 +104,13 @@ ruled.client.connect_signal(
}, },
properties = { tag = "󰻞" } properties = { tag = "󰻞" }
} }
-- TAG 5
-- TAG 5
ruled.client.append_rule { ruled.client.append_rule {
rule_any = { rule_any = {
class = { class = {
"cmus", "cmus",
"ytfzf_music", "musytfzf",
"Audacity", "Audacity",
"Ardour", "Ardour",
"Carla2", "Carla2",
@ -115,7 +119,8 @@ ruled.client.connect_signal(
}, },
properties = { tag = "󰲹" } properties = { tag = "󰲹" }
} }
-- TAG 6
-- TAG 6
ruled.client.append_rule { ruled.client.append_rule {
rule_any = { rule_any = {
class = { class = {
@ -128,12 +133,13 @@ ruled.client.connect_signal(
"mpv", "mpv",
"ani-cli", "ani-cli",
"flix-cli", "flix-cli",
"ytfzf" "vidytfzf"
} }
}, },
properties = { tag = "" } properties = { tag = "󰯜" }
} }
-- TAG 7
-- TAG 7
ruled.client.append_rule { ruled.client.append_rule {
rule_any = { rule_any = {
class = { class = {
@ -146,21 +152,24 @@ ruled.client.connect_signal(
"Xournalpp", "Xournalpp",
} }
}, },
properties = { tag = "󰧰" } properties = { tag = "󱇤" }
} }
-- TAG 8
-- TAG 8
ruled.client.append_rule { ruled.client.append_rule {
rule_any = { rule_any = {
class = { class = {
"DesktopEditors", "DesktopEditors",
"Soffice", "Soffice",
"Notesnook",
"libreoffice-startcenter", "libreoffice-startcenter",
"Joplin" "Joplin"
} }
}, },
properties = { tag = "󰧮" } properties = { tag = "󰧮" }
} }
-- TAG 9
-- TAG 9
ruled.client.append_rule { ruled.client.append_rule {
rule_any = { rule_any = {
class = { class = {
@ -180,6 +189,6 @@ ruled.client.connect_signal(
}, },
properties = { tag = "󰸶" } properties = { tag = "󰸶" }
} }
--}}} --}}}
end end
) )

View file

@ -11,7 +11,7 @@ local theme = {}
-- }}} -- }}}
-- {{{ theme font -- {{{ theme font
theme.font = "mononoki Nerd Font 13" theme.font = "mononoki Nerd Font 12"
--- }}} --- }}}
-- {{{ bar colors -- {{{ bar colors
@ -42,13 +42,13 @@ theme.border_marked = "#cc241d"
-- }}} -- }}}
-- {{{ Taglist -- {{{ Taglist
theme.taglist_font = "mononoki Nerd Font Mono 28" theme.taglist_font = "Symbols Nerd Font Mono 14"
theme.taglist_bg = "#3c3836" theme.taglist_bg = "#3c3836"
theme.taglist_fg_focus = "#fb4934" theme.taglist_fg_focus = "#fb4934"
theme.taglist_fg_occupied = "#8ec07c" theme.taglist_fg_occupied = "#8ec07c"
theme.taglist_fg_urgent = "#504945" theme.taglist_fg_urgent = "#504945"
theme.taglist_fg_empty = "#a89984" theme.taglist_fg_empty = "#a89984"
theme.taglist_spacing = 5 theme.taglist_spacing = 7
-- }}} -- }}}
-- {{{ Notifications -- {{{ Notifications

View file

@ -8,21 +8,95 @@ elif [ "${currntpwr}" = "balanced" ]; then
elif [ "${currntpwr}" = "power-saver" ]; then elif [ "${currntpwr}" = "power-saver" ]; then
pwr=" - 󰾆 PowerSaver" pwr=" - 󰾆 PowerSaver"
fi fi
for battery in /sys/class/power_supply/BAT?*; do for battery in /sys/class/power_supply/BAT?*; do
# If non-first battery, print a space separator. # If non-first battery, print a space separator.
[ -n "${capacity+x}" ] && printf " " [ -n "${capacity+x}" ] && printf " "
# Sets up the status and capacity # Sets up the status and capacity
case "$(cat "$battery/status" 2>&1)" in case "$(cat "$battery/status" 2>&1)" in
"Full") status="󱊣" ;; "Full")
"Discharging") status="󱊢" ;; status=" 󰁹"
"Charging") status="󱊥" ;; ;;
"Not charging") status="󱊥" ;; "Discharging")
"Unknown") status="󰂎" ;; # Calculates the percentage of remaining charge
percentage="$(cat "$battery/capacity" 2>&1)"
# Updates the status icon based on the battery percentage
if [ "$percentage" -le 20 ]
then
status="󰁻"
elif [ "$percentage" -le 30 ]
then
status="󰁼"
elif [ "$percentage" -le 40 ]
then
status="󰁽"
elif [ "$percentage" -le 50 ]
then
status="󰁾"
elif [ "$percentage" -le 60 ]
then
status="󰁿"
elif [ "$percentage" -le 70 ]
then
status="󰂀"
elif [ "$percentage" -le 80 ]
then
status="󰂁"
elif [ "$percentage" -le 90 ]
then
status="󰂂"
else
status="󰁹"
fi
;;
"Charging")
# Calculates the percentage of remaining charge
percentage="$(cat "$battery/capacity" 2>&1)"
# Updates the status icon based on the battery percentage while charging
if [ "$percentage" -le 10 ]
then
status="󰢜"
elif [ "$percentage" -le 20 ]
then
status="󰂆"
elif [ "$percentage" -le 30 ]
then
status="󰂇"
elif [ "$percentage" -le 40 ]
then
status="󰂈"
elif [ "$percentage" -le 50 ]
then
status="󰢝"
elif [ "$percentage" -le 60 ]
then
status="󰂉"
elif [ "$percentage" -le 70 ]
then
status="󰢞"
elif [ "$percentage" -le 80 ]
then
status="󰂊"
elif [ "$percentage" -le 90 ]
then
status="󰂋"
else
status="󰂅"
fi
;;
"Not charging")
status="󰂃"
;;
"Unknown")
status="󰂃"
;;
*) exit 1 ;; *) exit 1 ;;
esac esac
capacity="$(cat "$battery/capacity" 2>&1)"
# Will make a warn variable if discharging and low # Will make a warn variable if discharging and low
[ "$status" = "󰂎" ] && [ "$capacity" -le 100 ] && warn="" [ "$status" = "󰁺" ] && [ "$percentage" -le 10 ] && warn="󱈸"
# Prints the info # Prints the info
printf "%s%s%d%%%s" "$status" "$warn " "$capacity" "$pwr"; unset warn printf "%s%s%d%%%s" "$status" "$warn " "$percentage" "$pwr"; unset warn
done && printf "\\n" done && printf "\\n"

View file

@ -1,10 +1,24 @@
#!/bin/bash #!/bin/bash
brt=$(xbacklight -get) brt=$(xbacklight -get)
if [ "$brt" = "100.000000" ]; then if [ "${brt%.*}" -eq 100 ]; then
icon="󰃠" icon="󰛨"
elif [ "$brt" \> "50%.*" ]; then elif [ "${brt%.*}" -ge 90 ]; then
icon="󰃟" icon="󱩖"
elif [ "$brt" \< "49%.*" ]; then elif [ "${brt%.*}" -ge 80 ]; then
icon="󰃞" icon="󱩕"
elif [ "${brt%.*}" -ge 70 ]; then
icon="󱩔"
elif [ "${brt%.*}" -ge 60 ]; then
icon="󱩓"
elif [ "${brt%.*}" -ge 50 ]; then
icon="󱩒"
elif [ "${brt%.*}" -ge 40 ]; then
icon="󱩑"
elif [ "${brt%.*}" -ge 30 ]; then
icon="󱩐"
elif [ "${brt%.*}" -ge 20 ]; then
icon="󱩏"
else
icon="󱩎"
fi fi
echo "$icon ${brt%.*}%" echo "$icon ${brt%.*}%"

View file

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
layout=$(setxkbmap -query | grep -oP 'layout:\s*\K\w+'); layout=$(setxkbmap -query | grep -oP 'layout:\s*\K\w+');
echo "󰥻 $layout" | tr '[:lower:]' '[:upper:]'; echo "󰌌 $layout" | tr '[:lower:]' '[:upper:]';

View file

@ -1,11 +1,34 @@
#!/bin/bash #!/bin/bash
get_wifi_strength() {
# Retrieves the wifi signal strength in dBm
strength=$(nmcli -t -f active,ssid,signal dev wifi | grep yes | cut -d ":" -f3)
# Converts dBm to percentage (0% to 100%)
if [ "$strength" -le 30 ]; then
echo "1"
elif [ "$strength" -le 60 ]; then
echo "2"
elif [ "$strength" -le 90 ]; then
echo "3"
else
echo "4"
fi
}
constate=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f3 | head -1) constate=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f3 | head -1)
currentwfi=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f4 | head -1) currentwfi=$(nmcli dev | grep wifi | sed 's/ \{2,\}/|/g' | cut -d '|' -f4 | head -1)
if [ "$constate" = "disconnected" ]; then if [ "$constate" = "disconnected" ]; then
echo "󰤮 " echo " 󰤮 "
elif [ "$constate" = "connected" ]; then elif [ "$constate" = "connected" ]; then
echo "󰤥 $currentwfi" strength=$(get_wifi_strength)
case "$strength" in
"1") icon="󰤟 " ;;
"2") icon="󰤢 " ;;
"3") icon="󰤥 " ;;
"4") icon="󰤨 " ;;
esac
echo "$icon$currentwfi"
else else
echo "󰤮 " echo "󰤮 "
fi fi

View file

@ -1,3 +1,32 @@
-- neovide options
vim.o.guifont = "mononoki Nerd Font:h08"
vim.g.neovide_hide_mouse_when_typing = true
vim.g.neovide_input_macos_alt_is_meta = true
vim.g.neovide_hide_mouse_when_typing = false
vim.g.neovide_refresh_rate = 60
vim.g.neovide_refresh_rate_idle = 5
vim.g.neovide_no_idle = true
vim.g.neovide_confirm_quit = true
vim.g.neovide_input_use_logo = true
vim.g.neovide_cursor_antialiasing = true
vim.g.neovide_cursor_animate_in_insert_mode = true
vim.g.neovide_cursor_vfx_mode = "pixiedust"
vim.g.neovide_cursor_vfx_particle_speed = 20.0
vim.g.neovide_padding_top = 0
vim.g.neovide_padding_bottom = 0
vim.g.neovide_padding_right = 0
vim.g.neovide_padding_left = 0
-- Helper function for transparency formatting
local alpha = function()
return string.format("%x", math.floor(255 * (vim.g.transparency or 0.9)))
end
vim.g.neovide_transparency = 0.9
vim.g.transparency = 0.9
vim.g.neovide_background_color = "#1d2021" .. alpha()
-- nvim options -- nvim options
vim.opt.shiftwidth = 2 vim.opt.shiftwidth = 2
vim.opt.tabstop = 2 vim.opt.tabstop = 2
@ -18,7 +47,7 @@ lvim.format_on_save = {
-- change theme settings -- change theme settings
lvim.colorscheme = "gruvbox" lvim.colorscheme = "gruvbox"
lvim.transparent_window = true lvim.transparent_window = false
lvim.builtin.alpha.active = true lvim.builtin.alpha.active = true
lvim.builtin.alpha.mode = "dashboard" lvim.builtin.alpha.mode = "dashboard"
lvim.builtin.terminal.active = true lvim.builtin.terminal.active = true
@ -38,6 +67,30 @@ lvim.plugins = {
{ "CRAG666/code_runner.nvim" }, { "CRAG666/code_runner.nvim" },
} }
-- configuring colorscheme
require("gruvbox").setup({
undercurl = true,
underline = true,
bold = false,
italic = {
strings = true,
comments = true,
operators = false,
folds = true,
},
strikethrough = true,
invert_selection = false,
invert_signs = false,
invert_tabline = false,
invert_intend_guides = false,
inverse = true, -- invert background for search, diffs, statuslines and errors
contrast = "hard", -- can be "hard", "soft" or empty string
palette_overrides = {},
overrides = {},
dim_inactive = false,
transparent_mode = false,
})
-- vimspector options -- vimspector options
vim.g.vimspector_enable_mappings = 'HUMAN' vim.g.vimspector_enable_mappings = 'HUMAN'
vim.g.vimspector_enable_mappings_for_mode = { vim.g.vimspector_enable_mappings_for_mode = {
@ -59,17 +112,17 @@ require('code_runner').setup({
"rustc $fileName &&", "rustc $fileName &&",
"$dir/$fileNameWithoutExt" "$dir/$fileNameWithoutExt"
}, },
cs = function(...) cs = {
local root_dir = require("lspconfig").util.root_pattern "*.csproj" (vim.loop.cwd()) "cd '$dir' &&",
return "cd " .. root_dir .. " && dotnet run$end" "dotnet run"
end, }
}, },
}) })
vim.keymap.set('n', '<leader>r', ':RunCode<CR>', { noremap = true, silent = false }) lvim.keys.normal_mode["<leader>r"] = ":RunCode<CR>"
vim.keymap.set('n', '<leader>rf', ':RunFile<CR>', { noremap = true, silent = false }) lvim.keys.normal_mode["<leader>rf"] = ":RunFile<CR>"
vim.keymap.set('n', '<leader>rft', ':RunFile tab<CR>', { noremap = true, silent = false }) lvim.keys.normal_mode["<leader>rft"] = ":RunFile tab<CR>"
vim.keymap.set('n', '<leader>rp', ':RunProject<CR>', { noremap = true, silent = false }) lvim.keys.normal_mode["<leader>rp"] = ":RunProject<CR>"
vim.keymap.set('n', '<leader>rc', ':RunClose<CR>', { noremap = true, silent = false }) lvim.keys.normal_mode["<leader>rc"] = ":RunClose<CR>"
vim.keymap.set('n', '<leader>crf', ':CRFiletype<CR>', { noremap = true, silent = false }) lvim.keys.normal_mode["<leader>crf"] = ":CRFiletype<CR>"
vim.keymap.set('n', '<leader>crp', ':CRProjects<CR>', { noremap = true, silent = false }) lvim.keys.normal_mode["<leader>crp"] = ":CRProjects<CR>"

View file

@ -13,8 +13,8 @@ animation-for-unmap-window = "zoom"
animation-for-menu-window = "zoom" animation-for-menu-window = "zoom"
animation-for-workspace-switch-out = "zoom" animation-for-workspace-switch-out = "zoom"
animation-for-workspace-switch-in = "zoom" animation-for-workspace-switch-in = "zoom"
animation-stiffness = 300; animation-stiffness = 500;
animation-dampening = 16; animation-dampening = 20;
animation-window-mass = 1; animation-window-mass = 1;
animation-clamping = true; animation-clamping = true;
animation-delta = 16; animation-delta = 16;
@ -23,30 +23,30 @@ animation-delta = 16;
## Shadows ## Shadows
shadow = false; shadow = false;
#shadow-radius = 8; # shadow-radius = 8;
#shadow-opacity = .90 # shadow-opacity = .90
#shadow-offset-x = -10; # shadow-offset-x = -10;
#shadow-offset-y = -10; # shadow-offset-y = -10;
# shadow-red = 0 # shadow-red = 0
# shadow-green = 0 # shadow-green = 0
# shadow-blue = 0 # shadow-blue = 0
# shadow-color = "#000000" # shadow-color = "#000000"
#shadow-exclude = [ # shadow-exclude = [
# "name = 'Notification'", # "name = 'Notification'",
# "class_g = 'Conky'", # "class_g = 'Conky'",
# "class_g ?= 'Notify-osd'", # "class_g ?= 'Notify-osd'",
# "class_g = 'Cairo-clock'", # "class_g = 'Cairo-clock'",
# "_GTK_FRAME_EXTENTS@:c" # "_GTK_FRAME_EXTENTS@:c"
#]; # ];
## Fading ## Fading
fading = false; fading = false;
#fade-in-step = 0.05; # fade-in-step = 0.05;
#fade-out-step = 0.05; # fade-out-step = 0.05;
#fade-delta = 8 # fade-delta = 8
#fade-exclude = [] # fade-exclude = []
#no-fading-openclose = false # no-fading-openclose = false
#no-fading-destroyed-argb = false # no-fading-destroyed-argb = false
## Transparency and opacity ## Transparency and opacity
inactive-opacity = 1.00; inactive-opacity = 1.00;
@ -55,8 +55,17 @@ inactive-opacity-override = false;
focus-exclude = [ "class_g = 'Cairo-clock'" ]; focus-exclude = [ "class_g = 'Cairo-clock'" ];
# opaity-rule = [] # opaity-rule = []
## Blur
blur-background = true;
blur-background-frame = true;
blur-background-fixed = true;
#blur-method = "dual_kawase";
blur-kern = "3x3box";
blur-method = "kawase";
blur-strength = 2;
## General Settings ## General Settings
backend = "xrender"; backend = "glx";
vsync = true; vsync = true;
dbe = false; dbe = false;
detect-client-opacity = true; detect-client-opacity = true;

View file

@ -32,17 +32,17 @@ pwrs="$pwr1\n$pwr2\n$pwr3\n$pwr4"
action=$(echo -e "$options" | $menu "  Power Options ") action=$(echo -e "$options" | $menu "  Power Options ")
case "$action" in case "$action" in
$option1) $option1)
pkill Hyprland;; pkill X;;
$option2) $option2)
systemctl reboot || loginctl reboot;; systemctl reboot || loginctl reboot;;
$option3) $option3)
systemctl poweroff || loginctl poweroff;; systemctl poweroff || loginctl poweroff;;
$option4) $option4)
swaylock -i "$currwall" & betterlockscreen -l &
sleep 0.1 sleep 0.1
systemctl suspend;; systemctl suspend;;
$option5) $option5)
swaylock -i "$currwall";; betterlockscreen -l;;
$option6) $option6)
currentpwr=$(powerprofilesctl get) currentpwr=$(powerprofilesctl get)
if [ "$currentpwr" = "performance" ]; then if [ "$currentpwr" = "performance" ]; then

View file

@ -9,16 +9,17 @@ mkdir -p "$HOME/Pictures/Screenshots"
cd "$HOME/Pictures/Screenshots" || exit 0 cd "$HOME/Pictures/Screenshots" || exit 0
## CHOICES ## ## CHOICES ##
cho1=" Entire screen" cho1="󱣴 Entire screen"
cho2=" Entire screen with delay" cho2="󱎫 Entire screen with delay"
cho3=" Focused window" cho3=" Focused window"
cho4=" Select area" cho4="󱕻 Select area"
chos="$cho1\n$cho2\n$cho3\n$cho4" cho5="󱎘 Exit"
chos="$cho1\n$cho2\n$cho3\n$cho4\n$cho5"
## DELAY OPTIONS ## ## DELAY OPTIONS ##
del1=" 3 sec delay" del1="󱑀 3 sec delay"
del2=" 5 sec delay" del2="󱑂 5 sec delay"
del3=" 10 sec delay" del3="󱑇 10 sec delay"
dels="$del1\n$del2\n$del3" dels="$del1\n$del2\n$del3"
## DELAY FUNCTION ## ## DELAY FUNCTION ##
@ -59,5 +60,7 @@ case $choice in
"$cho3") "$cho3")
window;; window;;
"$cho4") "$cho4")
area area;;
"$cho5")
exit 0
esac esac

View file

@ -10,7 +10,7 @@ cd "$walldir" || exit
## SELECT PICTURE FUNCTION ## ## SELECT PICTURE FUNCTION ##
selectpic() { selectpic() {
wallpaper=$(fd -p "$walldir" | rofi -dmenu -i -p "Select a wallpaper:") wallpaper=$(fd -p "$walldir" | rofi -dmenu -i -p " 󰋩 Select a wallpaper ")
if [ "$wallpaper" ]; then if [ "$wallpaper" ]; then
chosenwall=$wallpaper chosenwall=$wallpaper
else else
@ -28,7 +28,7 @@ option5="Scale"
options="$option1\n$option2\n$option3\n$option4\n$option5" options="$option1\n$option2\n$option3\n$option4\n$option5"
## MAIN ACTION ## ## MAIN ACTION ##
action=$(echo -e "$options" | rofi -dmenu -i -p "Chose the format:") action=$(echo -e "$options" | rofi -dmenu -i -p "  Chose the format ")
case "$action" in case "$action" in
$option1*) $option1*)
feh --bg-fill "$chosenwall";; feh --bg-fill "$chosenwall";;

View file

@ -90,7 +90,7 @@ if [ -n "$cases" ]; then
exit 0; exit 0;
fi;; fi;;
$option5) $option5)
io.elementary.capnet-assist;; "$BROWSER" http://networkcheck.kde.org;;
$option6) $option6)
exit 0; exit 0;
esac esac

View file

@ -1,6 +0,0 @@
This directory is dedicated for user-supplied scripts/executables.
vifm modifies its PATH environment variable to let user run those
scripts without specifying full path. All subdirectories are added
as well. File in a subdirectory overrules file with the same name
in parent directories. Restart might be needed to recognize files
in newly created or renamed subdirectories.

View file

@ -172,8 +172,8 @@ command! reload :write | restart
" You can also add %CLEAR if you want to clear screen before running FUSE " You can also add %CLEAR if you want to clear screen before running FUSE
" program. " program.
" Pdf " Pdf and cbz
filextype *.pdf zathura %c %i &, apvlv %c, xpdf %c filextype *.cbz,*.pdf zathura %c %i &, apvlv %c, xpdf %c
fileviewer *.pdf fileviewer *.pdf
\ pdftotext -nopgbrk %c - \ pdftotext -nopgbrk %c -