fixing stuff
This commit is contained in:
parent
dd9e387336
commit
ca4b8704b7
18 changed files with 1016 additions and 1224 deletions
|
@ -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 }
|
|
|
@ -1,28 +1,31 @@
|
||||||
-- Apps config, see keymaps/keyboard.lua to see how this is handled in keybindings
|
-- Apps config, see keymaps/keyboard.lua to see how this is handled in keybindings
|
||||||
local apps = {
|
local apps = {
|
||||||
terminal = "wezterm", -- Selected terminal emulator
|
terminal = "wezterm", -- Selected terminal emulator
|
||||||
-- Rofi settings
|
-- Rofi settings
|
||||||
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_wifi = "$HOME/.config/rofi/scripts/rofi_wifi", -- Wifi manager
|
runner_mount = "$HOME/.config/rofi/scripts/rofi_mount", -- Drive mounter
|
||||||
runner_scrot = "$HOME/.config/rofi/scripts/rofi_scrot", -- Screenshots manager
|
runner_blue = "$HOME/.config/rofi/scripts/rofi_blue", -- Bluetooth manager
|
||||||
runner_emoji = "$HOME/.config/rofi/scripts/rofi_emoji", -- Emojis manager
|
runner_wifi = "$HOME/.config/rofi/scripts/rofi_wifi", -- Wifi manager
|
||||||
runner_wall = "$HOME/.config/rofi/scripts/rofi_wall", -- Wallpapers manager
|
runner_scrot = "$HOME/.config/rofi/scripts/rofi_scrot", -- Screenshots manager
|
||||||
|
runner_emoji = "$HOME/.config/rofi/scripts/rofi_emoji", -- Emojis 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
|
||||||
game = "retroarch" -- TAG 9
|
imageeditor = "org.kde.krita", -- TAG 7
|
||||||
|
noteapp = "com.notesnook.Notesnook", -- TAG 8
|
||||||
|
game = "retroarch" -- TAG 9
|
||||||
}
|
}
|
||||||
return apps
|
return apps
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -6,219 +6,219 @@ 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
|
||||||
},
|
},
|
||||||
s,
|
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,
|
||||||
shape = gears.shape.circle,
|
shape = gears.shape.circle,
|
||||||
awful.widget.layoutbox {
|
awful.widget.layoutbox {
|
||||||
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
|
||||||
),
|
),
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
-- Taglist widget
|
-- Taglist widget
|
||||||
s.mytaglist = {
|
s.mytaglist = {
|
||||||
widget = wibox.container.background,
|
widget = wibox.container.background,
|
||||||
bg = theme.taglist_bg,
|
bg = theme.taglist_bg,
|
||||||
shape = gears.shape.rounded_rect,
|
shape = gears.shape.rounded_rect,
|
||||||
awful.widget.taglist {
|
awful.widget.taglist {
|
||||||
screen = s,
|
screen = 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()
|
||||||
|
end
|
||||||
|
),
|
||||||
|
awful.button(
|
||||||
|
{ modkey },
|
||||||
|
1,
|
||||||
|
function(t)
|
||||||
|
if client.focus then
|
||||||
|
client.focus:move_to_tag(t)
|
||||||
end
|
end
|
||||||
),
|
end
|
||||||
awful.button(
|
),
|
||||||
{ modkey },
|
awful.button(
|
||||||
1,
|
{},
|
||||||
function(t)
|
3,
|
||||||
if client.focus then
|
awful.tag.viewtoggle
|
||||||
client.focus:move_to_tag(t)
|
),
|
||||||
end
|
awful.button(
|
||||||
|
{ modkey },
|
||||||
|
3,
|
||||||
|
function(t)
|
||||||
|
if client.focus then
|
||||||
|
client.focus:toggle_tag(t)
|
||||||
end
|
end
|
||||||
),
|
end
|
||||||
awful.button(
|
),
|
||||||
{ },
|
awful.button(
|
||||||
3,
|
{},
|
||||||
awful.tag.viewtoggle
|
4,
|
||||||
),
|
function(t)
|
||||||
awful.button(
|
awful.tag.viewprev(t.screen)
|
||||||
{ modkey },
|
end
|
||||||
3,
|
),
|
||||||
function(t)
|
awful.button(
|
||||||
if client.focus then
|
{},
|
||||||
client.focus:toggle_tag(t)
|
5,
|
||||||
end
|
function(t)
|
||||||
end
|
awful.tag.viewnext(t.screen)
|
||||||
),
|
end
|
||||||
awful.button(
|
),
|
||||||
{ },
|
|
||||||
4,
|
|
||||||
function(t)
|
|
||||||
awful.tag.viewprev(t.screen)
|
|
||||||
end
|
|
||||||
),
|
|
||||||
awful.button(
|
|
||||||
{ },
|
|
||||||
5,
|
|
||||||
function(t)
|
|
||||||
awful.tag.viewnext(t.screen)
|
|
||||||
end
|
|
||||||
),
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
-- 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),
|
||||||
wibox.container.background(s.layout, theme.bar_bg_one),
|
wibox.container.background(s.layout, theme.bar_bg_one),
|
||||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_one),
|
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_one),
|
||||||
-- Volume widget
|
-- Volume widget
|
||||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_two),
|
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_two),
|
||||||
wibox.container.background(s.volume, theme.bar_bg_two),
|
wibox.container.background(s.volume, theme.bar_bg_two),
|
||||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_two),
|
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_two),
|
||||||
-- Brightness widget
|
-- Brightness widget
|
||||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_tre),
|
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_tre),
|
||||||
wibox.container.background(s.brightness, theme.bar_bg_tre),
|
wibox.container.background(s.brightness, theme.bar_bg_tre),
|
||||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_tre),
|
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_tre),
|
||||||
-- Battery widget
|
-- Battery widget
|
||||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_for),
|
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_for),
|
||||||
wibox.container.background(s.battery, theme.bar_bg_for),
|
wibox.container.background(s.battery, theme.bar_bg_for),
|
||||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_for),
|
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_for),
|
||||||
-- Wifi widget
|
-- Wifi widget
|
||||||
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_fiv),
|
wibox.container.background(wibox.widget.textbox(" "), theme.bar_bg_fiv),
|
||||||
wibox.container.background(s.wifi, theme.bar_bg_fiv),
|
wibox.container.background(s.wifi, theme.bar_bg_fiv),
|
||||||
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 = {
|
||||||
layout = wibox.layout.stack,
|
layout = wibox.layout.stack,
|
||||||
|
{
|
||||||
|
layout = wibox.layout.align.horizontal,
|
||||||
{
|
{
|
||||||
layout = wibox.layout.align.horizontal,
|
-- [[ Left widgets ]]
|
||||||
{
|
layout = wibox.layout.fixed.horizontal,
|
||||||
-- [[ Left widgets ]]
|
-- Layoubox widget
|
||||||
layout = wibox.layout.fixed.horizontal,
|
s.mylayoutbox,
|
||||||
-- Layoubox widget
|
wibox.container.background(wibox.widget.textbox(" "), theme.bg_normal),
|
||||||
s.mylayoutbox,
|
-- Taglist widget
|
||||||
wibox.container.background(wibox.widget.textbox(" "), theme.bg_normal),
|
s.mytaglist,
|
||||||
-- Taglist widget
|
|
||||||
s.mytaglist,
|
|
||||||
},
|
|
||||||
nil,
|
|
||||||
{
|
|
||||||
-- [[ Right widgets ]]
|
|
||||||
layout = wibox.layout.fixed.horizontal,
|
|
||||||
right_widgets
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
nil,
|
||||||
{
|
{
|
||||||
-- [[ Center widgets ]]
|
-- [[ Right widgets ]]
|
||||||
-- Clock widget
|
layout = wibox.layout.fixed.horizontal,
|
||||||
wibox.container.background(mytextclock, theme.bar_clock, gears.shape.rounded_rect),
|
right_widgets
|
||||||
valign = "center",
|
},
|
||||||
halign = "center",
|
},
|
||||||
layout = wibox.container.place,
|
{
|
||||||
}
|
-- [[ Center widgets ]]
|
||||||
|
-- Clock widget
|
||||||
|
wibox.container.background(mytextclock, theme.bar_clock, gears.shape.rounded_rect),
|
||||||
|
valign = "center",
|
||||||
|
halign = "center",
|
||||||
|
layout = wibox.container.place,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
end
|
}
|
||||||
|
end
|
||||||
)
|
)
|
||||||
|
|
|
@ -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,
|
||||||
|
@ -20,10 +20,10 @@ ruled.client.connect_signal(
|
||||||
|
|
||||||
-- Floating clients.
|
-- Floating clients.
|
||||||
ruled.client.append_rule {
|
ruled.client.append_rule {
|
||||||
id = "floating",
|
id = "floating",
|
||||||
rule_any = {
|
rule_any = {
|
||||||
hinstance = { "copyq", "pinentry" },
|
hinstance = { "copyq", "pinentry" },
|
||||||
class = {
|
class = {
|
||||||
"Galculator",
|
"Galculator",
|
||||||
"Blueman-manager",
|
"Blueman-manager",
|
||||||
"Gpick",
|
"Gpick",
|
||||||
|
@ -35,33 +35,34 @@ ruled.client.connect_signal(
|
||||||
},
|
},
|
||||||
-- Note that the name property shown in xprop might be set slightly after creation of the client
|
-- Note that the name property shown in xprop might be set slightly after creation of the client
|
||||||
-- and the name shown there might not match defined rules here.
|
-- and the name shown there might not match defined rules here.
|
||||||
name = {
|
name = {
|
||||||
"Event Tester", -- xev.
|
"Event Tester", -- xev.
|
||||||
},
|
},
|
||||||
role = {
|
role = {
|
||||||
"AlarmWindow", -- Thunderbird's calendar.
|
"AlarmWindow", -- Thunderbird's calendar.
|
||||||
"ConfigManager", -- Thunderbird's about:config.
|
"ConfigManager", -- Thunderbird's about:config.
|
||||||
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
|
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
properties = { floating = true }
|
properties = { floating = true }
|
||||||
}
|
}
|
||||||
|
|
||||||
-- TAG 1
|
-- TAG 1
|
||||||
ruled.client.append_rule {
|
ruled.client.append_rule {
|
||||||
rule_any = {
|
rule_any = {
|
||||||
class = {
|
class = {
|
||||||
"Emacs",
|
"Emacs",
|
||||||
"neovide",
|
"neovide",
|
||||||
"lvim",
|
"lvim",
|
||||||
"Godot",
|
"Godot",
|
||||||
"neovim",
|
"neovim",
|
||||||
"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
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,101 +1,101 @@
|
||||||
-- {{{ Imports
|
-- {{{ Imports
|
||||||
local gears = require("gears")
|
local gears = require("gears")
|
||||||
local dpi = require("beautiful.xresources").apply_dpi
|
local dpi = require("beautiful.xresources").apply_dpi
|
||||||
local beautiful = require("beautiful")
|
local beautiful = require("beautiful")
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
local themes_path = string.format("%s/.config/awesome/ui/", os.getenv("HOME"))
|
local themes_path = string.format("%s/.config/awesome/ui/", os.getenv("HOME"))
|
||||||
|
|
||||||
-- {{{ Main
|
-- {{{ Main
|
||||||
local theme = {}
|
local theme = {}
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ theme font
|
-- {{{ theme font
|
||||||
theme.font = "mononoki Nerd Font 13"
|
theme.font = "mononoki Nerd Font 12"
|
||||||
--- }}}
|
--- }}}
|
||||||
|
|
||||||
-- {{{ bar colors
|
-- {{{ bar colors
|
||||||
theme.bar_bg_one = "#427b58"
|
theme.bar_bg_one = "#427b58"
|
||||||
theme.bar_bg_two = "#076678"
|
theme.bar_bg_two = "#076678"
|
||||||
theme.bar_bg_tre = "#b57614"
|
theme.bar_bg_tre = "#b57614"
|
||||||
theme.bar_bg_for = "#9d0006"
|
theme.bar_bg_for = "#9d0006"
|
||||||
theme.bar_bg_fiv = "#8f3f71"
|
theme.bar_bg_fiv = "#8f3f71"
|
||||||
theme.bar_clock = "#3c3836"
|
theme.bar_clock = "#3c3836"
|
||||||
--- }}}
|
--- }}}
|
||||||
|
|
||||||
-- {{{ Colors
|
-- {{{ Colors
|
||||||
theme.fg_normal = "#ebdbb2"
|
theme.fg_normal = "#ebdbb2"
|
||||||
theme.fg_focus = "#dfc4a1"
|
theme.fg_focus = "#dfc4a1"
|
||||||
theme.fg_urgent = "#fb4934"
|
theme.fg_urgent = "#fb4934"
|
||||||
theme.bg_normal = "#1d2021"
|
theme.bg_normal = "#1d2021"
|
||||||
theme.bg_focus = "#3c3836"
|
theme.bg_focus = "#3c3836"
|
||||||
theme.bg_urgent = "#a89984"
|
theme.bg_urgent = "#a89984"
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Borders
|
-- {{{ Borders
|
||||||
beautiful.gap_single_client = false
|
beautiful.gap_single_client = false
|
||||||
theme.useless_gap = dpi(4)
|
theme.useless_gap = dpi(4)
|
||||||
theme.border_width = dpi(1.5)
|
theme.border_width = dpi(1.5)
|
||||||
theme.border_normal = "#504945"
|
theme.border_normal = "#504945"
|
||||||
theme.border_focus = "#cc241d"
|
theme.border_focus = "#cc241d"
|
||||||
theme.border_marked = "#cc241d"
|
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
|
||||||
theme.notification_font = "mononoki Nerd Font 12"
|
theme.notification_font = "mononoki Nerd Font 12"
|
||||||
theme.notification_bg = "#1d2021"
|
theme.notification_bg = "#1d2021"
|
||||||
theme.notification_bg_alt = "#282828"
|
theme.notification_bg_alt = "#282828"
|
||||||
theme.notification_fg = "#ebdbb2"
|
theme.notification_fg = "#ebdbb2"
|
||||||
theme.notification_fg_alt = "#282828"
|
theme.notification_fg_alt = "#282828"
|
||||||
theme.notification_critical = "#fb4934"
|
theme.notification_critical = "#fb4934"
|
||||||
theme.notification_shape = gears.shape.rounded_rect
|
theme.notification_shape = gears.shape.rounded_rect
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Hotkeys Popup
|
-- {{{ Hotkeys Popup
|
||||||
theme.hotkeys_bg = "#1d2021"
|
theme.hotkeys_bg = "#1d2021"
|
||||||
theme.hotkeys_fg = "#ebdbb2"
|
theme.hotkeys_fg = "#ebdbb2"
|
||||||
theme.hotkeys_modifiers_fg = "#458588"
|
theme.hotkeys_modifiers_fg = "#458588"
|
||||||
theme.hotkeys_label_bg = "#d79921"
|
theme.hotkeys_label_bg = "#d79921"
|
||||||
theme.hotkeys_label_fg = "#1d2021"
|
theme.hotkeys_label_fg = "#1d2021"
|
||||||
theme.hotkeys_group_margin = dpi(20)
|
theme.hotkeys_group_margin = dpi(20)
|
||||||
theme.hotkeys_description_font = "mononoki Nerd Font 12"
|
theme.hotkeys_description_font = "mononoki Nerd Font 12"
|
||||||
theme.hotkeys_font = "mononoki Nerd Font 12"
|
theme.hotkeys_font = "mononoki Nerd Font 12"
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Mouse finder
|
-- {{{ Mouse finder
|
||||||
theme.mouse_finder_color = "#fb4934"
|
theme.mouse_finder_color = "#fb4934"
|
||||||
theme.mouse_finder_radius = dpi(5)
|
theme.mouse_finder_radius = dpi(5)
|
||||||
theme.mouse_finder_timeout = 10
|
theme.mouse_finder_timeout = 10
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Layout Icons
|
-- {{{ Layout Icons
|
||||||
theme.layout_tile = gears.color.recolor_image(themes_path .. "icons/tilew.png", theme.fg_urgent)
|
theme.layout_tile = gears.color.recolor_image(themes_path .. "icons/tilew.png", theme.fg_urgent)
|
||||||
theme.layout_centerwork = gears.color.recolor_image(themes_path .. "icons/centerworkw.png", theme.fg_urgent)
|
theme.layout_centerwork = gears.color.recolor_image(themes_path .. "icons/centerworkw.png", theme.fg_urgent)
|
||||||
theme.layout_tileleft = gears.color.recolor_image(themes_path .. "icons/tileleftw.png", theme.fg_urgent)
|
theme.layout_tileleft = gears.color.recolor_image(themes_path .. "icons/tileleftw.png", theme.fg_urgent)
|
||||||
theme.layout_tilebottom = gears.color.recolor_image(themes_path .. "icons/tilebottomw.png", theme.fg_urgent)
|
theme.layout_tilebottom = gears.color.recolor_image(themes_path .. "icons/tilebottomw.png", theme.fg_urgent)
|
||||||
theme.layout_tiletop = gears.color.recolor_image(themes_path .. "icons/tiletopw.png", theme.fg_urgent)
|
theme.layout_tiletop = gears.color.recolor_image(themes_path .. "icons/tiletopw.png", theme.fg_urgent)
|
||||||
theme.layout_fairv = gears.color.recolor_image(themes_path .. "icons/fairvw.png", theme.fg_urgent)
|
theme.layout_fairv = gears.color.recolor_image(themes_path .. "icons/fairvw.png", theme.fg_urgent)
|
||||||
theme.layout_fairh = gears.color.recolor_image(themes_path .. "icons/fairhw.png", theme.fg_urgent)
|
theme.layout_fairh = gears.color.recolor_image(themes_path .. "icons/fairhw.png", theme.fg_urgent)
|
||||||
theme.layout_spiral = gears.color.recolor_image(themes_path .. "icons/spiralw.png", theme.fg_urgent)
|
theme.layout_spiral = gears.color.recolor_image(themes_path .. "icons/spiralw.png", theme.fg_urgent)
|
||||||
theme.layout_dwindle = gears.color.recolor_image(themes_path .. "icons/dwindlew.png", theme.fg_urgent)
|
theme.layout_dwindle = gears.color.recolor_image(themes_path .. "icons/dwindlew.png", theme.fg_urgent)
|
||||||
theme.layout_max = gears.color.recolor_image(themes_path .. "icons/maxw.png", theme.fg_urgent)
|
theme.layout_max = gears.color.recolor_image(themes_path .. "icons/maxw.png", theme.fg_urgent)
|
||||||
theme.layout_fullscreen = gears.color.recolor_image(themes_path .. "icons/fullscreenw.png", theme.fg_urgent)
|
theme.layout_fullscreen = gears.color.recolor_image(themes_path .. "icons/fullscreenw.png", theme.fg_urgent)
|
||||||
theme.layout_magnifier = gears.color.recolor_image(themes_path .. "icons/magnifierw.png", theme.fg_urgent)
|
theme.layout_magnifier = gears.color.recolor_image(themes_path .. "icons/magnifierw.png", theme.fg_urgent)
|
||||||
theme.layout_floating = gears.color.recolor_image(themes_path .. "icons/floatingw.png", theme.fg_urgent)
|
theme.layout_floating = gears.color.recolor_image(themes_path .. "icons/floatingw.png", theme.fg_urgent)
|
||||||
theme.layout_cornernw = gears.color.recolor_image(themes_path .. "icons/cornernw.png", theme.fg_urgent)
|
theme.layout_cornernw = gears.color.recolor_image(themes_path .. "icons/cornernw.png", theme.fg_urgent)
|
||||||
theme.layout_cornerne = gears.color.recolor_image(themes_path .. "icons/cornerne.png", theme.fg_urgent)
|
theme.layout_cornerne = gears.color.recolor_image(themes_path .. "icons/cornerne.png", theme.fg_urgent)
|
||||||
theme.layout_cornersw = gears.color.recolor_image(themes_path .. "icons/cornersw.png", theme.fg_urgent)
|
theme.layout_cornersw = gears.color.recolor_image(themes_path .. "icons/cornersw.png", theme.fg_urgent)
|
||||||
theme.layout_cornerse = gears.color.recolor_image(themes_path .. "icons/cornerse.png", theme.fg_urgent)
|
theme.layout_cornerse = gears.color.recolor_image(themes_path .. "icons/cornerse.png", theme.fg_urgent)
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
return theme
|
return theme
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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%.*}%"
|
||||||
|
|
|
@ -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:]';
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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>"
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -9,55 +9,58 @@ 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 ##
|
||||||
delays() {
|
delays() {
|
||||||
del=$(echo -e "$dels" | rofi -dmenu -i -p " Select Delay ");
|
del=$(echo -e "$dels" | rofi -dmenu -i -p " Select Delay ");
|
||||||
case $del in
|
case $del in
|
||||||
"$del1")
|
"$del1")
|
||||||
scrot -d 3 && notify-send "Screenshot saved";;
|
scrot -d 3 && notify-send "Screenshot saved";;
|
||||||
"$del2")
|
"$del2")
|
||||||
scrot -d 5 && notify-send "Screenshot saved";;
|
scrot -d 5 && notify-send "Screenshot saved";;
|
||||||
"$del3")
|
"$del3")
|
||||||
scrot -d 10 && notify-send "Screenshot saved"
|
scrot -d 10 && notify-send "Screenshot saved"
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
## ENTIRE SCREEN FUNCTION ##
|
## ENTIRE SCREEN FUNCTION ##
|
||||||
screen() {
|
screen() {
|
||||||
scrot && notify-send "Screenshot saved"
|
scrot && notify-send "Screenshot saved"
|
||||||
}
|
}
|
||||||
|
|
||||||
## FOCUSED WINDOW FUNCTION
|
## FOCUSED WINDOW FUNCTION
|
||||||
window() {
|
window() {
|
||||||
scrot -u -b && notify-send "Screenshot saved."
|
scrot -u -b && notify-send "Screenshot saved."
|
||||||
}
|
}
|
||||||
|
|
||||||
## SELECTED AREA FUNCTION ##
|
## SELECTED AREA FUNCTION ##
|
||||||
area() {
|
area() {
|
||||||
scrot -s && notify-send "Screenshot saved."
|
scrot -s && notify-send "Screenshot saved."
|
||||||
}
|
}
|
||||||
|
|
||||||
## MAIN ACTION ##
|
## MAIN ACTION ##
|
||||||
choice=$(echo -e "$chos" | rofi -dmenu -i -p " Sreenshot Menu ")
|
choice=$(echo -e "$chos" | rofi -dmenu -i -p " Sreenshot Menu ")
|
||||||
case $choice in
|
case $choice in
|
||||||
"$cho1")
|
"$cho1")
|
||||||
screen;;
|
screen;;
|
||||||
"$cho2")
|
"$cho2")
|
||||||
delays;;
|
delays;;
|
||||||
"$cho3")
|
"$cho3")
|
||||||
window;;
|
window;;
|
||||||
"$cho4")
|
"$cho4")
|
||||||
area
|
area;;
|
||||||
|
"$cho5")
|
||||||
|
exit 0
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -10,12 +10,12 @@ 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
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
selectpic
|
selectpic
|
||||||
|
|
||||||
|
@ -28,17 +28,17 @@ 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";;
|
||||||
$option2*)
|
$option2*)
|
||||||
feh --bg-center "$chosenwall";;
|
feh --bg-center "$chosenwall";;
|
||||||
$option3*)
|
$option3*)
|
||||||
feh --bg-tile "$chosenwall";;
|
feh --bg-tile "$chosenwall";;
|
||||||
$option4*)
|
$option4*)
|
||||||
feh --bg-max "$chosenwall";;
|
feh --bg-max "$chosenwall";;
|
||||||
$option5*)
|
$option5*)
|
||||||
feh --bg-scale "$chosenwall";;
|
feh --bg-scale "$chosenwall";;
|
||||||
esac
|
esac
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
|
|
@ -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 -
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue