add the rest of it

lots of changes :)
This commit is contained in:
Lucas Barbieri 2023-10-09 18:27:04 -03:00
parent 0d70ad2a7b
commit 4f87eb7f23
121 changed files with 5113 additions and 10223 deletions

6
.gitmodules vendored Normal file
View File

@ -0,0 +1,6 @@
[submodule "desktop/configs/awesome/awesome-sharedtags"]
path = desktop/configs/awesome/awesome-sharedtags
url = https://github.com/Drauthius/awesome-sharedtags
[submodule "desktop/configs/awesome/awesome-wm-widgets"]
path = desktop/configs/awesome/awesome-wm-widgets
url = https://github.com/streetturtle/awesome-wm-widgets

View File

@ -1,13 +1,46 @@
gamemode ################### File Generated by GOverlay ###################
wine toggle_fps_limit=F1
position=top-right
cpu_temp
legacy_layout=false
gpu_stats
gpu_temp gpu_temp
ram gpu_load_change
custom_text_center=jabuxas-benchmark gpu_load_value=50,90
cpu_load_color=00FFFF,00FFFF,FF00FF gpu_load_color=FFFFFF,FFAA7F,CC0000
cpu_load_value=50,90 gpu_text=GPU
cpu_stats
cpu_temp
cpu_load_change
core_load_change core_load_change
engine_version cpu_load_value=50,90
swap cpu_load_color=FFFFFF,FFAA7F,CC0000
cpu_color=DE0835
cpu_text=CPU
io_color=D8D8D8
vram
vram_color=DE0835
ram
ram_color=DE0835
fps
engine_color=950524
gpu_color=DE0835
wine_color=950524
frame_timing=1
frametime_color=DE0835
media_player_color=950524
table_columns=3
background_alpha=0.4
font_size=24
font_file=/yang/.local/share/fonts/CartographCFNerdFont-DemiBold.ttf
background_color=020202
position=top-right
text_color=D8D8D8
round_corners=5
#GOVERLAY_THEME=amdradeon
toggle_hud=Shift_R+F12
toggle_logging=Shift_L+F2
upload_log=F5
output_folder=/home/jab
media_player_name=spotify
font_scale=0.8 font_scale=0.8

View File

@ -1,14 +1,46 @@
gamemode ################### File Generated by GOverlay ###################
wine toggle_fps_limit=F1
position=top-left
cpu_temp
gpu_temp
ram
custom_text_center=jabuxas-benchmark
cpu_load_color=00FFFF,00FFFF,FF00FF
cpu_load_value=50,90
core_load_change
engine_version
swap
font_scale=0.8
legacy_layout=false
gpu_stats
gpu_temp
gpu_load_change
gpu_load_value=50,90
gpu_load_color=FFFFFF,FFAA7F,CC0000
gpu_text=GPU
cpu_stats
cpu_temp
cpu_load_change
core_load_change
cpu_load_value=50,90
cpu_load_color=FFFFFF,FFAA7F,CC0000
cpu_color=DE0835
cpu_text=CPU
io_color=D8D8D8
vram
vram_color=DE0835
ram
ram_color=DE0835
fps
engine_color=950524
gpu_color=DE0835
wine_color=950524
frame_timing=1
frametime_color=DE0835
media_player_color=950524
table_columns=3
background_alpha=0.4
font_size=24
font_file=/yang/.local/share/fonts/CartographCFNerdFont-DemiBold.ttf
background_color=020202
position=top-left
text_color=D8D8D8
round_corners=5
#GOVERLAY_THEME=amdradeon
toggle_hud=Shift_R+F12
toggle_logging=Shift_L+F2
upload_log=F5
output_folder=/home/jab
media_player_name=spotify
font_scale=0.8

View File

@ -1,14 +1,46 @@
gamemode ################### File Generated by GOverlay ###################
wine toggle_fps_limit=F1
position=top-left
cpu_temp
gpu_temp
ram
custom_text_center=jabuxas-benchmark
cpu_load_color=00FFFF,00FFFF,FF00FF
cpu_load_value=50,90
core_load_change
engine_version
swap
font_scale=0.8
legacy_layout=false
gpu_stats
gpu_temp
gpu_load_change
gpu_load_value=50,90
gpu_load_color=FFFFFF,FFAA7F,CC0000
gpu_text=GPU
cpu_stats
cpu_temp
cpu_load_change
core_load_change
cpu_load_value=50,90
cpu_load_color=FFFFFF,FFAA7F,CC0000
cpu_color=DE0835
cpu_text=CPU
io_color=D8D8D8
vram
vram_color=DE0835
ram
ram_color=DE0835
fps
engine_color=950524
gpu_color=DE0835
wine_color=950524
frame_timing=1
frametime_color=DE0835
media_player_color=950524
table_columns=3
background_alpha=0.4
font_size=24
font_file=/yang/.local/share/fonts/CartographCFNerdFont-DemiBold.ttf
background_color=020202
position=top-left
text_color=D8D8D8
round_corners=5
#GOVERLAY_THEME=amdradeon
toggle_hud=Shift_R+F12
toggle_logging=Shift_L+F2
upload_log=F5
output_folder=/home/jab
media_player_name=spotify
font_scale=0.8

View File

@ -0,0 +1,47 @@
################### File Generated by GOverlay ###################
toggle_fps_limit=F1
legacy_layout=false
gpu_stats
gpu_temp
gpu_load_change
gpu_load_value=50,90
gpu_load_color=FFFFFF,FFAA7F,CC0000
gpu_text=GPU
cpu_stats
cpu_temp
cpu_load_change
core_load_change
cpu_load_value=50,90
cpu_load_color=FFFFFF,FFAA7F,CC0000
cpu_color=DE0835
cpu_text=CPU
io_color=D8D8D8
vram
vram_color=DE0835
ram
ram_color=DE0835
fps
engine_color=950524
gpu_color=DE0835
wine_color=950524
frame_timing=1
frametime_color=DE0835
media_player_color=950524
table_columns=3
background_alpha=0.4
font_size=24
font_file=/yang/.local/share/fonts/CartographCFNerdFont-DemiBold.ttf
background_color=020202
position=top-right
text_color=D8D8D8
round_corners=5
#GOVERLAY_THEME=amdradeon
toggle_hud=Shift_R+F12
toggle_logging=Shift_L+F2
upload_log=F5
output_folder=/home/jab
media_player_name=spotify
fps_limit=50
font_scale=0.8

View File

@ -0,0 +1,47 @@
################### File Generated by GOverlay ###################
toggle_fps_limit=F1
legacy_layout=false
gpu_stats
gpu_temp
gpu_load_change
gpu_load_value=50,90
gpu_load_color=FFFFFF,FFAA7F,CC0000
gpu_text=GPU
cpu_stats
cpu_temp
cpu_load_change
core_load_change
cpu_load_value=50,90
cpu_load_color=FFFFFF,FFAA7F,CC0000
cpu_color=DE0835
cpu_text=CPU
io_color=D8D8D8
vram
vram_color=DE0835
ram
ram_color=DE0835
fps
engine_color=950524
gpu_color=DE0835
wine_color=950524
frame_timing=1
frametime_color=DE0835
media_player_color=950524
table_columns=3
background_alpha=0.4
font_size=24
font_file=/yang/.local/share/fonts/CartographCFNerdFont-DemiBold.ttf
background_color=020202
position=top-right
text_color=D8D8D8
round_corners=5
#GOVERLAY_THEME=amdradeon
toggle_hud=Shift_R+F12
toggle_logging=Shift_L+F2
upload_log=F5
output_folder=/home/jab
media_player_name=spotify
fps_limit=50
font_scale=0.8

View File

@ -0,0 +1,46 @@
################### File Generated by GOverlay ###################
toggle_fps_limit=F1
legacy_layout=false
gpu_stats
gpu_temp
gpu_load_change
gpu_load_value=50,90
gpu_load_color=FFFFFF,FFAA7F,CC0000
gpu_text=GPU
cpu_stats
cpu_temp
cpu_load_change
core_load_change
cpu_load_value=50,90
cpu_load_color=FFFFFF,FFAA7F,CC0000
cpu_color=DE0835
cpu_text=CPU
io_color=D8D8D8
vram
vram_color=DE0835
ram
ram_color=DE0835
fps
engine_color=950524
gpu_color=DE0835
wine_color=950524
frame_timing=1
frametime_color=DE0835
media_player_color=950524
table_columns=3
background_alpha=0.4
font_size=24
font_file=/yang/.local/share/fonts/CartographCFNerdFont-DemiBold.ttf
background_color=020202
position=top-left
text_color=D8D8D8
round_corners=5
#GOVERLAY_THEME=amdradeon
toggle_hud=Shift_R+F12
toggle_logging=Shift_L+F2
upload_log=F5
output_folder=/home/jab
media_player_name=spotify
font_scale=0.8

View File

@ -0,0 +1,47 @@
################### File Generated by GOverlay ###################
toggle_fps_limit=F1
legacy_layout=false
gpu_stats
gpu_temp
gpu_load_change
gpu_load_value=50,90
gpu_load_color=FFFFFF,FFAA7F,CC0000
gpu_text=GPU
cpu_stats
cpu_temp
cpu_load_change
core_load_change
cpu_load_value=50,90
cpu_load_color=FFFFFF,FFAA7F,CC0000
cpu_color=DE0835
cpu_text=CPU
io_color=D8D8D8
vram
vram_color=DE0835
ram
ram_color=DE0835
fps
engine_color=950524
gpu_color=DE0835
wine_color=950524
frame_timing=1
frametime_color=DE0835
media_player_color=950524
table_columns=3
background_alpha=0.4
font_size=24
font_file=/yang/.local/share/fonts/CartographCFNerdFont-DemiBold.ttf
background_color=020202
position=bottom-left
text_color=D8D8D8
round_corners=5
#GOVERLAY_THEME=amdradeon
toggle_hud=Shift_R+F12
toggle_logging=Shift_L+F2
upload_log=F5
output_folder=/home/jab
media_player_name=spotify
font_scale=0.8
fps_limit=72

View File

@ -1,14 +1,46 @@
gamemode ################### File Generated by GOverlay ###################
wine toggle_fps_limit=F1
position=middle-right
cpu_temp
gpu_temp
ram
custom_text_center=jabuxas-benchmark
cpu_load_color=00FFFF,00FFFF,FF00FF
cpu_load_value=50,90
core_load_change
engine_version
swap
font_scale=0.8
legacy_layout=false
gpu_stats
gpu_temp
gpu_load_change
gpu_load_value=50,90
gpu_load_color=FFFFFF,FFAA7F,CC0000
gpu_text=GPU
cpu_stats
cpu_temp
cpu_load_change
core_load_change
cpu_load_value=50,90
cpu_load_color=FFFFFF,FFAA7F,CC0000
cpu_color=DE0835
cpu_text=CPU
io_color=D8D8D8
vram
vram_color=DE0835
ram
ram_color=DE0835
fps
engine_color=950524
gpu_color=DE0835
wine_color=950524
frame_timing=1
frametime_color=DE0835
media_player_color=950524
table_columns=3
background_alpha=0.4
font_size=24
font_file=/yang/.local/share/fonts/CartographCFNerdFont-DemiBold.ttf
background_color=020202
position=middle-right
text_color=D8D8D8
round_corners=5
#GOVERLAY_THEME=amdradeon
toggle_hud=Shift_R+F12
toggle_logging=Shift_L+F2
upload_log=F5
output_folder=/home/jab
media_player_name=spotify
font_scale=0.8

View File

@ -7,7 +7,5 @@ ram
core_load_change core_load_change
engine_version engine_version
swap swap
fps_limit=30
wine_color=#548813 wine_color=#548813
font_scale=0.7 font_scale=0.7

View File

@ -0,0 +1,13 @@
gamemode
wine
position=middle-left
cpu_temp
gpu_temp
ram
custom_text_center=jabuxas-benchmark
cpu_load_color=00FFFF,00FFFF,FF00FF
cpu_load_value=50,90
core_load_change
engine_version
swap
font_scale=0.8

View File

@ -7,7 +7,5 @@ ram
core_load_change core_load_change
engine_version engine_version
swap swap
fps_limit=30
wine_color=#548813 wine_color=#548813
font_scale=0.8 font_scale=0.8

View File

@ -1,97 +0,0 @@
{
"Profiles": [
{
"Tablet": "Genius i405x",
"OutputMode": {
"Path": "OpenTabletDriver.Desktop.Output.LinuxArtistMode",
"Settings": [],
"Enable": true
},
"Filters": [
{
"Path": "VoiDPlugins.Filter.PrecisionControl",
"Settings": [
{
"Property": "Scale",
"Value": 0.3
}
],
"Enable": false
}
],
"AbsoluteModeSettings": {
"Display": {
"Width": 1920.0,
"Height": 1080.0,
"X": 960.0,
"Y": 540.00006,
"Rotation": 0.0
},
"Tablet": {
"Width": 90.0,
"Height": 102.4,
"X": 95.50001,
"Y": 51.2,
"Rotation": 0.0
},
"EnableClipping": true,
"EnableAreaLimiting": false,
"LockAspectRatio": false
},
"RelativeModeSettings": {
"XSensitivity": 10.0,
"YSensitivity": 10.0,
"RelativeRotation": 0.0,
"RelativeResetDelay": "00:00:00.1000000"
},
"Bindings": {
"TipActivationThreshold": 79.0,
"TipButton": {
"Path": "OpenTabletDriver.Desktop.Binding.MouseBinding",
"Settings": [
{
"Property": "Button",
"Value": "Left"
}
],
"Enable": true
},
"EraserActivationThreshold": 0.0,
"EraserButton": null,
"PenButtons": [
{
"Path": "OpenTabletDriver.Desktop.Binding.MultiKeyBinding",
"Settings": [
{
"Property": "Keys",
"Value": "Control+Z"
}
],
"Enable": true
},
{
"Path": "OpenTabletDriver.Desktop.Binding.MultiKeyBinding",
"Settings": [
{
"Property": "Keys",
"Value": "Control+Space"
}
],
"Enable": true
}
],
"AuxButtons": [],
"MouseButtons": [
null,
null,
null
],
"MouseScrollUp": null,
"MouseScrollDown": null
}
}
],
"LockUsableAreaDisplay": true,
"LockUsableAreaTablet": true,
"Tools": []
}

View File

@ -1,26 +1,2 @@
Xft.dpi : 94 Xft.dpi : 94
Xcursor.size : 24
! Base16 Gruvbox dark, medium
! Scheme: Dawid Kurek (dawikur@gmail.com), morhetz (https://github.com/morhetz/gruvbox)
*foreground: #b5b3aa
*background: [background_opacity]#000000
*background: #000000
*color0: #000000
*color1: #ff6c60
*color2: #a8ff60
*color3: #ffffb6
*color4: #96cbfe
*color5: #ff73fd
*color6: #c6c5f3
*color7: #b5b3aa
*color8: #6c6c66
*color9: #e9c062
*color10: #242422
*color11: #484844
*color12: #918f88
*color13: #d9d7cc
*color14: #b18a3d
*color15: #fdfbee
#include ".config/urxvt"

View File

@ -1,55 +0,0 @@
colors:
primary:
background: '0x282828'
foreground: '0xdfbf8e'
normal:
black: '0x665c54'
red: '0xea6962'
green: '0xa9b665'
yellow: '0xe78a4e'
blue: '0x7daea3'
magenta: '0xd3869b'
cyan: '0x89b482'
white: '0xdfbf8e'
bright:
black: '0x928374'
red: '0xea6962'
green: '0xa9b665'
yellow: '0xe3a84e'
blue: '0x7daea3'
magenta: '0xd3869b'
cyan: '0x89b482'
white: '0xdfbf8e'
# Font configuration
font:
# The normal (roman) font face to use.
normal:
family: mononoki Nerd Font
# Style can be specified to pick a specific face.
style: Regular
# The bold font face
bold:
family: Hack Nerd Font
# Style can be specified to pick a specific face.
# style: Bold
# The italic font face
italic:
family: InconsolataGo Nerd Font
# Style can be specified to pick a specific face.
# style: Italic
# Point size
size: 13.0
window:
dimensions:
columns: 140
lines: 40

View File

@ -1,59 +0,0 @@
colors:
# Default colors
primary:
background: '0x0c0c0c'
foreground: '0xcccccc'
# Normal colors
normal:
black: '0x0c0c0c'
red: '0xc50f1f'
green: '0x13a10e'
yellow: '0xc19c00'
blue: '0x0037da'
magenta: '0x881798'
cyan: '0x3a96dd'
white: '0xcccccc'
# Bright colors
bright:
black: '0x767676'
red: '0xe74856'
green: '0x16c60c'
yellow: '0xf9f1a5'
blue: '0x3b78ff'
magenta: '0xb4009e'
cyan: '0x61d6d6'
white: '0xf2f2f2'
# Font configuration
font:
# The normal (roman) font face to use.
normal:
family: mononoki Nerd Font
# Style can be specified to pick a specific face.
style: Regular
# The bold font face
bold:
family: Hack Nerd Font
# Style can be specified to pick a specific face.
# style: Bold
# The italic font face
italic:
family: InconsolataGo Nerd Font
# Style can be specified to pick a specific face.
# style: Italic
# Point size
size: 13.0
window:
dimensions:
columns: 140
lines: 40

View File

@ -1,65 +0,0 @@
colors:
primary:
background: '0x282828'
foreground: '0xdfbf8e'
normal:
black: '0x665c54'
red: '0xea6962'
green: '0xa9b665'
yellow: '0xe78a4e'
blue: '0x7daea3'
magenta: '0xd3869b'
cyan: '0x89b482'
white: '0xdfbf8e'
bright:
black: '0x928374'
red: '0xea6962'
green: '0xa9b665'
yellow: '0xe3a84e'
blue: '0x7daea3'
magenta: '0xd3869b'
cyan: '0x89b482'
white: '0xdfbf8e'
# Font configuration
font:
# The normal (roman) font face to use.
normal:
family: Blex Mono Nerd Font
# Style can be specified to pick a specific face.
style: Regular
# The bold font face
bold:
family: Hack Nerd Font
# Style can be specified to pick a specific face.
# style: Bold
# The italic font face
italic:
family: InconsolataGo Nerd Font
# Style can be specified to pick a specific face.
# style: Italic
# Point size
size: 13.0
window:
dimensions:
columns: 140
lines: 40
opacity: 0.90
padding:
x: 12
y: 12
position:
x: 955
y: 545

View File

@ -1,878 +0,0 @@
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Import additional configuration files
#
# Imports are loaded in order, skipping all missing files, with the importing
# file being loaded last. If a field is already present in a previous import, it
# will be replaced.
#
# All imports must either be absolute paths starting with `/`, or paths relative
# to the user's home directory starting with `~/`.
#import:
# - /path/to/alacritty.yml
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
# check the local terminfo database and use `alacritty` if it is
# available, otherwise `xterm-256color` is used.
#TERM: alacritty
#window:
# Window dimensions (changes require restart)
#
# Number of lines/columns (not pixels) in the terminal. The number of columns
# must be at least `2`, while using a value of `0` for columns and lines will
# fall back to the window manager's recommended size.
#dimensions:
# columns: 0
# lines: 0
# Window position (changes require restart)
#
# Specified in number of pixels.
# If the position is not set, the window manager will handle the placement.
#position:
# x: 0
# y: 0
# Window padding (changes require restart)
#
# Blank space added around the window in pixels. This padding is scaled
# by DPI and the specified value is always added at both opposing sides.
#padding:
# x: 0
# y: 0
# Spread additional padding evenly around the terminal content.
#dynamic_padding: false
# Window decorations
#
# Values for `decorations`:
# - full: Borders and title bar
# - none: Neither borders nor title bar
#
# Values for `decorations` (macOS only):
# - transparent: Title bar, transparent background and title bar buttons
# - buttonless: Title bar, transparent background and no title bar buttons
#decorations: full
# Background opacity
#
# Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque.
#opacity: 1.0
# Startup Mode (changes require restart)
#
# Values for `startup_mode`:
# - Windowed
# - Maximized
# - Fullscreen
#
# Values for `startup_mode` (macOS only):
# - SimpleFullscreen
#startup_mode: Windowed
# Window title
#title: Alacritty
# Allow terminal applications to change Alacritty's window title.
#dynamic_title: true
# Window class (Linux/BSD only):
#class:
# Application instance name
#instance: Alacritty
# General application class
#general: Alacritty
# GTK theme variant (Linux/BSD only)
#
# Override the variant of the GTK theme. Commonly supported values are `dark`
# and `light`. Set this to `None` to use the default theme variant.
#gtk_theme_variant: None
#scrolling:
# Maximum number of lines in the scrollback buffer.
# Specifying '0' will disable scrolling.
#history: 10000
# Scrolling distance multiplier.
#multiplier: 3
# Font configuration
#font:
# Normal (roman) font face
#normal:
# Font family
#
# Default:
# - (macOS) Menlo
# - (Linux/BSD) monospace
# - (Windows) Consolas
#family: monospace
# The `style` can be specified to pick a specific face.
#style: Regular
# Bold font face
#bold:
# Font family
#
# If the bold family is not specified, it will fall back to the
# value specified for the normal font.
#family: monospace
# The `style` can be specified to pick a specific face.
#style: Bold
# Italic font face
#italic:
# Font family
#
# If the italic family is not specified, it will fall back to the
# value specified for the normal font.
#family: monospace
# The `style` can be specified to pick a specific face.
#style: Italic
# Bold italic font face
#bold_italic:
# Font family
#
# If the bold italic family is not specified, it will fall back to the
# value specified for the normal font.
#family: monospace
# The `style` can be specified to pick a specific face.
#style: Bold Italic
# Point size
#size: 11.0
# Offset is the extra space around each character. `offset.y` can be thought
# of as modifying the line spacing, and `offset.x` as modifying the letter
# spacing.
#offset:
# x: 0
# y: 0
# Glyph offset determines the locations of the glyphs within their cells with
# the default being at the bottom. Increasing `x` moves the glyph to the
# right, increasing `y` moves the glyph upward.
#glyph_offset:
# x: 0
# y: 0
# Thin stroke font rendering (macOS only)
#
# Thin strokes are suitable for retina displays, but for non-retina screens
# it is recommended to set `use_thin_strokes` to `false`.
#use_thin_strokes: true
# Use built-in font for box drawing characters.
#
# If `true`, Alacritty will use a custom built-in font for box drawing
# characters (Unicode points 2500 - 259f).
#
#builtin_box_drawing: true
# If `true`, bold text is drawn using the bright color variants.
#draw_bold_text_with_bright_colors: false
# Colors (Tomorrow Night)
#colors:
# Default colors
#primary:
# background: '#1d1f21'
# foreground: '#c5c8c6'
# Bright and dim foreground colors
#
# The dimmed foreground color is calculated automatically if it is not
# present. If the bright foreground color is not set, or
# `draw_bold_text_with_bright_colors` is `false`, the normal foreground
# color will be used.
#dim_foreground: '#828482'
#bright_foreground: '#eaeaea'
# Cursor colors
#
# Colors which should be used to draw the terminal cursor.
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#cursor:
# text: CellBackground
# cursor: CellForeground
# Vi mode cursor colors
#
# Colors for the cursor when the vi mode is active.
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#vi_mode_cursor:
# text: CellBackground
# cursor: CellForeground
# Search colors
#
# Colors used for the search bar and match highlighting.
#search:
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#matches:
# foreground: '#000000'
# background: '#ffffff'
#focused_match:
# foreground: '#ffffff'
# background: '#000000'
#bar:
# background: '#c5c8c6'
# foreground: '#1d1f21'
# Keyboard regex hints
#hints:
# First character in the hint label
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#start:
# foreground: '#1d1f21'
# background: '#e9ff5e'
# All characters after the first one in the hint label
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#end:
# foreground: '#e9ff5e'
# background: '#1d1f21'
# Line indicator
#
# Color used for the indicator displaying the position in history during
# search and vi mode.
#
# By default, these will use the opposing primary color.
#line_indicator:
# foreground: None
# background: None
# Selection colors
#
# Colors which should be used to draw the selection area.
#
# Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff.
#selection:
# text: CellBackground
# background: CellForeground
# Normal colors
#normal:
# black: '#1d1f21'
# red: '#cc6666'
# green: '#b5bd68'
# yellow: '#f0c674'
# blue: '#81a2be'
# magenta: '#b294bb'
# cyan: '#8abeb7'
# white: '#c5c8c6'
# Bright colors
#bright:
# black: '#666666'
# red: '#d54e53'
# green: '#b9ca4a'
# yellow: '#e7c547'
# blue: '#7aa6da'
# magenta: '#c397d8'
# cyan: '#70c0b1'
# white: '#eaeaea'
# Dim colors
#
# If the dim colors are not set, they will be calculated automatically based
# on the `normal` colors.
#dim:
# black: '#131415'
# red: '#864343'
# green: '#777c44'
# yellow: '#9e824c'
# blue: '#556a7d'
# magenta: '#75617b'
# cyan: '#5b7d78'
# white: '#828482'
# Indexed Colors
#
# The indexed colors include all colors from 16 to 256.
# When these are not set, they're filled with sensible defaults.
#
# Example:
# `- { index: 16, color: '#ff00ff' }`
#
#indexed_colors: []
# Transparent cell backgrounds
#
# Whether or not `window.opacity` applies to all cell backgrounds or only to
# the default background. When set to `true` all cells will be transparent
# regardless of their background color.
#transparent_background_colors: false
# Bell
#
# The bell is rung every time the BEL control character is received.
#bell:
# Visual Bell Animation
#
# Animation effect for flashing the screen when the visual bell is rung.
#
# Values for `animation`:
# - Ease
# - EaseOut
# - EaseOutSine
# - EaseOutQuad
# - EaseOutCubic
# - EaseOutQuart
# - EaseOutQuint
# - EaseOutExpo
# - EaseOutCirc
# - Linear
#animation: EaseOutExpo
# Duration of the visual bell flash in milliseconds. A `duration` of `0` will
# disable the visual bell animation.
#duration: 0
# Visual bell animation color.
#color: '#ffffff'
# Bell Command
#
# This program is executed whenever the bell is rung.
#
# When set to `command: None`, no command will be executed.
#
# Example:
# command:
# program: notify-send
# args: ["Hello, World!"]
#
#command: None
#selection:
# This string contains all characters that are used as separators for
# "semantic words" in Alacritty.
#semantic_escape_chars: ",│`|:\"' ()[]{}<>\t"
# When set to `true`, selected text will be copied to the primary clipboard.
#save_to_clipboard: false
#cursor:
# Cursor style
#style:
# Cursor shape
#
# Values for `shape`:
# - ▇ Block
# - _ Underline
# - | Beam
#shape: Block
# Cursor blinking state
#
# Values for `blinking`:
# - Never: Prevent the cursor from ever blinking
# - Off: Disable blinking by default
# - On: Enable blinking by default
# - Always: Force the cursor to always blink
#blinking: Off
# Vi mode cursor style
#
# If the vi mode cursor style is `None` or not specified, it will fall back to
# the style of the active value of the normal cursor.
#
# See `cursor.style` for available options.
#vi_mode_style: None
# Cursor blinking interval in milliseconds.
#blink_interval: 750
# If this is `true`, the cursor will be rendered as a hollow box when the
# window is not focused.
#unfocused_hollow: true
# Thickness of the cursor relative to the cell width as floating point number
# from `0.0` to `1.0`.
#thickness: 0.15
# Live config reload (changes require restart)
#live_config_reload: true
# Shell
#
# You can set `shell.program` to the path of your favorite shell, e.g.
# `/bin/fish`. Entries in `shell.args` are passed unmodified as arguments to the
# shell.
#
# Default:
# - (macOS) /bin/bash --login
# - (Linux/BSD) user login shell
# - (Windows) powershell
#shell:
# program: /bin/bash
# args:
# - --login
# Startup directory
#
# Directory the shell is started in. If this is unset, or `None`, the working
# directory of the parent process will be used.
#working_directory: None
# Send ESC (\x1b) before characters when alt is pressed.
#alt_send_esc: true
# Offer IPC using `alacritty msg` (unix only)
#ipc_socket: true
#mouse:
# Click settings
#
# The `double_click` and `triple_click` settings control the time
# alacritty should wait for accepting multiple clicks as one double
# or triple click.
#double_click: { threshold: 300 }
#triple_click: { threshold: 300 }
# If this is `true`, the cursor is temporarily hidden when typing.
#hide_when_typing: false
# Regex hints
#
# Terminal hints can be used to find text in the visible part of the terminal
# and pipe it to other applications.
#hints:
# Keys used for the hint labels.
#alphabet: "jfkdls;ahgurieowpq"
# List with all available hints
#
# Each hint must have a `regex` and either an `action` or a `command` field.
# The fields `mouse`, `binding` and `post_processing` are optional.
#
# The fields `command`, `binding.key`, `binding.mods`, `binding.mode` and
# `mouse.mods` accept the same values as they do in the `key_bindings` section.
#
# The `mouse.enabled` field controls if the hint should be underlined while
# the mouse with all `mouse.mods` keys held or the vi mode cursor is above it.
#
# If the `post_processing` field is set to `true`, heuristics will be used to
# shorten the match if there are characters likely not to be part of the hint
# (e.g. a trailing `.`). This is most useful for URIs.
#
# Values for `action`:
# - Copy
# Copy the hint's text to the clipboard.
# - Paste
# Paste the hint's text to the terminal or search.
# - Select
# Select the hint's text.
# - MoveViModeCursor
# Move the vi mode cursor to the beginning of the hint.
#enabled:
# - regex: "(ipfs:|ipns:|magnet:|mailto:|gemini:|gopher:|https:|http:|news:|file:|git:|ssh:|ftp:)\
# [^\u0000-\u001F\u007F-\u009F<>\"\\s{-}\\^⟨⟩`]+"
# command: xdg-open
# post_processing: true
# mouse:
# enabled: true
# mods: None
# binding:
# key: U
# mods: Control|Shift
# Mouse bindings
#
# Mouse bindings are specified as a list of objects, much like the key
# bindings further below.
#
# To trigger mouse bindings when an application running within Alacritty
# captures the mouse, the `Shift` modifier is automatically added as a
# requirement.
#
# Each mouse binding will specify a:
#
# - `mouse`:
#
# - Middle
# - Left
# - Right
# - Numeric identifier such as `5`
#
# - `action` (see key bindings for actions not exclusive to mouse mode)
#
# - Mouse exclusive actions:
#
# - ExpandSelection
# Expand the selection to the current mouse cursor location.
#
# And optionally:
#
# - `mods` (see key bindings)
#mouse_bindings:
# - { mouse: Right, action: ExpandSelection }
# - { mouse: Right, mods: Control, action: ExpandSelection }
# - { mouse: Middle, mode: ~Vi, action: PasteSelection }
# Key bindings
#
# Key bindings are specified as a list of objects. For example, this is the
# default paste binding:
#
# `- { key: V, mods: Control|Shift, action: Paste }`
#
# Each key binding will specify a:
#
# - `key`: Identifier of the key pressed
#
# - A-Z
# - F1-F24
# - Key0-Key9
#
# A full list with available key codes can be found here:
# https://docs.rs/glutin/*/glutin/event/enum.VirtualKeyCode.html#variants
#
# Instead of using the name of the keys, the `key` field also supports using
# the scancode of the desired key. Scancodes have to be specified as a
# decimal number. This command will allow you to display the hex scancodes
# for certain keys:
#
# `showkey --scancodes`.
#
# Then exactly one of:
#
# - `chars`: Send a byte sequence to the running application
#
# The `chars` field writes the specified string to the terminal. This makes
# it possible to pass escape sequences. To find escape codes for bindings
# like `PageUp` (`"\x1b[5~"`), you can run the command `showkey -a` outside
# of tmux. Note that applications use terminfo to map escape sequences back
# to keys. It is therefore required to update the terminfo when changing an
# escape sequence.
#
# - `action`: Execute a predefined action
#
# - ToggleViMode
# - SearchForward
# Start searching toward the right of the search origin.
# - SearchBackward
# Start searching toward the left of the search origin.
# - Copy
# - Paste
# - IncreaseFontSize
# - DecreaseFontSize
# - ResetFontSize
# - ScrollPageUp
# - ScrollPageDown
# - ScrollHalfPageUp
# - ScrollHalfPageDown
# - ScrollLineUp
# - ScrollLineDown
# - ScrollToTop
# - ScrollToBottom
# - ClearHistory
# Remove the terminal's scrollback history.
# - Hide
# Hide the Alacritty window.
# - Minimize
# Minimize the Alacritty window.
# - Quit
# Quit Alacritty.
# - ToggleFullscreen
# - SpawnNewInstance
# Spawn a new instance of Alacritty.
# - CreateNewWindow
# Create a new Alacritty window from the current process.
# - ClearLogNotice
# Clear Alacritty's UI warning and error notice.
# - ClearSelection
# Remove the active selection.
# - ReceiveChar
# - None
#
# - Vi mode exclusive actions:
#
# - Open
# Perform the action of the first matching hint under the vi mode cursor
# with `mouse.enabled` set to `true`.
# - ToggleNormalSelection
# - ToggleLineSelection
# - ToggleBlockSelection
# - ToggleSemanticSelection
# Toggle semantic selection based on `selection.semantic_escape_chars`.
#
# - Vi mode exclusive cursor motion actions:
#
# - Up
# One line up.
# - Down
# One line down.
# - Left
# One character left.
# - Right
# One character right.
# - First
# First column, or beginning of the line when already at the first column.
# - Last
# Last column, or beginning of the line when already at the last column.
# - FirstOccupied
# First non-empty cell in this terminal row, or first non-empty cell of
# the line when already at the first cell of the row.
# - High
# Top of the screen.
# - Middle
# Center of the screen.
# - Low
# Bottom of the screen.
# - SemanticLeft
# Start of the previous semantically separated word.
# - SemanticRight
# Start of the next semantically separated word.
# - SemanticLeftEnd
# End of the previous semantically separated word.
# - SemanticRightEnd
# End of the next semantically separated word.
# - WordLeft
# Start of the previous whitespace separated word.
# - WordRight
# Start of the next whitespace separated word.
# - WordLeftEnd
# End of the previous whitespace separated word.
# - WordRightEnd
# End of the next whitespace separated word.
# - Bracket
# Character matching the bracket at the cursor's location.
# - SearchNext
# Beginning of the next match.
# - SearchPrevious
# Beginning of the previous match.
# - SearchStart
# Start of the match to the left of the vi mode cursor.
# - SearchEnd
# End of the match to the right of the vi mode cursor.
#
# - Search mode exclusive actions:
# - SearchFocusNext
# Move the focus to the next search match.
# - SearchFocusPrevious
# Move the focus to the previous search match.
# - SearchConfirm
# - SearchCancel
# - SearchClear
# Reset the search regex.
# - SearchDeleteWord
# Delete the last word in the search regex.
# - SearchHistoryPrevious
# Go to the previous regex in the search history.
# - SearchHistoryNext
# Go to the next regex in the search history.
#
# - macOS exclusive actions:
# - ToggleSimpleFullscreen
# Enter fullscreen without occupying another space.
#
# - Linux/BSD exclusive actions:
#
# - CopySelection
# Copy from the selection buffer.
# - PasteSelection
# Paste from the selection buffer.
#
# - `command`: Fork and execute a specified command plus arguments
#
# The `command` field must be a map containing a `program` string and an
# `args` array of command line parameter strings. For example:
# `{ program: "alacritty", args: ["-e", "vttest"] }`
#
# And optionally:
#
# - `mods`: Key modifiers to filter binding actions
#
# - Command
# - Control
# - Option
# - Super
# - Shift
# - Alt
#
# Multiple `mods` can be combined using `|` like this:
# `mods: Control|Shift`.
# Whitespace and capitalization are relevant and must match the example.
#
# - `mode`: Indicate a binding for only specific terminal reported modes
#
# This is mainly used to send applications the correct escape sequences
# when in different modes.
#
# - AppCursor
# - AppKeypad
# - Search
# - Alt
# - Vi
#
# A `~` operator can be used before a mode to apply the binding whenever
# the mode is *not* active, e.g. `~Alt`.
#
# Bindings are always filled by default, but will be replaced when a new
# binding with the same triggers is defined. To unset a default binding, it can
# be mapped to the `ReceiveChar` action. Alternatively, you can use `None` for
# a no-op if you do not wish to receive input characters for that binding.
#
# If the same trigger is assigned to multiple actions, all of them are executed
# in the order they were defined in.
#key_bindings:
#- { key: Paste, action: Paste }
#- { key: Copy, action: Copy }
#- { key: L, mods: Control, action: ClearLogNotice }
#- { key: L, mods: Control, mode: ~Vi|~Search, chars: "\x0c" }
#- { key: PageUp, mods: Shift, mode: ~Alt, action: ScrollPageUp, }
#- { key: PageDown, mods: Shift, mode: ~Alt, action: ScrollPageDown }
#- { key: Home, mods: Shift, mode: ~Alt, action: ScrollToTop, }
#- { key: End, mods: Shift, mode: ~Alt, action: ScrollToBottom }
# Vi Mode
#- { key: Space, mods: Shift|Control, mode: ~Search, action: ToggleViMode }
#- { key: Space, mods: Shift|Control, mode: Vi|~Search, action: ScrollToBottom }
#- { key: Escape, mode: Vi|~Search, action: ClearSelection }
#- { key: I, mode: Vi|~Search, action: ToggleViMode }
#- { key: I, mode: Vi|~Search, action: ScrollToBottom }
#- { key: C, mods: Control, mode: Vi|~Search, action: ToggleViMode }
#- { key: Y, mods: Control, mode: Vi|~Search, action: ScrollLineUp }
#- { key: E, mods: Control, mode: Vi|~Search, action: ScrollLineDown }
#- { key: G, mode: Vi|~Search, action: ScrollToTop }
#- { key: G, mods: Shift, mode: Vi|~Search, action: ScrollToBottom }
#- { key: B, mods: Control, mode: Vi|~Search, action: ScrollPageUp }
#- { key: F, mods: Control, mode: Vi|~Search, action: ScrollPageDown }
#- { key: U, mods: Control, mode: Vi|~Search, action: ScrollHalfPageUp }
#- { key: D, mods: Control, mode: Vi|~Search, action: ScrollHalfPageDown }
#- { key: Y, mode: Vi|~Search, action: Copy }
#- { key: Y, mode: Vi|~Search, action: ClearSelection }
#- { key: Copy, mode: Vi|~Search, action: ClearSelection }
#- { key: V, mode: Vi|~Search, action: ToggleNormalSelection }
#- { key: V, mods: Shift, mode: Vi|~Search, action: ToggleLineSelection }
#- { key: V, mods: Control, mode: Vi|~Search, action: ToggleBlockSelection }
#- { key: V, mods: Alt, mode: Vi|~Search, action: ToggleSemanticSelection }
#- { key: Return, mode: Vi|~Search, action: Open }
#- { key: K, mode: Vi|~Search, action: Up }
#- { key: J, mode: Vi|~Search, action: Down }
#- { key: H, mode: Vi|~Search, action: Left }
#- { key: L, mode: Vi|~Search, action: Right }
#- { key: Up, mode: Vi|~Search, action: Up }
#- { key: Down, mode: Vi|~Search, action: Down }
#- { key: Left, mode: Vi|~Search, action: Left }
#- { key: Right, mode: Vi|~Search, action: Right }
#- { key: Key0, mode: Vi|~Search, action: First }
#- { key: Key4, mods: Shift, mode: Vi|~Search, action: Last }
#- { key: Key6, mods: Shift, mode: Vi|~Search, action: FirstOccupied }
#- { key: H, mods: Shift, mode: Vi|~Search, action: High }
#- { key: M, mods: Shift, mode: Vi|~Search, action: Middle }
#- { key: L, mods: Shift, mode: Vi|~Search, action: Low }
#- { key: B, mode: Vi|~Search, action: SemanticLeft }
#- { key: W, mode: Vi|~Search, action: SemanticRight }
#- { key: E, mode: Vi|~Search, action: SemanticRightEnd }
#- { key: B, mods: Shift, mode: Vi|~Search, action: WordLeft }
#- { key: W, mods: Shift, mode: Vi|~Search, action: WordRight }
#- { key: E, mods: Shift, mode: Vi|~Search, action: WordRightEnd }
#- { key: Key5, mods: Shift, mode: Vi|~Search, action: Bracket }
#- { key: Slash, mode: Vi|~Search, action: SearchForward }
#- { key: Slash, mods: Shift, mode: Vi|~Search, action: SearchBackward }
#- { key: N, mode: Vi|~Search, action: SearchNext }
#- { key: N, mods: Shift, mode: Vi|~Search, action: SearchPrevious }
# Search Mode
#- { key: Return, mode: Search|Vi, action: SearchConfirm }
#- { key: Escape, mode: Search, action: SearchCancel }
#- { key: C, mods: Control, mode: Search, action: SearchCancel }
#- { key: U, mods: Control, mode: Search, action: SearchClear }
#- { key: W, mods: Control, mode: Search, action: SearchDeleteWord }
#- { key: P, mods: Control, mode: Search, action: SearchHistoryPrevious }
#- { key: N, mods: Control, mode: Search, action: SearchHistoryNext }
#- { key: Up, mode: Search, action: SearchHistoryPrevious }
#- { key: Down, mode: Search, action: SearchHistoryNext }
#- { key: Return, mode: Search|~Vi, action: SearchFocusNext }
#- { key: Return, mods: Shift, mode: Search|~Vi, action: SearchFocusPrevious }
# (Windows, Linux, and BSD only)
#- { key: V, mods: Control|Shift, mode: ~Vi, action: Paste }
#- { key: C, mods: Control|Shift, action: Copy }
#- { key: F, mods: Control|Shift, mode: ~Search, action: SearchForward }
#- { key: B, mods: Control|Shift, mode: ~Search, action: SearchBackward }
#- { key: C, mods: Control|Shift, mode: Vi|~Search, action: ClearSelection }
#- { 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: NumpadAdd, mods: Control, action: IncreaseFontSize }
#- { key: Minus, mods: Control, action: DecreaseFontSize }
#- { key: NumpadSubtract, mods: Control, action: DecreaseFontSize }
# (Windows only)
#- { key: Return, mods: Alt, action: ToggleFullscreen }
# (macOS only)
#- { key: K, mods: Command, mode: ~Vi|~Search, chars: "\x0c" }
#- { key: K, mods: Command, mode: ~Vi|~Search, action: ClearHistory }
#- { key: Key0, mods: Command, action: ResetFontSize }
#- { key: Equals, mods: Command, action: IncreaseFontSize }
#- { key: Plus, mods: Command, action: IncreaseFontSize }
#- { key: NumpadAdd, mods: Command, action: IncreaseFontSize }
#- { key: Minus, mods: Command, action: DecreaseFontSize }
#- { key: NumpadSubtract, mods: Command, action: DecreaseFontSize }
#- { key: V, mods: Command, action: Paste }
#- { key: C, mods: Command, action: Copy }
#- { key: C, mods: Command, mode: Vi|~Search, action: ClearSelection }
#- { key: H, mods: Command, action: Hide }
#- { key: H, mods: Command|Alt, action: HideOtherApplications }
#- { key: M, mods: Command, action: Minimize }
#- { key: Q, mods: Command, action: Quit }
#- { key: W, mods: Command, action: Quit }
#- { key: N, mods: Command, action: SpawnNewInstance }
#- { key: F, mods: Command|Control, action: ToggleFullscreen }
#- { key: F, mods: Command, mode: ~Search, action: SearchForward }
#- { key: B, mods: Command, mode: ~Search, action: SearchBackward }
#debug:
# Display the time it takes to redraw each frame.
#render_timer: false
# Keep the log file after quitting Alacritty.
#persistent_logging: false
# Log level
#
# Values for `log_level`:
# - Off
# - Error
# - Warn
# - Info
# - Debug
# - Trace
#log_level: Warn
# Print all received window events.
#print_events: false

View File

@ -1,13 +0,0 @@
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=conky
Comment=conky config startup
Exec=/home/klein/.config/conky/Regulus/start.sh
OnlyShowIn=XFCE;
RunHook=0
StartupNotify=false
Terminal=false
Hidden=false

View File

@ -1,12 +0,0 @@
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=picom
Comment=Glava Audio Visualizer
Exec=sh -c 'sleep 10 && glava --desktop'
OnlyShowIn=XFCE;
RunHook=0
StartupNotify=false
Terminal=false
Hidden=false

View File

@ -1,7 +0,0 @@
[Desktop Entry]
Exec=/home/klein/xfce.sh
Icon=dialog-scripts
Name=xfce.sh
Path=
Type=Application
X-KDE-AutostartScript=true

@ -0,0 +1 @@
Subproject commit 47fbce14337600124d49d33eb2476b5ed96a966c

@ -0,0 +1 @@
Subproject commit 3bb3d56c26ac3500aab33381af0cccebf6aaa05c

View File

@ -13,6 +13,7 @@ local cpu_widget = require("awesome-wm-widgets.cpu-widget.cpu-widget")
local ram_widget = require("awesome-wm-widgets.ram-widget.ram-widget") local ram_widget = require("awesome-wm-widgets.ram-widget.ram-widget")
local volume_widget = require('awesome-wm-widgets.volume-widget.volume') local volume_widget = require('awesome-wm-widgets.volume-widget.volume')
local box_separator = wibox.widget.textbox(" | ") local box_separator = wibox.widget.textbox(" | ")
local sharedtags = require("awesome-sharedtags")
-- Theme handling library -- Theme handling library
local beautiful = require("beautiful") local beautiful = require("beautiful")
-- Notification library -- Notification library
@ -27,9 +28,11 @@ require("awful.hotkeys_popup.keys")
-- Check if awesome encountered an error during startup and fell back to -- Check if awesome encountered an error during startup and fell back to
-- another config (This code will only ever execute for the fallback config) -- another config (This code will only ever execute for the fallback config)
if awesome.startup_errors then if awesome.startup_errors then
naughty.notify({ preset = naughty.config.presets.critical, naughty.notify({
preset = naughty.config.presets.critical,
title = "Oops, there were errors during startup!", title = "Oops, there were errors during startup!",
text = awesome.startup_errors }) text = awesome.startup_errors
})
end end
-- Handle runtime errors after startup -- Handle runtime errors after startup
@ -40,9 +43,11 @@ do
if in_error then return end if in_error then return end
in_error = true in_error = true
naughty.notify({ preset = naughty.config.presets.critical, naughty.notify({
preset = naughty.config.presets.critical,
title = "Oops, an error happened!", title = "Oops, an error happened!",
text = tostring(err) }) text = tostring(err)
})
in_error = false in_error = false
end) end)
end end
@ -89,20 +94,23 @@ awful.layout.layouts = {
-- {{{ Menu -- {{{ Menu
-- Create a launcher widget and a main menu -- Create a launcher widget and a main menu
myawesomemenu = { myawesomemenu = {
{ "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end }, { "hotkeys", function() hotkeys_popup.show_help(nil, awful.screen.focused()) end },
{ "manual", terminal .. " -e man awesome" }, { "manual", terminal .. " -e man awesome" },
{ "edit config", editor_cmd .. " " .. awesome.conffile }, { "edit config", editor_cmd .. " " .. awesome.conffile },
{ "restart", awesome.restart }, { "restart", awesome.restart },
{ "quit", function() awesome.quit() end }, { "quit", function() awesome.quit() end },
} }
mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon }, mymainmenu = awful.menu({
{ "open terminal", terminal } items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
} { "open terminal", terminal }
}
}) })
mylauncher = awful.widget.launcher({ image = beautiful.awesome_icon, mylauncher = awful.widget.launcher({
menu = mymainmenu }) image = beautiful.awesome_icon,
menu = mymainmenu
})
-- Menubar configuration -- Menubar configuration
menubar.utils.terminal = terminal -- Set the terminal for applications that require it menubar.utils.terminal = terminal -- Set the terminal for applications that require it
@ -170,73 +178,84 @@ end
-- Re-set wallpaper when a screen's geometry changes (e.g. different resolution) -- Re-set wallpaper when a screen's geometry changes (e.g. different resolution)
screen.connect_signal("property::geometry", set_wallpaper) screen.connect_signal("property::geometry", set_wallpaper)
awful.screen.connect_for_each_screen(function(s) -- Creating tags
-- Wallpaper local tags = sharedtags({
set_wallpaper(s) { name = "main", layout = awful.layout.layouts[1] },
{ name = "web", screen = 2, layout = awful.layout.layouts[1] },
{ name = "irc", layout = awful.layout.layouts[1] },
{ name = "gfx", layout = awful.layout.layouts[1] },
{ name = "music", layout = awful.layout.layouts[1] },
{ name = "em", layout = awful.layout.layouts[1] },
{ name = "ste", layout = awful.layout.layouts[1] },
})
-- Each screen has its own tag table. -- awful.screen.connect_for_each_screen(function(s)
awful.tag({ "term", "web", "irc", "gfx", "vm", "code", "music", "email", "x" }, s, awful.layout.layouts[1]) -- -- Wallpaper
-- set_wallpaper(s)
-- Create a promptbox for each screen -- -- Each screen has its own tag table.
s.mypromptbox = awful.widget.prompt() -- -- awful.tag({ "term", "web", "irc", "gfx", "vm", "code", "music", "email", "x" }, s, awful.layout.layouts[1])
-- Create an imagebox widget which will contain an icon indicating which layout we're using.
-- We need one layoutbox per screen.
s.mylayoutbox = awful.widget.layoutbox(s)
s.mylayoutbox:buttons(gears.table.join(
awful.button({}, 1, function() awful.layout.inc(1) end),
awful.button({}, 3, function() awful.layout.inc(-1) end),
awful.button({}, 4, function() awful.layout.inc(1) end),
awful.button({}, 5, function() awful.layout.inc(-1) end)))
-- Create a taglist widget
s.mytaglist = awful.widget.taglist {
screen = s,
filter = awful.widget.taglist.filter.all,
buttons = taglist_buttons
}
-- Create a tasklist widget -- -- Create a promptbox for each screen
s.mytasklist = awful.widget.tasklist { -- s.mypromptbox = awful.widget.prompt()
screen = s, -- -- Create an imagebox widget which will contain an icon indicating which layout we're using.
filter = awful.widget.tasklist.filter.currenttags, -- -- We need one layoutbox per screen.
buttons = tasklist_buttons -- s.mylayoutbox = awful.widget.layoutbox(s)
} -- s.mylayoutbox:buttons(gears.table.join(
-- awful.button({}, 1, function() awful.layout.inc(1) end),
-- awful.button({}, 3, function() awful.layout.inc(-1) end),
-- awful.button({}, 4, function() awful.layout.inc(1) end),
-- awful.button({}, 5, function() awful.layout.inc(-1) end)))
-- -- Create a taglist widget
-- s.mytaglist = awful.widget.taglist {
-- screen = s,
-- filter = awful.widget.taglist.filter.all,
-- buttons = taglist_buttons
-- }
-- Create the wibox -- -- Create a tasklist widget
s.mywibox = awful.wibar({ position = "top", screen = s }) -- s.mytasklist = awful.widget.tasklist {
-- screen = s,
-- filter = awful.widget.tasklist.filter.currenttags,
-- buttons = tasklist_buttons
-- }
-- Add widgets to the wibox -- -- Create the wibox
s.mywibox:setup { -- s.mywibox = awful.wibar({ position = "top", screen = s })
layout = wibox.layout.align.horizontal,
{ -- Left widgets -- -- Add widgets to the wibox
layout = wibox.layout.fixed.horizontal, -- s.mywibox:setup {
-- mylauncher, -- layout = wibox.layout.align.horizontal,
s.mytaglist, -- { -- Left widgets
s.mylayoutbox, -- layout = wibox.layout.fixed.horizontal,
s.mypromptbox, -- -- mylauncher,
}, -- s.mytaglist,
s.mytasklist, -- Middle widget -- s.mylayoutbox,
{ -- Right widgets -- s.mypromptbox,
layout = wibox.layout.fixed.horizontal, -- },
-- mykeyboardlayout, -- s.mytasklist, -- Middle widget
mpdarc_widget, -- { -- Right widgets
box_separator, -- layout = wibox.layout.fixed.horizontal,
cpu_widget({ -- -- mykeyboardlayout,
width = 70, -- mpdarc_widget,
step_width = 2, -- box_separator,
step_spacing = 0, -- cpu_widget({
color = '#8c9440', -- width = 70,
}), -- step_width = 2,
box_separator, -- step_spacing = 0,
ram_widget(), -- color = '#8c9440',
box_separator, -- }),
mytextclock, -- box_separator,
box_separator, -- ram_widget(),
volume_widget(), -- box_separator,
box_separator, -- mytextclock,
wibox.widget.systray(), -- box_separator,
}, -- volume_widget(),
} -- box_separator,
end) -- wibox.widget.systray(),
-- },
-- }
-- end)
-- }}} -- }}}
-- {{{ Mouse bindings -- {{{ Mouse bindings
@ -300,7 +319,6 @@ globalkeys = gears.table.join(
{ description = "reload awesome", group = "awesome" }), { description = "reload awesome", group = "awesome" }),
awful.key({ modkey, "Shift" }, "q", awesome.quit, awful.key({ modkey, "Shift" }, "q", awesome.quit,
{ description = "quit awesome", group = "awesome" }), { description = "quit awesome", group = "awesome" }),
awful.key({ modkey, }, "l", function() awful.tag.incmwfact(0.05) end, awful.key({ modkey, }, "l", function() awful.tag.incmwfact(0.05) end,
{ description = "increase master width factor", group = "layout" }), { description = "increase master width factor", group = "layout" }),
awful.key({ modkey, }, "h", function() awful.tag.incmwfact(-0.05) end, awful.key({ modkey, }, "h", function() awful.tag.incmwfact(-0.05) end,
@ -333,71 +351,76 @@ globalkeys = gears.table.join(
-- Personal Keybindings -- Personal Keybindings
awful.key({ modkey, "Shift" }, "Return", function() awful.key({ modkey, "Shift" }, "Return", function()
awful.util.spawn("/home/klein/.config/rofi/launchers/type-7/launcher.sh") awful.spawn.with_shell("~/.config/rofi/launchers/type-7/launcher.sh")
end, end,
{ description = "launch rofi", group = "personal" }), { description = "launch rofi", group = "personal" }),
awful.key({ modkey, "Control" }, "Return", function() awful.key({ modkey, "Control" }, "Return", function()
awful.util.spawn("/home/klein/.config/rofi/applets/bin/mpd.sh") awful.spawn.with_shell("~/.config/rofi/applets/bin/mpd.sh")
end, end,
{ description = "launch mpd 'gui'", group = "personal" }), { description = "launch mpd 'gui'", group = "personal" }),
awful.key({ modkey, "Shift" }, "Escape", function() awful.key({ modkey, "Shift" }, "Escape", function()
awful.spawn.with_shell("/home/klein/.config/rofi/powermenu/type-6/powermenu.sh") awful.spawn.with_shell("/home/jab/.config/rofi/powermenu/type-6/powermenu.sh")
end, end,
{ description = "launch rofi", group = "personal" }), { description = "launch rofi", group = "personal" }),
awful.key({ modkey }, "e", function() awful.key({ modkey }, "e", function()
awful.util.spawn("pcmanfm") awful.util.spawn("pcmanfm")
end, end,
{ description = "launch PCManFM", group = "personal" }), { description = "launch PCManFM", group = "personal" }),
awful.key({ modkey }, "b", function() awful.key({ modkey }, "b", function()
-- awful.util.spawn("brave-bin") end, -- awful.util.spawn("brave-bin") end,
awful.util.spawn("firefox") awful.util.spawn("firefox-bin")
end, end,
{ description = "launch browser", group = "personal" }), { description = "launch browser", group = "personal" }),
awful.key({ modkey }, "v", function() awful.key({ modkey }, "v", function()
awful.util.spawn("vscodium") awful.util.spawn("vscodium")
end, end,
{ description = "launch vscodium", group = "personal" }), { description = "launch vscodium", group = "personal" }),
awful.key({ modkey, "Shift" }, "v", function() awful.key({ modkey, "Shift" }, "v", function()
awful.util.spawn("emacsclient -c") awful.util.spawn("emacsclient -c")
end, end,
{ description = "launch emacs", group = "personal" }), { description = "launch emacs", group = "personal" }),
awful.key({ modkey }, "Escape", function() awful.key({ modkey }, "Escape", function()
awful.util.spawn("mpc toggle") awful.util.spawn("mpc toggle")
end, end,
{ description = "toggle pause/play music", group = "personal" }), { description = "toggle pause/play music", group = "personal" }),
awful.key({ modkey }, "F1", function() awful.key({ modkey }, "F1", function()
awful.util.spawn("mpc prev") awful.util.spawn("mpc prev")
end, end,
{ description = "previous music", group = "personal" }), { description = "previous music", group = "personal" }),
awful.key({ modkey }, "F2", function() awful.key({ modkey }, "F2", function()
awful.util.spawn("mpc next") awful.util.spawn("mpc next")
end, end,
{ description = "next music", group = "personal" }), { description = "next music", group = "personal" }),
awful.key({ modkey, "Shift" }, "m", function() awful.key({ modkey, "Shift" }, "m", function()
awful.util.spawn("alacritty -e ncmpcpp") awful.util.spawn("alacritty -e ncmpcpp")
end, end,
{ description = "launch ncmpcpp", group = "personal" }), { description = "launch ncmpcpp", group = "personal" }),
awful.key({ "Shift" }, "Print", function() awful.key({ "Shift" }, "Print", function()
awful.spawn.with_shell("sh $HOME/.local/bin/print-select") awful.spawn.with_shell("sh $HOME/.local/bin/print-select")
end, end,
{ description = "print selected area", group = "personal" }), { description = "print selected area", group = "personal" }),
awful.key({ "Shift" }, "Print", function()
awful.spawn.with_shell("sh $HOME/.local/bin/print-select")
end,
{ description = "print current selected window", group = "personal" }),
awful.key({}, "Print", function() awful.key({}, "Print", function()
awful.spawn.with_shell("sh $HOME/.local/bin/print-fullscreen") awful.spawn.with_shell("sh $HOME/.local/bin/print-fullscreen")
end, end,
{ description = "print fullscreen", group = "personal" }), { description = "print fullscreen", group = "personal" }),
-- Prompt -- Prompt
@ -475,9 +498,9 @@ for i = 1, 9 do
awful.key({ modkey }, "#" .. i + 9, awful.key({ modkey }, "#" .. i + 9,
function() function()
local screen = awful.screen.focused() local screen = awful.screen.focused()
local tag = screen.tags[i] local tag = tags[i]
if tag then if tag then
tag:view_only() sharedtags.viewonly(tag, screen)
end end
end, end,
{ description = "view tag #" .. i, group = "tag" }), { description = "view tag #" .. i, group = "tag" }),
@ -485,9 +508,9 @@ for i = 1, 9 do
awful.key({ modkey, "Control" }, "#" .. i + 9, awful.key({ modkey, "Control" }, "#" .. i + 9,
function() function()
local screen = awful.screen.focused() local screen = awful.screen.focused()
local tag = screen.tags[i] local tag = tags[i]
if tag then if tag then
awful.tag.viewtoggle(tag) sharedtags.viewtoggle(tag, screen)
end end
end, end,
{ description = "toggle tag #" .. i, group = "tag" }), { description = "toggle tag #" .. i, group = "tag" }),
@ -495,7 +518,7 @@ for i = 1, 9 do
awful.key({ modkey, "Shift" }, "#" .. i + 9, awful.key({ modkey, "Shift" }, "#" .. i + 9,
function() function()
if client.focus then if client.focus then
local tag = client.focus.screen.tags[i] local tag = tags[i]
if tag then if tag then
client.focus:move_to_tag(tag) client.focus:move_to_tag(tag)
end end
@ -506,7 +529,7 @@ for i = 1, 9 do
awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9, awful.key({ modkey, "Control", "Shift" }, "#" .. i + 9,
function() function()
if client.focus then if client.focus then
local tag = client.focus.screen.tags[i] local tag = tags[i]
if tag then if tag then
client.focus:toggle_tag(tag) client.focus:toggle_tag(tag)
end end
@ -538,8 +561,10 @@ root.keys(globalkeys)
-- Rules to apply to new clients (through the "manage" signal). -- Rules to apply to new clients (through the "manage" signal).
awful.rules.rules = { awful.rules.rules = {
-- All clients will match this rule. -- All clients will match this rule.
{ rule = {}, {
properties = { border_width = beautiful.border_width, rule = {},
properties = {
border_width = beautiful.border_width,
border_color = beautiful.border_normal, border_color = beautiful.border_normal,
focus = awful.client.focus.filter, focus = awful.client.focus.filter,
raise = true, raise = true,
@ -551,136 +576,196 @@ awful.rules.rules = {
}, },
-- Floating clients. -- Floating clients.
{ rule_any = { {
instance = { rule_any = {
"DTA", -- Firefox addon DownThemAll. instance = {
"copyq", -- Includes session name in class. "DTA", -- Firefox addon DownThemAll.
"pinentry", "copyq", -- Includes session name in class.
}, "pinentry",
class = { },
"Arandr", class = {
"Blueman-manager", "Arandr",
"Gpick", "Blueman-manager",
"Pavucontrol", "Gpick",
"Arandr", "Pavucontrol",
"Blueman-manager", "Arandr",
"Transmission-gtk", "Blueman-manager",
"Bottles", "Transmission-gtk",
"Lutris", "Bottles",
"Virt-manager", "Lutris",
"Pcmanfm", "Virt-manager",
"Nitrogen", "Pcmanfm",
"PolyMC", "Nitrogen",
"scrcpy", "PolyMC",
"Kruler", "scrcpy",
"MessageWin", -- kalarm. "Kruler",
"Sxiv", "MessageWin", -- kalarm.
"Tor Browser", -- Needs a fixed window size to avoid fingerprinting by screen size. "Sxiv",
"Wpa_gui", "Tor Browser", -- Needs a fixed window size to avoid fingerprinting by screen size.
"veromix", "Wpa_gui",
"xtightvncviewer" "veromix",
}, "xtightvncviewer"
},
-- 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 = {
"AlarmWindow", -- Thunderbird's calendar.
"ConfigManager", -- Thunderbird's about:config.
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
}
}, },
role = { properties = { floating = true }
"AlarmWindow", -- Thunderbird's calendar.
"ConfigManager", -- Thunderbird's about:config.
"pop-up", -- e.g. Google Chrome's (detached) Developer Tools.
}
}, properties = { floating = true } },
-- Add titlebars to normal clients and dialogs
{ rule_any = { type = { "normal", "dialog" }
}, properties = { titlebars_enabled = false }
}, },
{ rule = { class = "Steam" }, -- Add titlebars to normal clients and dialogs
properties = { screen = 2, tag = "x" } }, {
rule_any = { type = { "normal", "dialog" }
},
properties = { titlebars_enabled = false }
},
{ rule = { class = "discord" }, {
properties = { screen = 2, tag = "irc" } }, rule = { class = "Steam" },
properties = { tag = tags[7] }
},
{ rule = { class = "firefox-esr" }, {
properties = { screen = 2, tag = "web" } }, rule = { class = "discord" },
properties = { tag = tags[3] }
},
{ rule = { class = "leagueclientux.exe" }, {
properties = { floating = true, screen = 1, tag = "gfx" } }, rule = { class = "firefox" },
properties = { tag = tags[2] }
},
{ rule = { class = "league of legends.exe" }, {
properties = { floating = true, screen = 1, tag = "gfx" } }, rule = { class = "leagueclientux.exe" },
properties = { floating = true, tag = tags[4] }
},
{ rule = { class = "Minecraft 1.19" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "league of legends.exe" },
properties = { floating = true, tag = tags[4] }
},
{ rule = { class = "riotclientux.exe" }, {
properties = { floating = true, screen = 1, tag = "gfx" } }, rule = { class = "Minecraft 1.19" },
properties = { tag = tags[4] }
},
{ rule = { class = "dauntless-win64-shipping.exe" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "riotclientux.exe" },
properties = { floating = true, tag = tags[4] }
},
{ rule = { class = "leagueclient.exe" }, {
properties = { floating = true, screen = 1, tag = "gfx" } }, rule = { class = "dauntless-win64-shipping.exe" },
properties = { tag = tags[4] }
},
{ rule = { class = "steam_app_678960" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "leagueclient.exe" },
properties = { floating = true, tag = tags[4] }
},
{ rule = { class = "steam_app_335300" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "steam_app_678960" },
properties = { tag = tags[4] }
},
{ rule = { class = "battle.net.exe" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "steam_app_335300" },
properties = { tag = tags[4] }
},
{ rule = { class = "overwatch.exe" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "battle.net.exe" },
{ rule = { class = "steam_app_312060" }, properties = { tag = tags[4] }
properties = { screen = 1, tag = "gfx" } }, },
{
rule = { class = "overwatch.exe" },
properties = { tag = tags[4] }
},
{
rule = { class = "steam_app_312060" },
properties = { tag = tags[4] }
},
{ rule = { class = "steam_app_292030" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "steam_app_292030" },
properties = { tag = tags[4] }
},
{ rule = { class = "steam_app_381210" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "steam_app_381210" },
properties = { tag = tags[4] }
},
{ rule = { class = "steam_app_374320" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "steam_app_374320" },
properties = { tag = tags[4] }
},
{ rule = { class = "steam_app_814380" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "steam_app_814380" },
properties = { tag = tags[4] }
},
{ rule = { class = "steam_app_1172620" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "steam_app_1172620" },
properties = { tag = tags[4] }
},
{ rule = { class = "csgo_linux64" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "csgo_linux64" },
properties = { tag = tags[4] }
},
{ rule = { class = "steam_app_291550" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "steam_app_291550" },
properties = { tag = tags[4] }
},
{ rule = { class = "steam_app_1245620" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "steam_app_1245620" },
properties = { tag = tags[4] }
},
{ rule = { class = "steam_app_570940" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "steam_app_570940" },
properties = { tag = tags[4] }
},
{ rule = { class = "steam_app_1172470" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "steam_app_1172470" },
properties = { tag = tags[4] }
},
{ rule = { class = "steam_app_1446780" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "steam_app_1446780" },
properties = { tag = tags[4] }
},
{ rule = { class = "steam_app_230410" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "steam_app_230410" },
properties = { tag = tags[4] }
},
{ rule = { class = "Lutris" }, {
properties = { screen = 1, tag = "gfx" } }, rule = { class = "Lutris" },
properties = { tag = tags[4] }
},
{ rule = { class = "Virt-manager" }, {
properties = { screen = 1, tag = "vm" } }, rule = { class = "Virt-manager" },
properties = { tag = tags[5] }
},
@ -722,7 +807,7 @@ client.connect_signal("request::titlebars", function(c)
buttons = buttons, buttons = buttons,
layout = wibox.layout.fixed.horizontal layout = wibox.layout.fixed.horizontal
}, },
{ -- Middle { -- Middle
{ -- Title { -- Title
align = "center", align = "center",
widget = awful.titlebar.widget.titlewidget(c) widget = awful.titlebar.widget.titlewidget(c)
@ -752,11 +837,7 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n
-- }}} -- }}}
-- Autostart -- Autostart
awful.spawn.with_shell("/home/klein/scripts/screenlayout.sh") awful.spawn.with_shell("~/scripts/awesome.sh")
awful.spawn.with_shell("/home/klein/scripts/autostart.sh")
-- awful.spawn.with_shell("urxvtd --quiet --opendisplay --fork")
awful.spawn.with_shell("nm-applet")
awful.spawn.with_shell("nitrogen --restore &")
-- Gaps -- Gaps
beautiful.useless_gap = 6 beautiful.useless_gap = 6

View File

@ -1,223 +1,64 @@
[global] [global]
font = Monospace 8 font = "Ubuntu Nerd Font, Cartograph CF Regular 13"
# allow a small subset of html markup:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough<s/>
# <u>underline</u>
#
# for a complete reference see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html
# If markup is not allowed, those tags will be stripped out of the message.
allow_markup = yes allow_markup = yes
markup = yes
# The format of the message. Possible variables are: format = "<span foreground='#5bb1b4'><b>%s</b></span>\n%b"
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# Markup is allowed
format = "<b>%a:</b> %s\n%b"
# Sort messages by urgency
sort = yes sort = yes
# Show how many messages are currently hidden (because of geometry)
indicate_hidden = yes indicate_hidden = yes
# alignment of message text.
# Possible values are "left", "center" and "right"
alignment = left
# The frequency with wich text that is longer than the notification
# window allows bounces back and forth.
# This option conflicts with 'word_wrap'.
# Set to 0 to disable
bounce_freq = 0 bounce_freq = 0
# show age of message if message is older than show_age_threshold seconds.
# set to -1 to disable
show_age_threshold = 60 show_age_threshold = 60
# split notifications into multiple lines if they don't fit into geometry
word_wrap = yes word_wrap = yes
ignore_newline = false
# ignore newlines '\n' in notifications origin = bottom-center
ignore_newline = no transparency = 5
# the geometry of the window
# geometry [{width}]x{height}][+/-{x}+/-{y}]
# The geometry of the message window.
# The height is measured in number of notifications everything else in pixels. If the width
# is omitted but the height is given ("-geometry x2"), the message window
# expands over the whole screen (dmenu-like). If width is 0,
# the window expands to the longest message displayed.
# A positive x is measured from the left, a negative from the
# right side of the screen. Y is measured from the top and down respectevly.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "300x5-30+20"
# The transparency of the window. range: [0; 100]
# This option will only work if a compositing windowmanager is present (e.g. xcompmgr, compiz, etc..)
transparency = 0
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
idle_threshold = 120 idle_threshold = 120
monitor = 0
# Which monitor should the notifications be displayed on. follow = mouse
monitor = 1
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
#
# "keyboard" needs a windowmanager that exports the _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern windowmanagers.
#
# If this option is set to mouse or keyboard, the monitor option will be
# ignored.
follow = none
# should a notification popped up from history be sticky or
# timeout as if it would normally do.
sticky_history = yes sticky_history = yes
# The height of a single line. If the height is smaller than the font height,
# it will get raised to the font height.
# This adds empty space above and under the text.
line_height = 0 line_height = 0
# Draw a line of 'separatpr_height' pixel height between two notifications.
# Set to 0 to disable
separator_height = 2 separator_height = 2
padding = 12
# padding between text and separator horizontal_padding = 12
padding = 8 separator_color = "#3c4549"
separator_width = 1
# horizontal padding startup_notification = false
horizontal_padding = 8 corner_radius = 15
frame_color = "#3c4549"
# Define a color for the separator. frame_width = 1
# possible values are: width = 400
# * auto: dunst tries to find a color fitting to the background progress_bar_max_width = 400
# * foreground: use the same color as the foreground progress_bar_min_width = 400
# * frame: use the same color as the frame. progress_bar_height = 10
# * anything else will be interpreted as a X color progress_bar_frame_width = 1
separator_color = frame progress_bar_corner_radius = 5
scale = 1
# print a notification on startup min_icon_size = 64
# This is mainly for error detection, since dbus (re-)starts dunst max_icon_size = 64
# automatically after a crash. alignment = center
startup_notification = true vertical_alignment = center
#offset = 12x67
# dmenu path
dmenu = /usr/bin/dmenu -p dunst:
# browser for opening urls in context menu
browser = /usr/bin/firefox -new-tab
[frame]
width = 0
color = "#000000"
[shortcuts] [shortcuts]
# shortcuts are specified as [modifier+][modifier+]...key close = ctrl+space
# available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3' close_all = ctrl+shift+space
# and 'mod4' (windows-key) history = ctrl+grave
# xev might be helpful to find names for keys context = ctrl+shift+period
# close notification
close = mod4+c
# close all notifications
close_all = mod4+shift+m
# redisplay last message(s)
history = mod4+n
# context menu
context = mod4+shift+i
[urgency_low] [urgency_low]
# IMPORTANT: colors have to be defined in quotation marks. background = "#131519"
# Otherwise the '#' and following would be interpreted as a comment. foreground = "#ffffff"
background = "#222222" highlight = "#5bb1b4"
foreground = "#888888" timeout = 5
timeout = 10
[urgency_normal] [urgency_normal]
background = "#303030" background = "#131519"
foreground = "#ffffff" foreground = "#ffffff"
timeout = 10 highlight = "#5bb1b4"
timeout = 20
[urgency_critical] [urgency_critical]
background = "#900000" background = "#131519"
foreground = "#ffffff" foreground = "#ffffff"
highlight = "#5bb1b4"
timeout = 0 timeout = 0
# Every section that isn't one of the above is interpreted as a rules
# to override settings for certain messages.
# Messages can be matched by 'appname', 'summary', 'body' or 'icon'
# and you can override the 'timeout', 'urgency', 'foreground', 'background'
# and 'format'.
# Shell-like globbing will get expanded.
#
# SCRIPTING
# you can specify a script that gets run when the rule matches by setting
# the 'script' option.
# The script will be called as follows:
# script appname summary body icon urgency
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
#
# NOTE: if you don't want a notification to be displayed, set the format to ""
# NOTE: It might be helpful to run dunst -print in a terminal in order to find
# fitting options for rules.
#[espeak]
# summary = "*"
# script = dunst_espeak.sh
#[script-test]
# summary = "*script*"
# script = dunst_test.sh
#[ignore]
## This notification will not be displayed
# summary = "foobar"
# format = ""
[signed_on]
appname = Pidgin
summary = "*signed on*"
urgency = low
[signed_off]
appname = Pidgin
summary = *signed off*
urgency = low
[says]
appname = Pidgin
summary = *says*
urgency = critical
format = "%s "%b""
[music]
appname = Amarok
summary = "Now playing"
urgency = low
#[twitter]
# appname = Pidgin
# summary = *twitter.com*
# urgency = normal
#

View File

@ -0,0 +1,223 @@
[global]
font = Cartograph CF 13
# allow a small subset of html markup:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough<s/>
# <u>underline</u>
#
# for a complete reference see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html
# If markup is not allowed, those tags will be stripped out of the message.
allow_markup = yes
# The format of the message. Possible variables are:
# %a appname
# %s summary
# %b body
# %i iconname (including its path)
# %I iconname (without its path)
# %p progress value if set ([ 0%] to [100%]) or nothing
# Markup is allowed
format = "<b>%a:</b> %s\n%b"
# Sort messages by urgency
sort = yes
# Show how many messages are currently hidden (because of geometry)
indicate_hidden = yes
# alignment of message text.
# Possible values are "left", "center" and "right"
alignment = left
# The frequency with wich text that is longer than the notification
# window allows bounces back and forth.
# This option conflicts with 'word_wrap'.
# Set to 0 to disable
bounce_freq = 0
# show age of message if message is older than show_age_threshold seconds.
# set to -1 to disable
show_age_threshold = 60
# split notifications into multiple lines if they don't fit into geometry
word_wrap = yes
# ignore newlines '\n' in notifications
ignore_newline = no
# the geometry of the window
# geometry [{width}]x{height}][+/-{x}+/-{y}]
# The geometry of the message window.
# The height is measured in number of notifications everything else in pixels. If the width
# is omitted but the height is given ("-geometry x2"), the message window
# expands over the whole screen (dmenu-like). If width is 0,
# the window expands to the longest message displayed.
# A positive x is measured from the left, a negative from the
# right side of the screen. Y is measured from the top and down respectevly.
# The width can be negative. In this case the actual width is the
# screen width minus the width defined in within the geometry option.
geometry = "300x5-30+20"
# The transparency of the window. range: [0; 100]
# This option will only work if a compositing windowmanager is present (e.g. xcompmgr, compiz, etc..)
transparency = 0
# Don't remove messages, if the user is idle (no mouse or keyboard input)
# for longer than idle_threshold seconds.
# Set to 0 to disable.
idle_threshold = 120
# Which monitor should the notifications be displayed on.
monitor = 1
# Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer
# keyboard: follow window with keyboard focus
# none: don't follow anything
#
# "keyboard" needs a windowmanager that exports the _NET_ACTIVE_WINDOW property.
# This should be the case for almost all modern windowmanagers.
#
# If this option is set to mouse or keyboard, the monitor option will be
# ignored.
follow = none
# should a notification popped up from history be sticky or
# timeout as if it would normally do.
sticky_history = yes
# The height of a single line. If the height is smaller than the font height,
# it will get raised to the font height.
# This adds empty space above and under the text.
line_height = 0
# Draw a line of 'separatpr_height' pixel height between two notifications.
# Set to 0 to disable
separator_height = 2
# padding between text and separator
padding = 8
# horizontal padding
horizontal_padding = 8
# Define a color for the separator.
# possible values are:
# * auto: dunst tries to find a color fitting to the background
# * foreground: use the same color as the foreground
# * frame: use the same color as the frame.
# * anything else will be interpreted as a X color
separator_color = frame
# print a notification on startup
# This is mainly for error detection, since dbus (re-)starts dunst
# automatically after a crash.
startup_notification = true
# dmenu path
dmenu = /usr/bin/dmenu -p dunst:
# browser for opening urls in context menu
browser = /usr/bin/firefox -new-tab
[frame]
width = 0
color = "#000000"
[shortcuts]
# shortcuts are specified as [modifier+][modifier+]...key
# available modifiers are 'ctrl', 'mod1' (the alt-key), 'mod2', 'mod3'
# and 'mod4' (windows-key)
# xev might be helpful to find names for keys
# close notification
close = mod4+c
# close all notifications
close_all = mod4+shift+m
# redisplay last message(s)
history = mod4+n
# context menu
context = mod4+shift+i
[urgency_low]
# IMPORTANT: colors have to be defined in quotation marks.
# Otherwise the '#' and following would be interpreted as a comment.
background = "#222222"
foreground = "#888888"
timeout = 10
[urgency_normal]
background = "#303030"
foreground = "#ffffff"
timeout = 10
[urgency_critical]
background = "#900000"
foreground = "#ffffff"
timeout = 0
# Every section that isn't one of the above is interpreted as a rules
# to override settings for certain messages.
# Messages can be matched by 'appname', 'summary', 'body' or 'icon'
# and you can override the 'timeout', 'urgency', 'foreground', 'background'
# and 'format'.
# Shell-like globbing will get expanded.
#
# SCRIPTING
# you can specify a script that gets run when the rule matches by setting
# the 'script' option.
# The script will be called as follows:
# script appname summary body icon urgency
# where urgency can be "LOW", "NORMAL" or "CRITICAL".
#
# NOTE: if you don't want a notification to be displayed, set the format to ""
# NOTE: It might be helpful to run dunst -print in a terminal in order to find
# fitting options for rules.
#[espeak]
# summary = "*"
# script = dunst_espeak.sh
#[script-test]
# summary = "*script*"
# script = dunst_test.sh
#[ignore]
## This notification will not be displayed
# summary = "foobar"
# format = ""
[signed_on]
appname = Pidgin
summary = "*signed on*"
urgency = low
[signed_off]
appname = Pidgin
summary = *signed off*
urgency = low
[says]
appname = Pidgin
summary = *says*
urgency = critical
format = "%s "%b""
[music]
appname = Amarok
summary = "Now playing"
urgency = low
#[twitter]
# appname = Pidgin
# summary = *twitter.com*
# urgency = normal
#

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -0,0 +1,108 @@
* {
all: unset; //Unsets everything so you can style everything from scratch
}
//Global Styles
.bar0 {
background-color: #181818;
color: #fff;
font-family: "RobotoMono Nerd Font";
font-size: 16px;
}
// Styles on classes (see eww.yuck for more information)
.sidestuff slider {
all: unset;
color: #ffd5cd;
}
.sidestuff {
font-size: 16px;
font-family: "RobotoMono Nerd Font";
font-weight: bold;
}
.metric scale trough highlight {
all: unset;
background-color: #259185;
color: #000000;
border-radius: 10px;
}
.metric scale trough {
all: unset;
background-color: #4e4e4e;
border-radius: 50px;
min-height: 3px;
min-width: 50px;
margin-left: 10px;
margin-right: 20px;
}
.metric scale trough highlight {
all: unset;
background-color: #259185;
color: #000000;
border-radius: 10px;
}
.metric label {
font-size: 20px;
}
.metric scale trough {
all: unset;
background-color: #4e4e4e;
border-radius: 50px;
min-height: 3px;
min-width: 60px;
margin-left: 10px;
margin-right: 20px;
}
.label-ram {
font-size: 19px;
}
.time {
margin-right: 20px;
}
.workspaces {
margin-left: 0px;
}
.workspaces button {
font-size: 24px;
padding: 6px 10px;
font-weight: 600;
}
.workspaces button:hover {
color: #259185;
}
.ws-button-mine {
color: #fcf4dc;
background-color: #434343;
}
.ws-button-visible {
color: #fcf4dc;
background-color: #434343;
}
.ws-button-urgent {
color: #ffd5ca;
background-color: #259185;
}
.ws-button-busy {
color: #259185;
}
.ws-button {
color: #b0b4bc;
}
.music {
font-family: "Cartograph CF Bold";
font-weight: 600;
font-size: 17px;
}
.spotify {
font-size: 20px;
margin-bottom: 2px;
}

View File

@ -0,0 +1,94 @@
(defwidget bar []
(centerbox :orientation "h"
(workspaces)
(middle)
(sidestuff)))
(defwidget middle []
(box :orientation "h" :space-evenly false
(icon)
(music)))
(defwidget sidestuff []
(box :class "sidestuff" :orientation "h" :space-evenly false :halign "end"
(metric :label "󰻠"
:value '${EWW_CPU.avg}'
:onchange "")
(metric :label "󰍛"
:value '${EWW_RAM.used_mem_perc}'
:onchange "")
(metric :label ""
:value {round((1 - (EWW_DISK["/"].free / EWW_DISK["/"].total)) * 100, 0)}
:onchange "")
(time)))
; eww is natively able to parse the JSON output of `leftwm-state`
; since eww also has the ability of `for` loops there is no need for a `liquid` template anymore
(defwidget workspaces []
(box :class "workspaces"
:orientation "h"
:space-evenly true
:halign "start"
:spacing 5
(box
(for tag in '${wmstate.workspaces[0].tags}'
(button
:class {tag.mine ? "ws-button-mine" :
tag.visible ? "ws-button-visible" :
tag.urgent ? "ws-button-urgent" :
tag.busy ? "ws-button-busy" : "ws-button"}
:onclick "leftwm-command \"SendWorkspaceToTag 0 ${tag.index}\""
{!tag.mine && !tag.busy && !tag.visible && !tag.urgent ? "" : ""})))))
(defwidget music []
(box :class "music"
:orientation "h"
:space-evenly false
:halign "center"
{music != "" ? "${music}"[:50] : ""}))
(defwidget icon []
(box :class "spotify"
:orientation "h"
:space-evenly false
:halign "center"
{music != "" ? " " : ""}))
(defwidget metric [label value onchange]
(box :orientation "h"
:class "metric"
:space-evenly false
(box :class "label" label)
(scale :min 0
:max 101
:active {onchange != ""}
:value value
:onchange onchange)))
(defwidget time []
(box :class "time" {time}))
(deflisten music :initial ""
"playerctl --follow metadata --format '{{ artist }} - {{ title }}' || true")
(defpoll volume :interval "1s" :initial "50"
"scripts/getvol")
(defpoll time :interval "10s"
"date '+%H:%M - %d %b, %Y'")
(deflisten wmstate
:initial '{"workspaces":[{"layout":"","tags":[{"name":"","index":0,"mine":false,"busy":false,"visible":false,"urgent":false}]}]}'
"leftwm state")
(defwindow bar0
:monitor 1
:windowtype "dock"
:geometry (geometry :x "0%"
:y "0%"
:width "100%"
:height "30px"
:anchor "top left")
:reserve (struts :side "top" :distance "5%")
(bar))

View File

@ -0,0 +1,2 @@
#!/bin/sh
printf "%.0f\n" $(free -m | grep Mem | awk '{print ($3/$2)*100}')

View File

@ -0,0 +1,6 @@
#!/bin/sh
if [ -x "$(command -v amixer)" ]; then
amixer -D pulse sget Master | grep 'Left:' | awk -F'[][]' '{ print $2 }' | tr -d '%' | head -1
elif [ -x "$(command -v pactl)" ]; then
pactl list sinks | grep left: | awk '{print $5}' | tr -d "%" | head -1
fi

View File

@ -4,11 +4,13 @@ monitor=HDMI-A-1, 1920x1080, 0x0, 1
monitor=DP-1, 1920x1080, 1920x145, 1 monitor=DP-1, 1920x1080, 1920x145, 1
exec-once = ~/.local/bin/waybar & hyprpaper & redshift -t 5700:3600 -l -23.5475:-46.63611 -b 0.9:0.6 exec-once = hyprpaper & redshift -t 5700:3600 -l -23.5475:-46.63611 -b 0.9:0.5
exec-once = lxqt-policykit-agent exec-once = lxqt-policykit-agent
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=Hyprland exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=Hyprland
exec-once = mpd exec-once = mpd
exec-once = rm -rf ~/tmp/* exec-once = rm -rf ~/tmp/*
exec-once = dunst &
exec-once = gsettings set org.gnome.desktop.interface icon-theme Qogir & gsettings set org.gnome.desktop.interface gtk-theme Adapta-Eta
# source = ~/.config/hypr/myColors.conf # source = ~/.config/hypr/myColors.conf
input { input {
@ -24,7 +26,8 @@ input {
natural_scroll = no natural_scroll = no
} }
sensitivity = -0.69 # -1.0 - 1.0, 0 means no modification. # sensitivity = -0.69 # -1.0 - 1.0, 0 means no modification.
sensitivity = -0.5
} }
general { general {
@ -79,6 +82,10 @@ master {
windowrule = workspace 2 silent, ^(firefox-esr)$ windowrule = workspace 2 silent, ^(firefox-esr)$
windowrule = workspace 2 silent, ^(firefox)$ windowrule = workspace 2 silent, ^(firefox)$
windowrule = workspace 2 silent, ^(Brave-browser)$
windowrule = workspace 4 silent, ^(Waydroid)$
windowrule = workspace 4 silent, ^(Waydroid)$
windowrule = workspace 4 silent, Minecraft* windowrule = workspace 4 silent, Minecraft*
windowrule = size 1920x1080, Minecraft* windowrule = size 1920x1080, Minecraft*
@ -92,11 +99,13 @@ windowrule = noanim, pobfrontend
windowrule = workspace 3 silent, org.prismlauncher.PrismLauncher windowrule = workspace 3 silent, org.prismlauncher.PrismLauncher
windowrule = float, org.prismlauncher.PrismLauncher windowrule = float, org.prismlauncher.PrismLauncher
windowrule = float, io.bassi.Amberol
windowrule = workspace 5 silent, ^(com.obsproject.Studio)$ windowrule = workspace 5 silent, ^(com.obsproject.Studio)$
windowrule = float, ^(vlc)$ windowrule = float, ^(vlc)$
windowrule = float, ^(lxqt-policykit-agent)$ windowrule = float, ^(lxqt-policykit-agent)$
windowrule = float, ^(pavucontrol)$ windowrule = float, ^(pavucontrol)$
windowrule = workspace 3 silent, ^(Google-chrome)$ windowrule = workspace 3 silent, ^(Google-chrome)$
windowrule = workspace 3 silent, ^(discord)$
windowrule = float, title:^(Firefox — Sharing Indicator)$ windowrule = float, title:^(Firefox — Sharing Indicator)$
windowrule = workspace 9 silent, title:^(Firefox — Sharing Indicator)$ windowrule = workspace 9 silent, title:^(Firefox — Sharing Indicator)$
windowrule = float, title:^(Steam - News) windowrule = float, title:^(Steam - News)
@ -105,7 +114,7 @@ windowrule = float, ^(org.gnome.Nautilus)$
windowrule = fullscreen, gamescope windowrule = fullscreen, gamescope
windowrule = noblur, gamescope windowrule = noblur, gamescope
windowrule = forceinput, ^(gamescope)$ # windowrule = forceinput, ^(gamescope)$
windowrule = workspace 4 silent, ^(gamescope)$ windowrule = workspace 4 silent, ^(gamescope)$
windowrule = noanim, gamescope windowrule = noanim, gamescope
windowrule = noshadow, gamescope windowrule = noshadow, gamescope
@ -118,29 +127,29 @@ windowrule = float, ^(lutris)
windowrule = size 720x1080, ^(lutris) windowrule = size 720x1080, ^(lutris)
windowrule = center, ^(lutris) windowrule = center, ^(lutris)
windowrule = workspace 4 silent,^(explorer.exe)$ windowrule = workspace 4 silent,^(explorer.exe)$
windowrule = float, ^(thunar)$
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
$mainMod = SUPER $mainMod = SUPER
bind = $mainMod, Return, exec, kitty bind = $mainMod, Return, exec, kitty
bind = $mainMod SHIFT, M, exec, kitty -e ncmpcpp bind = $mainMod SHIFT, M, exec, kitty -e ncmpcpp
bind = $mainMod CONTROL, Return, exec, kitty -c /home/jab/.config/kitty/undefined.conf # bind = $mainMod CONTROL, Return, exec, kitty -c /home/jab/.config/kitty/undefined.conf
bind = $mainMod SHIFT, C, killactive, bind = $mainMod SHIFT, C, killactive,
bind = $mainMod SHIFT, Q, exit, bind = CONTROL SHIFT, Q, exec, pkill -KILL -U $USER
bind = $mainMod, E, exec, nautilus bind = $mainMod SHIFT, S, exec, $HOME/steam/steam.sh
bind = $mainMod, Space, togglefloating, bind = $mainMod, E, exec, thunar
bind = $mainMod, t, togglefloating,
bind = $mainMod SHIFT, Return, exec, ~/.config/rofi/launchers/type-7/launcher.sh bind = $mainMod SHIFT, Return, exec, ~/.config/rofi/launchers/type-7/launcher.sh
bind = $mainMod, Space, fullscreen, 1
bind = , Print, exec, ~/.local/bin/print-fullscreen bind = , Print, exec, ~/.local/bin/print-fullscreen
bind = SHIFT, Print, exec, ~/.local/bin/print-select bind = SHIFT, Print, exec, ~/.local/bin/print-select
bind = $mainMod, P, layoutmsg, swapwithmaster bind = $mainMod, P, layoutmsg, swapwithmaster
bind = $mainMod, B, exec, firefox-bin bind = $mainMod, B, exec, brave-bin
bind = $mainMod, C, exec, google-chrome-stable
bind = $mainMod, V, exec, /usr/bin/vscode --enable-features=UseOzonePlatform --ozone-platform=wayland --unity-launch
bind = $mainMod, Comma, focusmonitor, HDMI-A-1 bind = $mainMod, Comma, focusmonitor, HDMI-A-1
bind = $mainMod, Period, focusmonitor, DP-1 bind = $mainMod, Period, focusmonitor, DP-1
bind = $mainMod SHIFT, Comma, movewindow, l bind = $mainMod SHIFT, Comma, movewindow, mon:HDMI-A-1
bind = $mainMod SHIFT, Period, movewindow, r bind = $mainMod SHIFT, Period, movewindow, mon:DP-1
bind = $mainMod, F, fullscreen, 0 bind = $mainMod, F, fullscreen, 0
bind = $mainMod, Escape, exec, mpc toggle bind = $mainMod, Escape, exec, mpc toggle
bind = $mainMod, F1, exec, mpc prev bind = $mainMod, F1, exec, mpc prev
@ -152,7 +161,7 @@ bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d bind = $mainMod, down, movefocus, d
# there is fuck (good defaults lmao) # good defaults lmao
bind = $mainMod SHIFT, H, layoutmsg, swapnext bind = $mainMod SHIFT, H, layoutmsg, swapnext
bind = $mainMod SHIFT, L, layoutmsg, swapnext bind = $mainMod SHIFT, L, layoutmsg, swapnext
binde = $mainMod, H, resizeactive, -30 30 binde = $mainMod, H, resizeactive, -30 30

View File

@ -1,4 +1,4 @@
preload = /home/jab/Pictures/wallpapers/actually usable.jpg preload = /home/jab/Pictures/wallpapers/ghibli.png
preload = /home/jab/Pictures/wallpapers/usable1.jpg preload = /home/jab/Pictures/wallpapers/700049.jpg
wallpaper = HDMI-A-1,/home/jab/Pictures/wallpapers/actually usable.jpg wallpaper = HDMI-A-1,/home/jab/Pictures/wallpapers/ghibli.png
wallpaper = DP-1,/home/jab/Pictures/wallpapers/usable1.jpg wallpaper = DP-1,/home/jab/Pictures/wallpapers/700049.jpg

View File

@ -1,25 +1,52 @@
#! /bin/bash #!/bin/bash
#
# monitors=/tmp/hypr/monitors_temp
# hyprctl monitors > $monitors
#
# if [[ -z $1 ]]; then
# workspace=$(grep -B 4 "focused: no" "$monitors" | awk 'NR==1 {print $3}')
# else
# workspace=$1
# fi
#
#
# activemonitor=$(grep -B 10 "focused: yes" "$monitors" | awk 'NR==1 {print $2}')
# passivemonitor=$(grep -B 10 "focused: no" "$monitors" | awk 'NR==1 {print $2}')
# #activews=$(grep -A 2 "$activemonitor" "$monitors" | awk 'NR==3 {print $1}' RS='(' FS=')')
# passivews=$(grep -A 5 "$passivemonitor" "$monitors" | awk 'NR==7 {print $3}')
# echo $passivews
# # echo $workspace
#
# if [[ $workspace -eq $passivews ]] && [[ $activemonitor != "$passivemonitor" ]]; then
# hyprctl dispatch swapactiveworkspaces "$activemonitor" "$passivemonitor"
# echo a
# elif [[ $workspace -eq $passivews ]]; then
# hyprctl swapactiveworkspaces "$activemonitor" "$passivemonitor"
# echo c
# else
# hyprctl dispatch moveworkspacetomonitor "$workspace $activemonitor" && hyprctl dispatch workspace "$workspace"
# echo b
# fi
#
# exit 0
#
WORKSPACE="$1"
monitors=/tmp/hypr/monitors_temp monitors_out="$(hyprctl monitors -j)"
hyprctl monitors > $monitors focused_mon="$(echo "$monitors_out" | jq '.[] | select(.focused==true) | .id')"
focused_wks="$(echo "$monitors_out" | jq '.[].activeWorkspace.id')"
if [[ -z $1 ]]; then # Workspace is already focused, check on which monitor
workspace=$(grep -B 4 "focused: no" "$monitors" | awk 'NR==1 {print $3}') if echo "$focused_wks" | grep "$WORKSPACE" >/dev/null; then
mon_id="$(echo "$monitors_out" | jq ".[] | select(.activeWorkspace.id==$WORKSPACE) | .id")"
# If the workspace is focused on the active monitor, don't do anything (we're here).
# Otherwise, swap the workspaces.
if [ "$mon_id" -ne "$focused_mon" ]; then
hyprctl dispatch swapactiveworkspaces "$focused_mon" "$mon_id"
fi
# Switching to an unfocused workspace, always move it to focused monitor
else else
workspace=$1 hyprctl dispatch moveworkspacetomonitor "$WORKSPACE" "$focused_mon"
hyprctl dispatch workspace "$WORKSPACE"
fi fi
activemonitor=$(grep -B 7 "focused: yes" "$monitors" | awk 'NR==1 {print $2}')
passivemonitor=$(grep -B 3 "($workspace)" "$monitors" | awk 'NR==1 {print $2}')
#activews=$(grep -A 2 "$activemonitor" "$monitors" | awk 'NR==3 {print $1}' RS='(' FS=')')
passivews=$(grep -A 2 "$passivemonitor" "$monitors" | awk 'NR==4 {print $1}' RS='(' FS=')')
if [[ $workspace -eq $passivews ]] && [[ $activemonitor != "$passivemonitor" ]]; then
hyprctl dispatch swapactiveworkspaces "$activemonitor" "$passivemonitor"
echo $activemonitor $passivemonitor
else
hyprctl dispatch moveworkspacetomonitor "$workspace $activemonitor" && hyprctl dispatch workspace "$workspace"
fi
exit 0

View File

@ -2,12 +2,20 @@
############# FONTS ############## ############# FONTS ##############
################################## ##################################
font_family Cartograph CF Demi Bold font_family CartographCF Nerd Font
italic_font Cartograph CF Italic italic_font CartographCF Nerd Font Italic
bold_font Cartograph CF Bold bold_font CartographCF Nerd Font Bold
bold_italic_font Cartograph CF Bold Italic bold_italic_font CartographCF Nerd Font Bold Italic
font_size 12.8 # font_family FiraCode Nerd Font
# italic_font FiraCode Nerd Font
# bold_font FiraCode Bold Nerd Font
# bold_italic_font FiraCode SemiBold Nerd Font
allow_remote_control socket-only
listen_on unix:/tmp/kitty
font_size 14.0
#foreground #FFFFFF #foreground #FFFFFF
#background #060609 #background #060609
@ -23,7 +31,7 @@ adjust_line_height 110%
cursor #FFFFFF cursor #FFFFFF
cursor_shape beam cursor_shape beam
shell_integration no-cursor # shell_integration no-cursor
select_by_word_characters : @-./_~?&=%+# select_by_word_characters : @-./_~?&=%+#
repaint_delay 10 repaint_delay 10
term xterm-kitty term xterm-kitty
@ -40,7 +48,7 @@ window_border_width 8
window_margin_width 8 window_margin_width 8
active_border_color #ffffff active_border_color #ffffff
inactive_border_color #cccccc inactive_border_color #cccccc
background_opacity 0.85 background_opacity 0.88
# window settings # window settings
remember_window_size yes remember_window_size yes
initial_window_width 135c initial_window_width 135c
@ -49,6 +57,7 @@ initial_window_height 35c
################################## ##################################
############# COLORS ############# ############# COLORS #############
################################## ##################################
# background #fdf6e3 # background #fdf6e3
# foreground #52676f # foreground #52676f
# cursor #52676f # cursor #52676f
@ -69,29 +78,54 @@ initial_window_height 35c
# color14 #8a8a8a # color14 #8a8a8a
# color7 #262626 # color7 #262626
# color15 #1c1c1c # color15 #1c1c1c
selection_foreground #fcf4dc
background #001e26 # selection_foreground #fcf4dc
foreground #708183 # selection_background #002731
cursor #708183 # background #001e26
selection_background #002731 # foreground #708183
color0 #002731 # cursor #708183
color8 #465a61 # color0 #002731
color1 #d01b24 # color8 #465a61
color9 #bd3612 # color1 #d01b24
color2 #728905 # color9 #bd3612
color10 #465a61 # color2 #728905
color3 #a57705 # color10 #465a61
color11 #52676f # color3 #a57705
color4 #2075c7 # color11 #52676f
color12 #708183 # color4 #2075c7
color5 #c61b6e # color12 #708183
color13 #5856b9 # color5 #c61b6e
color6 #259185 # color13 #5856b9
color14 #81908f # color6 #259185
color7 #e9e2cb # color14 #81908f
color15 #fcf4dc # color7 #e9e2cb
# color15 #fcf4dc
# moonfly
background #080808
foreground #bdbdbd
cursor #9e9e9e
color0 #323437
color1 #ff5454
color2 #8cc85f
color3 #e3c78a
color4 #80a0ff
color5 #cf87e8
color6 #79dac8
color7 #c6c6c6
color8 #949494
color9 #ff5189
color10 #36c692
color11 #c2c292
color12 #74b2ff
color13 #ae81ff
color14 #85dc85
color15 #e4e4e4
selection_background #b2ceee
selection_foreground #080808
# selection_foreground #001e26 # selection_foreground #001e26
#
# foreground #D8DEE9 # foreground #D8DEE9
# background #2E3440 # background #2E3440
# selection_foreground #000000 # selection_foreground #000000

View File

@ -2,12 +2,12 @@
############# FONTS ############## ############# FONTS ##############
################################## ##################################
font_family NotoSansMono Nerd Font font_family FiraCode Nerd Font Regular
italic_font NotoSansMono Nerd Font italic_font FiraCode Nerd Font Light
bold_font NotoSansMono Nerd Font bold_font FiraCode Nerd Font Bold
bold_italic_font NotoSansMono Nerd Font bold_italic_font FiraCode Nerd Font SemiBold
font_size 12.0 font_size 14.0
#foreground #FFFFFF #foreground #FFFFFF
#background #060609 #background #060609

View File

@ -0,0 +1,177 @@
// _ ___ ___ _
// | | / __)_ / __|_)
// | | ____| |__| |_ _ _ _ ____ ____ ___ ____ | |__ _ ____ ____ ___ ____
// | |/ _ ) __) _) | | | \ / ___) _ \| _ \| __) |/ _ | / ___) _ \| _ \
// | ( (/ /| | | |_| | | | | | | ( (__| |_| | | | | | | ( ( | |_| | | |_| | | | |
// |_|\____)_| \___)____|_|_|_| \____)___/|_| |_|_| |_|\_|| (_)_| \___/|_| |_|
// A WindowManager for Adventurers (____/
// For info about configuration please visit https://github.com/leftwm/leftwm/wiki
#![enable(implicit_some)]
(
modkey: "Mod4",
mousekey: "Mod4",
workspaces: [],
tags: [
"I",
"II",
"III",
"IV",
"V",
"VI",
"VII",
"VIII",
"IX",
"X",
"XI",
],
max_window_width: None,
layouts: [
MainAndVertStack,
Monocle,
MainAndHorizontalStack,
// MainAndDeck,
GridHorizontal,
EvenHorizontal,
// EvenVertical,
Fibonacci,
LeftMain,
CenterMain,
// CenterMainBalanced,
// CenterMainFluid,
// RightWiderLeftStack,
// LeftWiderRightStack,
],
layout_mode: Tag,
insert_behavior: Bottom,
scratchpad: [
(name: "Kitty", value: "kitty", x: 150, y: 100, height: 900, width: 1600),
(name: "Feh", value: "feh ~/pics/363032073_179911381762816_6317942459227566936_n.jpg", x: 150, y: 100, height: 900, width: 1600),
],
window_rules: [
(window_title:".*Anki$", window_class: "^Anki$", spawn_on_tag: 5),
(window_title: "^Add$", window_class:"^Anki$", spawn_floating: true, spawn_on_tag: 5),
(window_class: "Lutris", spawn_on_tag: 7),
(window_class: "Pavucontrol", spawn_floating: true),
(window_class: "PrismLauncher", spawn_on_tag: 7),
(window_class: "Steam", spawn_on_tag: 8),
(window_class: "TeamSpeak 3", spawn_on_tag: 6),
(window_class: "Thunar", spawn_floating: true),
(window_class: "QOwnNotes", window_title:".*QownNotes.*", spawn_on_tag: 3),
(window_class: "QOwnNotes", window_title: "Settings", spawn_floating: true),
(window_class: "Virt-manager", spawn_on_tag: 10),
(window_class: "XIVLauncher.Core", spawn_on_tag: 7, spawn_floating: true),
(window_class: "Xournalpp", spawn_on_tag: 4),
(window_class: "amberol", spawn_floating: true),
(window_class: ".*.exe$", spawn_on_tag: 9, spawn_floating: true),
(window_class: "^discord.*", window_title:".*Discord$", spawn_on_tag: 6),
(window_class: "^discord.*", window_title:"", spawn_floating: true),
(window_title: "File Upload", spawn_floating: true),
(window_title: "Library", spawn_floating: true),
(window_title: ".*Save.*", spawn_floating: true),
(window_title: ".*Sign in.*", spawn_floating: true),
(window_class: "gamescope", spawn_on_tag: 9),
(window_class: "heroic", spawn_on_tag: 7),
(window_class: "obs", spawn_on_tag: 7),
(window_class: "obsidian", spawn_on_tag: 3),
(window_class: "parsecd", spawn_on_tag: 7),
(window_class: "steam", spawn_on_tag: 8),
(window_class: ".*Minecraft.*", spawn_on_tag: 9),
(window_class: ".*csgo.*", spawn_on_tag: 9),
(window_class: ".*wine.*", spawn_floating: true),
(window_class: "Warframe*", spawn_on_tag: 9, spawn_floating: true),
(window_class: ".*league.*", spawn_on_tag: 9, spawn_floating: true),
(window_class: "leagueclient.exe", spawn_on_tag: 9, spawn_as_type: Dialog),
(window_class: ".*riot.*", spawn_on_tag: 9, spawn_floating: true),
(window_class: ".*steam_.*", spawn_on_tag: 9, spawn_floating: true),
(window_title: ".*Properties.*", spawn_floating: true),
(window_title: "steam_app_1476970", spawn_fullscreen: true),
// (window_title: ".*LibreOffice.*", spawn_on_tag: 11),
(window_class: "Signal", spawn_on_tag: 11),
(window_class: "Pidgin", spawn_on_tag: 11),
],
disable_current_tag_swap: false,
disable_tile_drag: false,
disable_window_snap: true,
focus_behaviour: Sloppy,
focus_new_windows: true,
single_window_border: true,
sloppy_mouse_follows_focus: false,
auto_derive_workspaces: true,
keybind: [
(command: Execute, value: "~/.config/rofi/launchers/type-6/launcher.sh", modifier: ["modkey", "Shift"], key: "Return"),
(command: Execute, value: "kitty", modifier: ["modkey"], key: "Return"),
(command: CloseWindow, value: "", modifier: ["modkey", "Shift"], key: "c"),
(command: SoftReload, value: "", modifier: ["modkey", "Shift"], key: "r"),
(command: Execute, value: "loginctl kill-session $XDG_SESSION_ID", modifier: ["modkey", "Shift"], key: "x"),
(command: Execute, value: "slock", modifier: ["modkey", "Control"], key: "l"),
(command: MoveToLastWorkspace, value: "", modifier: ["modkey", "Shift"], key: "w"),
(command: SwapTags, value: "", modifier: ["modkey"], key: "w"),
(command: MoveWindowUp, value: "", modifier: ["modkey", "Shift"], key: "k"),
(command: MoveWindowDown, value: "", modifier: ["modkey", "Shift"], key: "j"),
(command: MoveWindowTop, value: "", modifier: ["modkey", "Alt"], key: "Return"),
(command: FocusWindowUp, value: "", modifier: ["modkey"], key: "k"),
(command: FocusWindowDown, value: "", modifier: ["modkey"], key: "j"),
(command: IncreaseMainWidth, value: "5", modifier: ["modkey"], key: "l"),
(command: DecreaseMainWidth, value: "5", modifier: ["modkey"], key: "h"),
(command: NextLayout, value: "", modifier: ["modkey"], key: "space"),
(command: PreviousLayout, value: "", modifier: ["modkey", "Control"], key: "j"),
(command: FocusWorkspaceNext, value: "", modifier: ["modkey"], key: "period"),
(command: FocusWorkspacePrevious, value: "", modifier: ["modkey"], key: "comma"),
(command: MoveWindowToNextWorkspace, value: "", modifier: ["modkey", "Shift"], key: "period"),
(command: MoveWindowToPreviousWorkspace, value: "", modifier: ["modkey", "Shift"], key: "comma"),
(command: MoveWindowUp, value: "", modifier: ["modkey", "Shift"], key: "Up"),
(command: MoveWindowDown, value: "", modifier: ["modkey", "Shift"], key: "Down"),
(command: FocusWindowUp, value: "", modifier: ["modkey"], key: "Up"),
(command: FocusWindowDown, value: "", modifier: ["modkey"], key: "Down"),
(command: NextLayout, value: "", modifier: ["modkey", "Control"], key: "Up"),
(command: PreviousLayout, value: "", modifier: ["modkey", "Control"], key: "Down"),
(command: FocusWorkspaceNext, value: "", modifier: ["modkey"], key: "Right"),
(command: FocusWorkspacePrevious, value: "", modifier: ["modkey"], key: "Left"),
(command: GotoTag, value: "1", modifier: ["modkey"], key: "1"),
(command: GotoTag, value: "2", modifier: ["modkey"], key: "2"),
(command: GotoTag, value: "3", modifier: ["modkey"], key: "3"),
(command: GotoTag, value: "4", modifier: ["modkey"], key: "4"),
(command: GotoTag, value: "5", modifier: ["modkey"], key: "5"),
(command: GotoTag, value: "6", modifier: ["modkey"], key: "6"),
(command: GotoTag, value: "7", modifier: ["modkey"], key: "7"),
(command: GotoTag, value: "8", modifier: ["modkey"], key: "8"),
(command: GotoTag, value: "9", modifier: ["modkey"], key: "9"),
(command: GotoTag, value: "10", modifier: ["modkey"], key: "0"),
(command: GotoTag, value: "11", modifier: ["modkey"], key: "minus"),
(command: MoveToTag, value: "1", modifier: ["modkey", "Shift"], key: "1"),
(command: MoveToTag, value: "2", modifier: ["modkey", "Shift"], key: "2"),
(command: MoveToTag, value: "3", modifier: ["modkey", "Shift"], key: "3"),
(command: MoveToTag, value: "4", modifier: ["modkey", "Shift"], key: "4"),
(command: MoveToTag, value: "5", modifier: ["modkey", "Shift"], key: "5"),
(command: MoveToTag, value: "6", modifier: ["modkey", "Shift"], key: "6"),
(command: MoveToTag, value: "7", modifier: ["modkey", "Shift"], key: "7"),
(command: MoveToTag, value: "8", modifier: ["modkey", "Shift"], key: "8"),
(command: MoveToTag, value: "9", modifier: ["modkey", "Shift"], key: "9"),
(command: MoveToTag, value: "10", modifier: ["modkey", "Shift"], key: "0"),
(command: MoveToTag, value: "11", modifier: ["modkey", "Shift"], key: "minus"),
(command: ToggleScratchPad, value: "Kitty", modifier: ["modkey", "Control"], key: "Return"),
(command: ToggleScratchPad, value: "Feh", modifier: ["modkey", "Control"], key: "i"),
(command: ToggleFloating, modifier: ["modkey"], key: "t"),
(command: ToggleSticky, modifier: ["modkey"], key: "v"),
(command: ToggleFullScreen, modifier: ["modkey"], key: "f"),
// apps
(command: Execute, value: "~/.local/bin/print-fullscreen", modifier: [], key: "Print"),
(command: Execute, value: "~/.local/bin/print-select", modifier: ["Shift"], key: "Print"),
(command: Execute, value: "~/.local/bin/print-tmp", modifier: ["Control", "Shift"], key: "Print"),
(command: Execute, value: "~/.local/bin/print-window.sh", modifier: ["Control"], key: "Print"),
(command: Execute, value: "firefox-bin", modifier: ["modkey"], key: "b"),
(command: Execute, value: "steam --noverifyfiles", modifier: ["modkey", "Shift"], key: "s"),
(command: Execute, value: "thunar", modifier: ["modkey"], key: "e"),
(command: Execute, value: "~/scripts/macro.sh", modifier: ["Control", "Shift"], key: "m"),
// (command: Execute, value: "VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd64.json obs", modifier: ["Control", "Shift"], key: "m"),
(command: Execute, value: "discord", modifier: ["modkey", "Control"], key: "d"),
(command: Execute, value: "XL_SECRET_PROVIDER=file xivlauncher", modifier: ["modkey", "Alt"], key: "x"),
(command: Execute, value: "xournalpp", modifier: ["modkey", "Control"], key: "x"),
// (command: Execute, value: "xdotool type \n", modifier: ["Shift"], key:"question"),
// (command: Execute, value: "xdotool type \n", modifier: ["Shift"], key:"exclam")
],
state_path: None,
)

View File

@ -0,0 +1,18 @@
[[repos]]
url = "localhost"
name = "LOCAL"
definitions_version = 1
[[repos.themes]]
name = "solarized"
directory = "/lucius/.config/leftwm/themes/solarized"
version = "0.0.0"
leftwm_versions = "*"
current = true
[[repos.themes]]
name = "test"
directory = "/lucius/.config/leftwm/themes/test"
version = "0.0.0"
leftwm_versions = "*"
current = false

View File

@ -0,0 +1 @@
solarized

View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
leftwm-command "UnloadTheme"
killall -q polybar
# eww kill
killall -q picom-ibhagwan

View File

@ -0,0 +1,9 @@
#![enable(implicit_some)]
(
border_width : 2,
margin : 4,
workspace_margin : 3,
default_border_color : "#323437",
floating_border_color : "#323437",
focused_border_color : "#36c692",
)

View File

@ -0,0 +1,21 @@
#!/usr/bin/env bash
export SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
#down the last running theme
if [ -f "/tmp/leftwm-theme-down" ]; then
/tmp/leftwm-theme-down
rm /tmp/leftwm-theme-down
fi
ln -s $SCRIPTPATH/down /tmp/leftwm-theme-down
leftwm-command "LoadTheme $SCRIPTPATH/theme.ron"
# feh --bg-fill ~/pics/wallpapers/simon2.jpg --bg-fill ~/pics/wallpapers/simon3.jpg --bg-fill ~/pics/wallpapers/simon1.jpg # solarized
# feh --bg-fill ~/pics/wallpapers/1155989-rainbow-polygons.jpg --bg-fill ~/pics/wallpapers/media_Ff_g2i3UYAAEL54.jpg --bg-fill ~/pics/wallpapers/media_FZC3t4FUsAAPfOg.jpg # anime girls
feh --bg-fill ~/pics/wallpapers/1155989-rainbow-polygons.jpg --bg-fill ~/pics/wallpapers/a-solitary-drive-1920x1080-v0-rwitfbbmnpnb1.png --bg-fill ~/pics/wallpapers/yuan-zhang-1.jpg
bash ~/.config/polybar/launch.sh
# eww daemon &
# eww open bar0
~/.local/bin/picom-ibhagwan -b --experimental-backends

View File

@ -1,864 +1,111 @@
# See this wiki page for more info: # Source: https://github.com/Chick2D/neofetch-themes/
# https://github.com/dylanaraps/neofetch/wiki/Customizing-Info # Do consider checking out the repository, it has a ton of great configs like this.
# Made by Chick (BlockFetch)
# Customization Wiki https://github.com/dylanaraps/neofetch/wiki/Customizing-Info
print_info() { print_info() {
prin "Distro"
prin "\n I use" "$(source /etc/os-release && printf $NAME)"
prin "Hardware"
info "\n Mobo" model
info "\n CPU" cpu
info "\n GPU" gpu
prin "\n RAM" "$(echo `awk '/MemTotal/ {printf( "%d\n", $2 / 1024 )}' /proc/meminfo`) MiB"
prin "Sys Info"
info "\n Kernel" kernel
info "\n Packages" packages
info "\n Shell" shell
info "\n DE" de
info "\n WM" wm
info "\n Terminal" term
prin "Usage"
info "\n CPU" cpu_usage
info "\n RAM" memory
prin "Driver"
info "\n GPU" gpu_driver
# info "GPU Driver" gpu_driver # Linux/macOS only
# info "CPU Usage" cpu_usage
# info "Disk" disk
# info "Battery" battery
# info "Font" font
# info "Song" song
# [[ "$player" ]] && prin "Music Player" "$player"
# info "Local IP" local_ip
# info "Public IP" public_ip
# info "Users" users
# info "Locale" locale # This only works on glibc systems.
info " ${cl5}██ cpu" cpu
info " ${cl2}██ gpu" gpu
info " ${cl6}██ distro" distro
info " ${cl4}██ kernel" kernel
info " ${cl1}██ wm" wm
info " ${cl7}██ uptime" uptime
info " ${cl3}██ packages" packages
info cols info cols
} }
# Title kernel_shorthand="on"
distro_shorthand="off"
# Hide/Show Fully qualified domain name.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --title_fqdn
title_fqdn="off"
# Kernel
# Shorten the output of the kernel function.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --kernel_shorthand
# Supports: Everything except *BSDs (except PacBSD and PC-BSD)
#
# Example:
# on: '4.8.9-1-ARCH'
# off: 'Linux 4.8.9-1-ARCH'
kernel_shorthand="off"
# Distro
# Shorten the output of the distro function
#
# Default: 'off'
# Values: 'on', 'tiny', 'off'
# Flag: --distro_shorthand
# Supports: Everything except Windows and Haiku
distro_shorthand="on"
# Show/Hide OS Architecture.
# Show 'x86_64', 'x86' and etc in 'Distro:' output.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --os_arch
#
# Example:
# on: 'Arch Linux x86_64'
# off: 'Arch Linux'
os_arch="off" os_arch="off"
uptime_shorthand="on"
# Uptime
# Shorten the output of the uptime function
#
# Default: 'on'
# Values: 'on', 'tiny', 'off'
# Flag: --uptime_shorthand
#
# Example:
# on: '2 days, 10 hours, 3 mins'
# tiny: '2d 10h 3m'
# off: '2 days, 10 hours, 3 minutes'
uptime_shorthand="tiny"
# Memory
# Show memory pecentage in output.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --memory_percent
#
# Example:
# on: '1801MiB / 7881MiB (22%)'
# off: '1801MiB / 7881MiB'
memory_percent="on" memory_percent="on"
package_managers="on"
# Change memory output unit.
#
# Default: 'mib'
# Values: 'kib', 'mib', 'gib'
# Flag: --memory_unit
#
# Example:
# kib '1020928KiB / 7117824KiB'
# mib '1042MiB / 6951MiB'
# gib: ' 0.98GiB / 6.79GiB'
memory_unit="mib"
# Packages
# Show/Hide Package Manager names.
#
# Default: 'tiny'
# Values: 'on', 'tiny' 'off'
# Flag: --package_managers
#
# Example:
# on: '998 (pacman), 8 (flatpak), 4 (snap)'
# tiny: '908 (pacman, flatpak, snap)'
# off: '908'
package_managers="off"
# Shell
# Show the path to $SHELL
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --shell_path
#
# Example:
# on: '/bin/bash'
# off: 'bash'
shell_path="off" shell_path="off"
shell_version="on"
# Show $SHELL version
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --shell_version
#
# Example:
# on: 'bash 4.4.5'
# off: 'bash'
shell_version="off"
# CPU
# CPU speed type
#
# Default: 'bios_limit'
# Values: 'scaling_cur_freq', 'scaling_min_freq', 'scaling_max_freq', 'bios_limit'.
# Flag: --speed_type
# Supports: Linux with 'cpufreq'
# NOTE: Any file in '/sys/devices/system/cpu/cpu0/cpufreq' can be used as a value.
speed_type="bios_limit" speed_type="bios_limit"
# CPU speed shorthand
#
# Default: 'off'
# Values: 'on', 'off'.
# Flag: --speed_shorthand
# NOTE: This flag is not supported in systems with CPU speed less than 1 GHz
#
# Example:
# on: 'i7-6500U (4) @ 3.1GHz'
# off: 'i7-6500U (4) @ 3.100GHz'
speed_shorthand="on" speed_shorthand="on"
cpu_brand="off"
# Enable/Disable CPU brand in output. cpu_speed="off"
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --cpu_brand
#
# Example:
# on: 'Intel i7-6500U'
# off: 'i7-6500U (4)'
cpu_brand="on"
# CPU Speed
# Hide/Show CPU speed.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --cpu_speed
#
# Example:
# on: 'Intel i7-6500U (4) @ 3.1GHz'
# off: 'Intel i7-6500U (4)'
cpu_speed="on"
# CPU Cores
# Display CPU cores in output
#
# Default: 'logical'
# Values: 'logical', 'physical', 'off'
# Flag: --cpu_cores
# Support: 'physical' doesn't work on BSD.
#
# Example:
# logical: 'Intel i7-6500U (4) @ 3.1GHz' (All virtual cores)
# physical: 'Intel i7-6500U (2) @ 3.1GHz' (All physical cores)
# off: 'Intel i7-6500U @ 3.1GHz'
cpu_cores="logical" cpu_cores="logical"
cpu_temp="off"
# CPU Temperature gpu_brand="off"
# Hide/Show CPU temperature.
# Note the temperature is added to the regular CPU function.
#
# Default: 'off'
# Values: 'C', 'F', 'off'
# Flag: --cpu_temp
# Supports: Linux, BSD
# NOTE: For FreeBSD and NetBSD-based systems, you'll need to enable
# coretemp kernel module. This only supports newer Intel processors.
#
# Example:
# C: 'Intel i7-6500U (4) @ 3.1GHz [27.2°C]'
# F: 'Intel i7-6500U (4) @ 3.1GHz [82.0°F]'
# off: 'Intel i7-6500U (4) @ 3.1GHz'
cpu_temp="C"
# GPU
# Enable/Disable GPU Brand
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gpu_brand
#
# Example:
# on: 'AMD HD 7950'
# off: 'HD 7950'
gpu_brand="on"
# Which GPU to display
#
# Default: 'all'
# Values: 'all', 'dedicated', 'integrated'
# Flag: --gpu_type
# Supports: Linux
#
# Example:
# all:
# GPU1: AMD HD 7950
# GPU2: Intel Integrated Graphics
#
# dedicated:
# GPU1: AMD HD 7950
#
# integrated:
# GPU1: Intel Integrated Graphics
gpu_type="all" gpu_type="all"
refresh_rate="on"
# Resolution
# Display refresh rate next to each monitor
# Default: 'off'
# Values: 'on', 'off'
# Flag: --refresh_rate
# Supports: Doesn't work on Windows.
#
# Example:
# on: '1920x1080 @ 60Hz'
# off: '1920x1080'
refresh_rate="off"
# Gtk Theme / Icons / Font
# Shorten output of GTK Theme / Icons / Font
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --gtk_shorthand
#
# Example:
# on: 'Numix, Adwaita'
# off: 'Numix [GTK2], Adwaita [GTK3]'
gtk_shorthand="on" gtk_shorthand="on"
# Enable/Disable gtk2 Theme / Icons / Font
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gtk2
#
# Example:
# on: 'Numix [GTK2], Adwaita [GTK3]'
# off: 'Adwaita [GTK3]'
gtk2="on" gtk2="on"
# Enable/Disable gtk3 Theme / Icons / Font
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --gtk3
#
# Example:
# on: 'Numix [GTK2], Adwaita [GTK3]'
# off: 'Numix [GTK2]'
gtk3="on" gtk3="on"
# IP Address
# Website to ping for the public IP
#
# Default: 'http://ident.me'
# Values: 'url'
# Flag: --ip_host
public_ip_host="http://ident.me" public_ip_host="http://ident.me"
# Public IP timeout.
#
# Default: '2'
# Values: 'int'
# Flag: --ip_timeout
public_ip_timeout=2 public_ip_timeout=2
# Desktop Environment
# Show Desktop Environment version
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --de_version
de_version="off"
# Disk
# Which disks to display.
# The values can be any /dev/sdXX, mount point or directory.
# NOTE: By default we only show the disk info for '/'.
#
# Default: '/'
# Values: '/', '/dev/sdXX', '/path/to/drive'.
# Flag: --disk_show
#
# Example:
# disk_show=('/' '/dev/sdb1'):
# 'Disk (/): 74G / 118G (66%)'
# 'Disk (/mnt/Videos): 823G / 893G (93%)'
#
# disk_show=('/'):
# 'Disk (/): 74G / 118G (66%)'
#
disk_show=('/') disk_show=('/')
music_player="vlc"
# Disk subtitle. song_format="%artist% - %title%"
# What to append to the Disk subtitle. song_shorthand="off"
#
# Default: 'mount'
# Values: 'mount', 'name', 'dir', 'none'
# Flag: --disk_subtitle
#
# Example:
# name: 'Disk (/dev/sda1): 74G / 118G (66%)'
# 'Disk (/dev/sdb2): 74G / 118G (66%)'
#
# mount: 'Disk (/): 74G / 118G (66%)'
# 'Disk (/mnt/Local Disk): 74G / 118G (66%)'
# 'Disk (/mnt/Videos): 74G / 118G (66%)'
#
# dir: 'Disk (/): 74G / 118G (66%)'
# 'Disk (Local Disk): 74G / 118G (66%)'
# 'Disk (Videos): 74G / 118G (66%)'
#
# none: 'Disk: 74G / 118G (66%)'
# 'Disk: 74G / 118G (66%)'
# 'Disk: 74G / 118G (66%)'
disk_subtitle="mount"
# Disk percent.
# Show/Hide disk percent.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --disk_percent
#
# Example:
# on: 'Disk (/): 74G / 118G (66%)'
# off: 'Disk (/): 74G / 118G'
disk_percent="on"
# Song
# Manually specify a music player.
#
# Default: 'auto'
# Values: 'auto', 'player-name'
# Flag: --music_player
#
# Available values for 'player-name':
#
# amarok
# audacious
# banshee
# bluemindo
# clementine
# cmus
# deadbeef
# deepin-music
# dragon
# elisa
# exaile
# gnome-music
# gmusicbrowser
# gogglesmm
# guayadeque
# io.elementary.music
# iTunes
# juk
# lollypop
# mocp
# mopidy
# mpd
# muine
# netease-cloud-music
# olivia
# playerctl
# pogo
# pragha
# qmmp
# quodlibet
# rhythmbox
# sayonara
# smplayer
# spotify
# strawberry
# tauonmb
# tomahawk
# vlc
# xmms2d
# xnoise
# yarock
music_player="auto"
# Format to display song information.
#
# Default: '%artist% - %album% - %title%'
# Values: '%artist%', '%album%', '%title%'
# Flag: --song_format
#
# Example:
# default: 'Song: Jet - Get Born - Sgt Major'
song_format="%artist% \n %album% \n %title%"
# Print the Artist, Album and Title on separate lines
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --song_shorthand
#
# Example:
# on: 'Artist: The Fratellis'
# 'Album: Costello Music'
# 'Song: Chelsea Dagger'
#
# off: 'Song: The Fratellis - Costello Music - Chelsea Dagger'
song_shorthand="on"
# 'mpc' arguments (specify a host, password etc).
#
# Default: ''
# Example: mpc_args=(-h HOST -P PASSWORD)
mpc_args=()
# Text Colors
# Text Colors
#
# Default: 'distro'
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
# Flag: --colors
#
# Each number represents a different part of the text in
# this order: 'title', '@', 'underline', 'subtitle', 'colon', 'info'
#
# Example:
# colors=(distro) - Text is colored based on Distro colors.
# colors=(4 6 1 8 8 6) - Text is colored in the order above.
colors=(distro) colors=(distro)
# Text Options
# Toggle bold text
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --bold
bold="on" bold="on"
# Enable/Disable Underline
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --underline
underline_enabled="on" underline_enabled="on"
underline_char="-"
separator=""
color_blocks="off"
block_range=(0 15) # Colorblocks
# Underline character # Colors for custom colorblocks
# magenta="\033[1;35m"
# Default: '-' green="\033[1;32m"
# Values: 'string' white="\033[1;37m"
# Flag: --underline_char blue="\033[1;34m"
underline_char="" red="\033[1;31m"
black="\033[1;40;30m"
yellow="\033[1;33m"
cyan="\033[1;36m"
reset="\033[0m"
bgyellow="\033[1;43;33m"
bgwhite="\033[1;47;37m"
cl0="${reset}"
cl1="${magenta}"
cl2="${green}"
cl3="${white}"
cl4="${blue}"
cl5="${red}"
cl6="${yellow}"
cl7="${cyan}"
cl8="${black}"
cl9="${bgyellow}"
cl10="${bgwhite}"
block_width=4
# Info Separator
# Replace the default separator with the specified string.
#
# Default: ':'
# Flag: --separator
#
# Example:
# separator="->": 'Shell-> bash'
# separator=" =": 'WM = dwm'
separator=" ->"
# Color Blocks
# Color block range
# The range of colors to print.
#
# Default: '0', '15'
# Values: 'num'
# Flag: --block_range
#
# Example:
#
# Display colors 0-7 in the blocks. (8 colors)
# neofetch --block_range 0 7
#
# Display colors 0-15 in the blocks. (16 colors)
# neofetch --block_range 0 15
block_range=(0 15)
# Toggle color blocks
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --color_blocks
color_blocks="on"
# Color block width in spaces
#
# Default: '3'
# Values: 'num'
# Flag: --block_width
block_width=3
# Color block height in lines
#
# Default: '1'
# Values: 'num'
# Flag: --block_height
block_height=1 block_height=1
# Color Alignment
#
# Default: 'auto'
# Values: 'auto', 'num'
# Flag: --col_offset
#
# Number specifies how far from the left side of the terminal (in spaces) to
# begin printing the columns, in case you want to e.g. center them under your
# text.
# Example:
# col_offset="auto" - Default behavior of neofetch
# col_offset=7 - Leave 7 spaces then print the colors
col_offset="auto"
# Progress Bars
# Bar characters
#
# Default: '-', '='
# Values: 'string', 'string'
# Flag: --bar_char
#
# Example:
# neofetch --bar_char 'elapsed' 'total'
# neofetch --bar_char '-' '='
bar_char_elapsed="-" bar_char_elapsed="-"
bar_char_total="=" bar_char_total="="
# Toggle Bar border
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --bar_border
bar_border="on" bar_border="on"
# Progress bar length in spaces
# Number of chars long to make the progress bars.
#
# Default: '15'
# Values: 'num'
# Flag: --bar_length
bar_length=15 bar_length=15
# Progress bar colors
# When set to distro, uses your distro's logo colors.
#
# Default: 'distro', 'distro'
# Values: 'distro', 'num'
# Flag: --bar_colors
#
# Example:
# neofetch --bar_colors 3 4
# neofetch --bar_colors distro 5
bar_color_elapsed="distro" bar_color_elapsed="distro"
bar_color_total="distro" bar_color_total="distro"
cpu_display="on"
memory_display="on"
battery_display="on"
disk_display="on"
# Info display image_backend="kitty"
# Display a bar with the info. image_source="$HOME/pics/material"
# image_size="300px"
# Default: 'off'
# Values: 'bar', 'infobar', 'barinfo', 'off'
# Flags: --cpu_display
# --memory_display
# --battery_display
# --disk_display
#
# Example:
# bar: '[---=======]'
# infobar: 'info [---=======]'
# barinfo: '[---=======] info'
# off: 'info'
cpu_display="off"
memory_display="off"
battery_display="off"
disk_display="off"
# Backend Settings
# Image backend.
#
# Default: 'ascii'
# Values: 'ascii', 'caca', 'chafa', 'jp2a', 'iterm2', 'off',
# 'pot', 'termpix', 'pixterm', 'tycat', 'w3m', 'kitty'
# Flag: --backend
image_backend="ascii"
# Image Source
#
# Which image or ascii file to display.
#
# Default: 'auto'
# Values: 'auto', 'ascii', 'wallpaper', '/path/to/img', '/path/to/ascii', '/path/to/dir/'
# 'command output (neofetch --ascii "$(fortune | cowsay -W 30)")'
# Flag: --source
#
# NOTE: 'auto' will pick the best image source for whatever image backend is used.
# In ascii mode, distro ascii art will be used and in an image mode, your
# wallpaper will be used.
image_source="auto"
# Ascii Options
# Ascii distro
# Which distro's ascii art to display.
#
# Default: 'auto'
# Values: 'auto', 'distro_name'
# Flag: --ascii_distro
# NOTE: AIX, Alpine, Anarchy, Android, Antergos, antiX, "AOSC OS",
# "AOSC OS/Retro", Apricity, ArcoLinux, ArchBox, ARCHlabs,
# ArchStrike, XFerience, ArchMerge, Arch, Artix, Arya, Bedrock,
# Bitrig, BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD,
# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
# Chapeau, Chrom*, Cleanjaro, ClearOS, Clear_Linux, Clover,
# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin,
# DesaOS, Devuan, DracOS, DarkOs, DragonFly, Drauger, Elementary,
# EndeavourOS, Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD,
# FreeMiNT, Frugalware, Funtoo, GalliumOS, Garuda, Gentoo, Pentoo,
# gNewSense, GNOME, GNU, GoboLinux, Grombyang, Guix, Haiku, Huayra,
# Hyperbola, janus, Kali, KaOS, KDE_neon, Kibojoe, Kogaion,
# Korora, KSLinux, Kubuntu, LEDE, LFS, Linux_Lite,
# LMDE, Lubuntu, Lunar, macos, Mageia, MagpieOS, Mandriva,
# Manjaro, Maui, Mer, Minix, LinuxMint, MX_Linux, Namib,
# Neptune, NetBSD, Netrunner, Nitrux, NixOS, Nurunner,
# NuTyX, OBRevenge, OpenBSD, openEuler, OpenIndiana, openmamba,
# OpenMandriva, OpenStage, OpenWrt, osmc, Oracle, OS Elbrus, PacBSD,
# Parabola, Pardus, Parrot, Parsix, TrueOS, PCLinuxOS, Peppermint,
# popos, Porteus, PostMarketOS, Proxmox, Puppy, PureOS, Qubes, Radix,
# Raspbian, Reborn_OS, Redstar, Redcore, Redhat, Refracted_Devuan,
# Regata, Rosa, sabotage, Sabayon, Sailfish, SalentOS, Scientific,
# Septor, SereneLinux, SharkLinux, Siduction, Slackware, SliTaz,
# SmartOS, Solus, Source_Mage, Sparky, Star, SteamOS, SunOS,
# openSUSE_Leap, openSUSE_Tumbleweed, openSUSE, SwagArch, Tails,
# Trisquel, Ubuntu-Budgie, Ubuntu-GNOME, Ubuntu-MATE, Ubuntu-Studio,
# Ubuntu, Venom, Void, Obarun, windows10, Windows7, Xubuntu, Zorin,
# and IRIX have ascii logos
# NOTE: Arch, Ubuntu, Redhat, and Dragonfly have 'old' logo variants.
# Use '{distro name}_old' to use the old logos.
# NOTE: Ubuntu has flavor variants.
# Change this to Lubuntu, Kubuntu, Xubuntu, Ubuntu-GNOME,
# Ubuntu-Studio, Ubuntu-Mate or Ubuntu-Budgie to use the flavors.
# NOTE: Arcolinux, Dragonfly, Fedora, Alpine, Arch, Ubuntu,
# CRUX, Debian, Gentoo, FreeBSD, Mac, NixOS, OpenBSD, android,
# Antrix, CentOS, Cleanjaro, ElementaryOS, GUIX, Hyperbola,
# Manjaro, MXLinux, NetBSD, Parabola, POP_OS, PureOS,
# Slackware, SunOS, LinuxLite, OpenSUSE, Raspbian,
# postmarketOS, and Void have a smaller logo variant.
# Use '{distro name}_small' to use the small variants.
ascii_distro=""
#jabuxa
# Ascii Colors
#
# Default: 'distro'
# Values: 'distro', 'num' 'num' 'num' 'num' 'num' 'num'
# Flag: --ascii_colors
#
# Example:
# ascii_colors=(distro) - Ascii is colored based on Distro colors.
# ascii_colors=(4 6 1 8 8 6) - Ascii is colored using these colors.
ascii_colors=(distro)
# Bold ascii logo
# Whether or not to bold the ascii logo.
#
# Default: 'on'
# Values: 'on', 'off'
# Flag: --ascii_bold
ascii_bold="on"
# Image Options
# Image loop
# Setting this to on will make neofetch redraw the image constantly until
# Ctrl+C is pressed. This fixes display issues in some terminal emulators.
#
# Default: 'off'
# Values: 'on', 'off'
# Flag: --loop
image_loop="off" image_loop="off"
# Thumbnail directory ascii_distro="gentoo_small"
# ascii_colors=(distro)
# Default: '~/.cache/thumbnails/neofetch' ascii_bold="on"
# Values: 'dir'
thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch" thumbnail_dir="${XDG_CACHE_HOME:-${HOME}/.cache}/thumbnails/neofetch"
crop_mode="normal"
# Crop mode
#
# Default: 'normal'
# Values: 'normal', 'fit', 'fill'
# Flag: --crop_mode
#
# See this wiki page to learn about the fit and fill options.
# https://github.com/dylanaraps/neofetch/wiki/What-is-Waifu-Crop%3F
crop_mode="fit"
# Crop offset
# Note: Only affects 'normal' crop mode.
#
# Default: 'center'
# Values: 'northwest', 'north', 'northeast', 'west', 'center'
# 'east', 'southwest', 'south', 'southeast'
# Flag: --crop_offset
crop_offset="center" crop_offset="center"
# Image size gap=2
# The image is half the terminal width by default.
#
# Default: 'auto'
# Values: 'auto', '00px', '00%', 'none'
# Flags: --image_size
# --size
image_size="auto"
# Gap between image and text
#
# Default: '3'
# Values: 'num', '-num'
# Flag: --gap
gap=3
# Image offsets
# Only works with the w3m backend.
#
# Default: '0'
# Values: 'px'
# Flags: --xoffset
# --yoffset
yoffset=0 yoffset=0
xoffset=0 xoffset=0
# Image background color
# Only works with the w3m backend.
#
# Default: ''
# Values: 'color', 'blue'
# Flag: --bg_color
background_color=
# Misc Options
# Stdout mode
# Turn off all colors and disables image backend (ASCII/Image).
# Useful for piping into another command.
# Default: 'off'
# Values: 'on', 'off'
stdout="off" stdout="off"

View File

@ -1,11 +0,0 @@
local status, autotag = pcall(require, "nvim-ts-autotag")
if (not status) then return end
autotag.setup({})
local status, autopairs = pcall(require, "nvim-autopairs")
if (not status) then return end
autopairs.setup({
disable_filetype = { "TelescopePrompt" , "vim" },
})

View File

@ -1,15 +0,0 @@
local status, colorizer = pcall(require, "colorizer")
if not status then
return
end
colorizer.setup{
css = {
rgb_fn = true;
rgb = true;
names = true;
};
html = {
names = true;
}
}

View File

@ -1,43 +0,0 @@
require('Comment').setup({
---Add a space b/w comment and the line
padding = true,
---Whether the cursor should stay at its position
sticky = true,
---Lines to be ignored while (un)comment
ignore = nil,
---LHS of toggle mappings in NORMAL mode
toggler = {
---Line-comment toggle keymap
line = '<leader>/',
---Block-comment toggle keymap
block = 'gbc',
},
---LHS of operator-pending mappings in NORMAL and VISUAL mode
opleader = {
---Line-comment keymap
line = '<leader>/',
---Block-comment keymap
block = 'gb',
},
---LHS of extra mappings
extra = {
---Add comment on the line above
above = 'gcO',
---Add comment on the line below
below = 'gco',
---Add comment at the end of line
eol = 'gcA',
},
---Enable keybindings
---NOTE: If given `false` then the plugin won't create any mappings
mappings = {
---Operator-pending mapping; `gcc` `gbc` `gc[count]{motion}` `gb[count]{motion}`
basic = true,
---Extra mapping; `gco`, `gcO`, `gcA`
extra = true,
},
---Function to call before (un)comment
pre_hook = nil,
---Function to call after (un)comment
post_hook = nil,
})

View File

@ -1 +0,0 @@
vim.keymap.set("n", "<leader>gs", vim.cmd.Git);

View File

@ -1,16 +0,0 @@
local mark = require("harpoon.mark")
local ui = require("harpoon.ui")
local term = require("harpoon.term")
vim.keymap.set("n", "<leader>a", mark.add_file)
vim.keymap.set("n", "<C-e>", ui.toggle_quick_menu)
vim.keymap.set("n", "<A-1>", function() ui.nav_file(1) end)
vim.keymap.set("n", "<A-2>", function() ui.nav_file(2) end)
vim.keymap.set("n", "<A-3>", function() ui.nav_file(3) end)
vim.keymap.set("n", "<A-4>", function() ui.nav_file(4) end)
vim.keymap.set("n", "<A-5>", function() ui.nav_file(5) end)
vim.keymap.set("n", "<A-6>", function() ui.nav_file(6) end)
vim.keymap.set("n", "<leader>t", function() term.gotoTerminal(1) end)

View File

@ -1,12 +0,0 @@
local status_ok, live_server = pcall(require, "live_server")
if not status_ok then
return
end
live_server.setup({
port = 8800,
browser_command = "", -- Empty string starts up with default browser
quiet = true,
no_css_inject = false, -- Disables css injection if true, might be useful when testing out tailwindcss
install_path = vim.fn.stdpath "config" .. "/live-server/",
})

View File

@ -1,11 +0,0 @@
local status, colors = pcall(require, "lsp-colors")
if not status then
return "status"
end
colors.setup({
Error = "#db4b4b",
Warning = "#e0af68",
Information = "#0db9d7",
Hint = "#10B981",
})

View File

@ -1,189 +0,0 @@
-- ufo
vim.o.foldcolumn = "1"
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
vim.o.foldlevelstart = 99
vim.o.foldenable = true
-- Using ufo provider need remap `zR` and `zM`.
vim.keymap.set("n", "zR", require("ufo").openAllFolds)
vim.keymap.set("n", "zM", require("ufo").closeAllFolds)
require("ufo").setup()
local lsp = require("lsp-zero")
lsp.preset("lsp-only")
lsp.ensure_installed({
"tsserver",
"eslint",
"pyright",
"lua_ls",
"rust_analyzer",
})
-- Fix Undefined global 'vim'
lsp.configure("lua_ls", {
settings = {
Lua = {
diagnostics = {
globals = { "vim" },
},
},
},
})
lsp.set_preferences({
suggest_lsp_servers = false,
sign_icons = {
error = "E",
warn = "W",
hint = "H",
info = "I",
},
})
lsp.set_server_config({
on_init = function(client)
client.server_capabilities.semanticTokensProvider = nil
end,
capabilities = {
textDocument = {
completion = {
completionItem = {
snippetSupport = true,
},
},
foldingRange = {
dynamicRegistration = false,
lineFoldingOnly = true,
},
},
},
})
lsp.on_attach(function(client, bufnr)
local opts = { buffer = bufnr, remap = false }
-- if client.name == "eslint" then
-- vim.cmd.LspStop("eslint")
-- return
-- end
vim.keymap.set("n", "gd", vim.lsp.buf.definition, opts)
vim.keymap.set("n", "gD", vim.lsp.buf.declaration, opts)
vim.keymap.set("n", "K", vim.lsp.buf.hover, opts)
vim.keymap.set("n", "<leader>vws", vim.lsp.buf.workspace_symbol, opts)
vim.keymap.set("n", "<leader>vd", vim.diagnostic.open_float, opts)
vim.keymap.set("n", "[d", vim.diagnostic.goto_next, opts)
vim.keymap.set("n", "]d", vim.diagnostic.goto_prev, opts)
vim.keymap.set("n", "<leader>vca", vim.lsp.buf.code_action, opts)
vim.keymap.set("n", "<leader>vrr", vim.lsp.buf.references, opts)
vim.keymap.set("n", "<leader>vrn", vim.lsp.buf.rename, opts)
vim.keymap.set("i", "<C-h>", vim.lsp.buf.signature_help, opts)
end)
-- local cmp_autopairs_setup, cmp_autopairs = pcall(require, "nvim-autopairs.completion.cmp")
-- if not cmp_autopairs_setup then
-- return
-- end
--
-- cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())
require("luasnip.loaders.from_vscode").lazy_load()
lsp.setup()
vim.diagnostic.config({
virtual_text = true,
})
local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.formatting.black,
},
})
-- See mason-null-ls.nvim's documentation for more details:
-- https://github.com/jay-babu/mason-null-ls.nvim#setup
require("mason-null-ls").setup({
ensure_installed = nil,
automatic_installation = false,
handlers = {},
})
local cmp = require("cmp")
local cmp_select = { behavior = cmp.SelectBehavior.Select }
local cmp_autopairs = require("nvim-autopairs.completion.cmp")
local cmp_action = require("lsp-zero").cmp_action()
cmp.setup({
snippet = {
expand = function(args)
require("luasnip").lsp_expand(args.body)
end,
},
sorting = {
-- TODO: Would be cool to add stuff like "See variable names before method names" in rust, or something like that.
comparators = {
cmp.config.compare.offset,
cmp.config.compare.exact,
cmp.config.compare.score,
-- copied from cmp-under, but I don't think I need the plugin for this.
-- I might add some more of my own.
function(entry1, entry2)
local _, entry1_under = entry1.completion_item.label:find("^_+")
local _, entry2_under = entry2.completion_item.label:find("^_+")
entry1_under = entry1_under or 0
entry2_under = entry2_under or 0
if entry1_under > entry2_under then
return false
elseif entry1_under < entry2_under then
return true
end
end,
cmp.config.compare.kind,
cmp.config.compare.sort_text,
cmp.config.compare.length,
cmp.config.compare.order,
},
},
mapping = cmp.mapping.preset.insert({
["<C-k>"] = cmp.mapping.scroll_docs(-4),
["<C-j>"] = cmp.mapping.scroll_docs(4),
["<C-p>"] = cmp.mapping.select_prev_item(cmp_select),
["<C-n>"] = cmp.mapping.select_next_item(cmp_select),
["<C-Space>"] = cmp.mapping.complete(),
["<C-e>"] = cmp.mapping.close(),
["<Tab>"] = cmp_action.luasnip_supertab(),
["<S-Tab>"] = cmp_action.luasnip_shift_supertab(),
["<CR>"] = cmp.mapping.confirm({
select = false,
}),
}),
sources = cmp.config.sources({
{ name = "nvim_lsp" },
{ name = "luasnip" },
{ name = "buffer" },
{ name = "path" },
}),
formatting = {
fields = { "kind", "abbr", "menu" },
format = function(entry, vim_item)
local kind = require("lspkind").cmp_format({ mode = "symbol_text", maxwidth = 50 })(entry, vim_item)
local strings = vim.split(kind.kind, "%s", { trimempty = true })
kind.kind = " " .. (strings[1] or "") .. " "
kind.menu = " (" .. (strings[2] or "") .. ")"
return kind
end,
},
window = {
completion = cmp.config.window.bordered({}),
documentation = cmp.config.window.bordered({}),
},
})
cmp.event:on("confirm_done", cmp_autopairs.on_confirm_done())

View File

@ -1,45 +0,0 @@
local status, lspkind = pcall(require, "lspkind")
if (not status) then return end
lspkind.init({
-- enables text annotations
--
-- default: true
mode = 'symbol',
-- default symbol map
-- can be either 'default' (requires nerd-fonts font) or
-- 'codicons' for codicon preset (requires vscode-codicons font)
--
-- default: 'default'
preset = 'codicons',
-- override preset symbols
--
-- default: {}
symbol_map = {
Text = "",
Method = "",
Function = "",
Constructor = "",
Field = "",
Variable = "",
Class = "",
Interface = "",
Module = "",
Property = "",
Unit = "",
Value = "",
Enum = "",
Keyword = "",
Snippet = "",
Color = "",
File = "",
Reference = "",
Folder = "",
EnumMember = "",
Constant = "",
Struct = "",
Event = "",
Operator = "",
TypeParameter = ""
},
})

View File

@ -1,40 +0,0 @@
local status, saga = pcall(require, "lspsaga")
if not status then
return
end
saga.setup({
ui = {
-- This option only works in Neovim 0.9
title = true,
-- Border type can be single, double, rounded, solid, shadow.
border = "rounded",
-- theme ="round",
winblend = 0,
expand = "",
collapse = "",
code_action = "💡",
incoming = "",
outgoing = "",
hover = "",
kind = {},
},
})
local opts = { noremap = true, silent = true }
vim.keymap.set("n", "<C-z>", "<Cmd>Lspsaga diagnostic_jump_next<CR>", opts)
vim.keymap.set("n", "K", "<Cmd>Lspsaga hover_doc<CR>", opts)
-- vim.keymap.set('n', 'gd', '<Cmd>Lspsaga lsp_finder<CR>', opts)
vim.keymap.set("i", "<C-x>", "<Cmd>Lspsaga signature_help<CR>", opts)
vim.keymap.set("n", "gp", "<Cmd>Lspsaga peek_definition<CR>", opts)
vim.keymap.set("n", "<leader>gr", "<Cmd>Lspsaga rename<CR>", opts)
-- code action
local codeaction = require("lspsaga.codeaction")
vim.keymap.set("n", "<leader>ca", function()
codeaction:code_action()
end, { silent = true })
vim.keymap.set("v", "<leader>ca", function()
vim.fn.feedkeys(vim.api.nvim_replace_termcodes("<C-U>", true, false, true))
codeaction:range_code_action()
end, { silent = true })

View File

@ -1,62 +0,0 @@
local status, n = pcall(require, "neosolarized")
if (not status) then return end
n.setup({
comment_italics = true,
-- background_set = true
})
local cb = require('colorbuddy.init')
local Color = cb.Color
local colors = cb.colors
local Group = cb.Group
local groups = cb.groups
local styles = cb.styles
Color.new('white', '#ffffff')
Color.new('black', '#000000')
Group.new('CursorLine', colors.none, colors.base03, styles.NONE, colors.base1)
Group.new('CursorLineNr', colors.yellow, colors.black, styles.NONE, colors.base1)
Group.new('Visual', colors.none, colors.base03, styles.reverse)
local cError = groups.Error.fg
local cInfo = groups.Information.fg
local cWarn = groups.Warning.fg
local cHint = groups.Hint.fg
Group.new("DiagnosticVirtualTextError", cError, cError:dark():dark():dark():dark(), styles.NONE)
Group.new("DiagnosticVirtualTextInfo", cInfo, cInfo:dark():dark():dark(), styles.NONE)
Group.new("DiagnosticVirtualTextWarn", cWarn, cWarn:dark():dark():dark(), styles.NONE)
Group.new("DiagnosticVirtualTextHint", cHint, cHint:dark():dark():dark(), styles.NONE)
Group.new("DiagnosticUnderlineError", colors.none, colors.none, styles.undercurl, cError)
Group.new("DiagnosticUnderlineWarn", colors.none, colors.none, styles.undercurl, cWarn)
Group.new("DiagnosticUnderlineInfo", colors.none, colors.none, styles.undercurl, cInfo)
Group.new("DiagnosticUnderlineHint", colors.none, colors.none, styles.undercurl, cHint)
Group.new("Macro", groups.PreProc, colors.none, styles.italic + styles.bold)
Group.link("Function", groups.Function, colors.none, styles.italic)
Group.new("Conditional", groups.Statement, colors.none, styles.italic)
Group.new("Boolean", groups.Constant, colors.none, styles.bold)
Group.new("HoverBorder", colors.yellow, colors.none, styles.NONE)
-- local success, solarized = pcall(require, 'solarized')
--
-- if not success then
-- return
-- end
--
-- local default_config = {
-- mode = 'dark', -- dark(default)/light
-- theme = 'vim', -- vim(default)/neovim/vscode
-- transparent = true, -- false(default)/true
-- }
--
-- solarized.setup(default_config)
--
-- vim.cmd 'colorscheme solarized'
--
-- local g = vim.g
-- g.nord_contrast = true
-- g.nord_borders = false
-- g.nord_italic = true
-- g.nord_bold = true
-- require("nord").set()

View File

@ -1,39 +0,0 @@
local status, telescope = pcall(require, "telescope")
if not status then
return
end
local actions = require("telescope.actions")
local builtin = require("telescope.builtin")
local function telescope_buffer_dir()
return vim.fn.expand("%:p:h")
end
telescope.setup({
defaults = {
mappings = {
n = {
["q"] = actions.close,
},
},
},
})
vim.keymap.set("n", "<leader>pf", builtin.find_files, {})
vim.keymap.set("n", "<C-p>", builtin.git_files, {})
vim.keymap.set("n", "<leader>ps", function()
builtin.grep_string({ search = vim.fn.input("Grep > ") })
end)
vim.keymap.set("n", "<leader>pz", builtin.live_grep, {})
vim.keymap.set("n", "\\\\", function()
builtin.buffers()
end)
vim.keymap.set("n", ";t", function()
builtin.help_tags()
end)
vim.keymap.set("n", ";;", function()
builtin.resume()
end)
vim.keymap.set("n", ";e", function()
builtin.diagnostics()
end)

View File

@ -1,3 +0,0 @@
require'nvim-tmux-navigation'.setup {
disable_when_zoomed = true -- defaults to false
}

View File

@ -1,10 +0,0 @@
require("transparent").setup({
-- enable = true, -- boolean: enable transparent
-- extra_groups = { -- table/string: additional groups that should be cleared
-- "all",
-- },
-- exclude = {}, -- table: groups you don't want to clear
-- ignore_linked_group = true, -- boolean: don't clear a group that links to another group
})
vim.cmd[[TransparentEnable]]

View File

@ -1,51 +0,0 @@
require("nvim-treesitter.configs").setup({
-- a list of parser names, or "all"
ensure_installed = {
"help",
"python",
"javascript",
"c",
"lua",
"rust",
"bash",
"gitignore",
"vim",
"markdown",
"html",
"css",
},
-- install parsers synchronously (only applied to `ensure_installed`)
sync_install = true,
-- automatically install missing parsers when entering buffer
-- recommendation: set to false if you don't have `tree-sitter` cli installed locally
auto_install = true,
highlight = {
-- `false` will disable the whole extension
enable = true,
-- setting this to true will run `:h syntax` and tree-sitter at the same time.
-- set this to `true` if you depend on 'syntax' being enabled (like for indentation).
-- using this option may slow down your editor, and you may see some duplicate highlights.
-- instead of true it can also be a list of languages
additional_vim_regex_highlighting = false,
},
autotag = {
enable = true,
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<cr>",
node_incremental = "<cr>",
scope_incremental = "<s-cr>",
node_decremental = "<bs>",
},
},
})
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config.tsx.filetype_to_parsername = { "javascript", "typescript.tsx" }

View File

@ -1 +0,0 @@
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)

View File

@ -1,8 +0,0 @@
local status, zenMode = pcall(require, "zen-mode")
if not status then
return
end
zenMode.setup({})
vim.keymap.set("n", "<leader>z", "<cmd>ZenMode<cr>", { silent = true })

View File

@ -1,11 +0,0 @@
require("jabuxas")
if vim.g.neovide then
vim.o.guifont = "Cartograph CF Demi Bold:h13"
vim.g.neovide_transparency = 0.95
vim.g.neovide_floating_blur_amount_x = 2.0
vim.g.neovide_floating_blur_amount_y = 2.0
vim.g.neovide_refresh_rate = 60
-- vim.g.neovide_background_color = "#292522"
-- vim.cmd("hi Normal guibg=#78997a")
end

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +0,0 @@
{
"dependencies": {
"live-server": "^1.2.2"
}
}

View File

@ -1,3 +0,0 @@
require("jabuxas.remap")
require("jabuxas.set")
require("jabuxas.packer")

View File

@ -1,119 +0,0 @@
return require("packer").startup(function(use)
-- Packer can manage itself
use("wbthomason/packer.nvim")
use("nvim-treesitter/nvim-treesitter", { run = ":TSUpdate" })
use("theprimeagen/harpoon")
use("nvim-lua/plenary.nvim")
use("mbbill/undotree")
use("tpope/vim-fugitive")
use({
"numToStr/Comment.nvim",
config = function()
require("Comment").setup()
end,
})
use({
"svrana/neosolarized.nvim",
requires = {
"tjdevries/colorbuddy.nvim",
},
})
use({
"aurum77/live-server.nvim",
})
use({
"kylechui/nvim-surround",
config = function()
require("nvim-surround").setup({
-- Configuration here, or leave empty to use defaults
})
end,
})
use({ "alexghergh/nvim-tmux-navigation" })
use({
"windwp/nvim-ts-autotag",
"windwp/nvim-autopairs",
})
use("norcalli/nvim-colorizer.lua")
use("ThePrimeagen/vim-be-good")
use({
"declancm/maximize.nvim",
config = function()
require("maximize").setup()
end,
})
use("andweeb/presence.nvim")
use("nvim-lualine/lualine.nvim")
use({
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
"neovim/nvim-lspconfig",
})
use({
"onsails/lspkind-nvim",
"L3MON4D3/LuaSnip",
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
"hrsh7th/nvim-cmp",
})
use("nvim-telescope/telescope.nvim")
use({
"glepnir/lspsaga.nvim",
branch = "main",
})
use({
"jose-elias-alvarez/null-ls.nvim",
"jay-babu/mason-null-ls.nvim",
})
use("rafamadriz/friendly-snippets")
use("saadparwaiz1/cmp_luasnip")
use({
"lewis6991/gitsigns.nvim",
config = function()
require("gitsigns").setup()
end,
})
use({
"xiyaowong/nvim-transparent",
-- config = function()
-- require("transparent").setup({ enable = true })
-- vim.g.transparent_percentage = 80
-- end,
})
use("folke/zen-mode.nvim")
use("folke/lsp-colors.nvim")
use("AlexvZyl/nordic.nvim")
use({
"VonHeikemen/lsp-zero.nvim",
branch = "v2.x",
requires = {
-- LSP Support
{ "neovim/nvim-lspconfig" }, -- Required
{
-- Optional
"williamboman/mason.nvim",
run = function()
pcall(vim.cmd, "MasonUpdate")
end,
},
{ "williamboman/mason-lspconfig.nvim" }, -- Optional
-- Autocompletion
{ "hrsh7th/nvim-cmp" }, -- Required
{ "hrsh7th/cmp-nvim-lsp" }, -- Required
{ "L3MON4D3/LuaSnip" }, -- Required
{ "jay-babu/mason-null-ls.nvim" },
},
})
use({ "kevinhwang91/nvim-ufo", requires = "kevinhwang91/promise-async" })
use("shaunsingh/nord.nvim")
use("sindrets/diffview.nvim")
-- install without yarn or npm
use({
"iamcco/markdown-preview.nvim",
run = function()
vim.fn["mkdp#util#install"]()
end,
})
use("mattn/emmet-vim")
end)

View File

@ -1,64 +0,0 @@
local keymap = vim.keymap
local nvim_tmux_nav = require("nvim-tmux-navigation")
keymap.set("n", "<leader>pv", vim.cmd.Ex)
vim.g.mapleader = " "
keymap.set("n", "sf", vim.cmd.Ex)
-- keymap.set("n", "<leader>e", vim.cmd.NreeToggle)
keymap.set("v", "J", ":m '>+1<CR>gv=gv")
keymap.set("v", "K", ":m '<-2<CR>gv=gv")
keymap.set("n", "J", "mzJ`z")
keymap.set("n", "<C-d>", "<C-d>zz")
keymap.set("n", "<C-u>", "<C-u>zz")
keymap.set("n", "n", "nzzzv")
keymap.set("n", "N", "Nzzzv")
keymap.set("x", "<leader>p", [["_dP]])
keymap.set({ "n", "v" }, "<leader>y", [["+y]])
keymap.set("n", "<leader>Y", [["+Y]])
keymap.set({ "n", "v" }, "<leader>d", [["_d]])
keymap.set("i", "<C-c>", "<Esc>")
keymap.set("n", "Q", "<nop>")
keymap.set("n", "<C-f>", "<cmd>silent !tmux neww tmux-sessionizer<CR>")
keymap.set("n", "<leader>f", vim.lsp.buf.format)
keymap.set("n", "<A-k>", "<cmd>cnext<CR>zz")
keymap.set("n", "<A-j>", "<cmd>cprev<CR>zz")
keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz")
keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
keymap.set("n", "<leader>r", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true })
keymap.set("t", "<leader><Esc>", [[<C-\><C-n>]])
keymap.set("n", "<leader>sv", "<C-w>v")
keymap.set("n", "<leader>sh", "<C-w>s")
keymap.set("n", "<leader>se", "<C-w>=")
keymap.set("n", "<leader>sx", ":close<CR>")
keymap.set("n", "<leader>s=", "<C-w>+")
keymap.set("n", "<leader>s-", "<C-w>-")
keymap.set("n", "<C-h>", nvim_tmux_nav.NvimTmuxNavigateLeft)
keymap.set("n", "<C-j>", nvim_tmux_nav.NvimTmuxNavigateDown)
keymap.set("n", "<C-k>", nvim_tmux_nav.NvimTmuxNavigateUp)
keymap.set("n", "<C-l>", nvim_tmux_nav.NvimTmuxNavigateRight)
keymap.set("n", "<C-\\>", nvim_tmux_nav.NvimTmuxNavigateLastActive)
keymap.set("n", "<C-Space>", nvim_tmux_nav.NvimTmuxNavigateNext)
keymap.set("n", "<leader>sm", "<Cmd>lua require('maximize').toggle()<CR>")
keymap.set("n", "<leader>d", "<cmd>DiffviewFileHistory %<CR>")
keymap.set("n", "+", "<C-a>")
keymap.set("n", "-", "<C-x>")
keymap.set("n", "<left>", "<C-w><")
keymap.set("n", "<right>", "<C-w>>")
keymap.set("n", "<up>", "<C-w>+")
keymap.set("n", "<down>", "<C-w>-")
keymap.set("n", "<leader>e", function ()
vim.cmd(string.format("Emmet %s", vim.fn.input("Emmet: ")))
end)

View File

@ -1,55 +0,0 @@
-- vim.opt.guicursor = ""
vim.opt.mouse = "a"
vim.opt.nu = true
vim.opt.relativenumber = true
vim.opt.clipboard:append({ "unnamedplus" })
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.smartindent = true
vim.opt.wrap = false
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.opt.scrolloff = 8
vim.opt.signcolumn = "yes"
vim.opt.isfname:append("@-@")
vim.opt.updatetime = 50
-- vim.opt.colorcolumn = "80"
vim.g.mapleader = " "
-- Case insensitive searching UNLESS /C or capital in search
vim.opt.ignorecase = true
vim.opt.completeopt = "menuone,noselect"
vim.opt.smartcase = true
vim.opt.splitright = true
vim.opt.splitbelow = true
vim.opt.termguicolors = true
vim.cmd([[let &t_Cs = "\e[4:3m"]])
vim.cmd([[let &t_Ce = "\e[4:0m"]])
vim.g.netrw_browse_split = 0
vim.g.netrw_banner = 0
vim.g.netrw_winsize = 25
vim.g.user_emmet_leader_key = ","
vim.g.user_emmet_install_global = 0
local autocmd = vim.api.nvim_create_autocmd
autocmd("FileType", {pattern = "html", command = [[EmmetInstall]]})
autocmd("FileType", {pattern = "css", command = [[EmmetInstall]]})

View File

@ -1,6 +0,0 @@
mv i405x.json into /usr/share/OpenTabletDriver/Configurations/
systemctl --user daemon-reload
mv 99-opentablet into /etc/udev/rules.d/
sudo udevadm control --reload-rules
systemctl --user daemon-reload
sudo udevadm control --reload-rules && udevadm trigger

View File

@ -1,12 +0,0 @@
[Unit]
Description=OpenTabletDriver Daemon
StartLimitIntervalSec=300
StartLimitBurst=5
[Service]
ExecStart=/usr/bin/otd
Restart=on-failure
RestartSec=8s
[Install]
WantedBy=default.target

View File

@ -1,18 +0,0 @@
[colors]
nord0 = #DD2E3440
nord1 = #3B4252
nord2 = #434C5E
nord3 = #4C566A
nord4 = #D8DEE9
nord5 = #E5E9F0
nord6 = #ECEFF4
nord7 = #8FBCBB
nord8 = #88C0D0
nord9 = #81A1C1
nord10 = #5E81AC
nord11 = #BF616A
nord12 = #D08770
nord13 = #EBCB8B
nord14 = #A3BE8C
nord15 = #B48EAD
nordback = #2E3440FE

View File

@ -1,69 +0,0 @@
include-file = ./colors.ini
include-file = ./modules.ini
[bar/1st]
width= 100%
bottom=false
monitor = DVI-D-0
height = 32px
radius = 15.0
fixed-center = true
background = ${colors.nord0}
foreground = ${colors.nord6}
padding = 4
module-margin = 2
font-0 = JetBrainsMono Nerd Font:size=12
modules-left = bspwm
modules-center = xwindow
modules-right = memory cpu pulseaudio date
separator = |
border-left-size = 6
border-right-size = 6
border-top-size = 5
border-color = ${nord0}
; tray-position = right
wm-restack = bspwm
; override-redirect = true
[settings]
screenchange-reload = true
pseudo-transparency = true
[bar/2nd]
width = 100%
bottom=false
monitor = HDMI-0
fixed-center = true
height = 32px
radius = 15.0
background = ${colors.nord0}
foreground = ${colors.nord6}
padding = 4
module-margin = 2
font-0 = JetBrainsMono Nerd Font:size=10
modules-left = bspwm
modules-center = xwindow
modules-right = memory cpu pulseaudio date
separator = |
border-left-size = 6
border-right-size = 6
border-top-size = 5
border-color = ${nord0}
; tray-position = right
wm-restack = bspwm
; override-redirect = true

View File

@ -1,197 +0,0 @@
[colors]
background = #000000
background-alt = #60ff6600
foreground = #ff6600
primary = #ff6600
secondary = #ffb000
alert = #fc0206
dark-font = #60ff6600
[bar/jabuxas]
width = 100%
height = 14pt
radius = 0
fixed-center = true
; dpi = 96
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 2pt
border-size = 0
border-color = #00000000
padding-left = 4
padding-right = 4
module-margin = 2
; font-0 = monospace;2
font-0 = Euro Caps:style=Regular:size=14;3
font-1 = Hack Nerd Font:style=Render,Raw:size=11;4
font-2 = Material\-Design\-Iconic\-Font:style=Design-Iconic-Font:size=16;4.5
modules-left = powermenu
modules-center = date
modules-right = memory cpu eth wlan
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
tray-position = right
tray-padding = 2
; wm-restack = generic
; wm-restack = bspwm
; wm-restack = i3
; override-redirect = true
[module/xworkspaces]
type = internal/xworkspaces
label-active = %name%
label-active-background = ${colors.background-alt}
label-active-underline= ${colors.primary}
label-active-padding = 1
label-occupied = %name%
label-occupied-padding = 1
label-urgent = %name%
label-urgent-background = ${colors.alert}
label-urgent-padding = 1
label-empty = %name%
label-empty-foreground = ${colors.disabled}
label-empty-padding = 1
[module/xwindow]
type = internal/xwindow
label = %title:0:60:...%
label-foreground = ${colors.dark-font}
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.disabled}
[module/pulseaudio]
type = internal/pulseaudio
format-volume-prefix = "VOL: "
format-volume-prefix-foreground = ${colors.primary}
format-volume = %{T2}<label-volume>%{T-}
label-volume = %percentage%%
label-muted = vol: %{T2}0%%{T-}
label-muted-foreground = ${colors.alert}
label-active-font = 0
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
label-layout = %layout%
#%{T3}%{T-}
label-layout-foreground = ${colors.primary}
label-indicator = %{F#8DC8FC}[%{T5}%{T-}]%{F-} cap
label-active-font = 3
[module/memory]
type = internal/memory
interval = 2
format-prefix = "RAM: "
#
format-prefix-foreground = ${colors.primary}
label = %{T2}%percentage_used:2%%%{T-}
label-font = 1
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "CPU: "
#
format-prefix-foreground = ${colors.primary}
label = %{T2}%percentage:2%%%{T-}
[network-base]
type = internal/network
interval = 5
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
[module/wlan]
inherit = network-base
interface-type = wireless
label-active-font = 2
label-connected = %{F#8DC8FC}[%{T5}%{T-}]%{F-} wln
#%essid%
label-disconnected = [ ] wln
[module/eth]
inherit = network-base
interface-type = wired
label-connected = %{F#8DC8FC}[%{T5}%{T-}]%{F-} eth
# %local-ip%
label-disconnected = [ ] eth
[module/date]
type = internal/date
interval = 1
format-NAME = date
date = %a %b %{T2}%H:%M%{T-}
date-alt = %{T2}%d/%m/%y %H:%M%{T-}
label = %date%
label-foreground = ${colors.primary}
format-NAME-background = #EC0B43
[module/powermenu]
type = custom/menu
format-foreground = ${colors.xcolor7}
format-background = ${colors.xcolor0}
label-open = "¿?"
label-open-font = 4
label-close = ""
label-close-foreground = ${colors.lime}
label-separator = " / "
label-separator-foreground = ${colors.xcolor1}
; reboot
menu-0-1 = 
menu-0-1-exec = systemctl reboot
menu-0-1-foreground = ${colors.salmon}
; shutdown
menu-0-0 = ""
menu-0-0-exec = systemctl poweroff
menu-0-0-foreground = ${colors.salmon}
[settings]
screenchange-reload = true
pseudo-transparency = true
; vim:ft=dosini

View File

@ -0,0 +1,174 @@
;==========================================================
;
;
; ██████╗ ██████╗ ██╗ ██╗ ██╗██████╗ █████╗ ██████╗
; ██╔══██╗██╔═══██╗██║ ╚██╗ ██╔╝██╔══██╗██╔══██╗██╔══██╗
; ██████╔╝██║ ██║██║ ╚████╔╝ ██████╔╝███████║██████╔╝
; ██╔═══╝ ██║ ██║██║ ╚██╔╝ ██╔══██╗██╔══██║██╔══██╗
; ██║ ╚██████╔╝███████╗██║ ██████╔╝██║ ██║██║ ██║
; ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝
;
;
; To learn more about how to configure Polybar
; go to https://github.com/polybar/polybar
;
; The README contains a lot of information
;
;==========================================================
[colors]
background = #080808
background-alt = #323437
foreground = #bdbdbd
primary = #79dac8
secondary = #36c692
alert = #ff5189
disabled = #465a61
[bar/example]
monitor = ${env:MONITOR:fallback-value}
width = 100%
height = 24pt
radius = 6
; dpi = 96
background = ${colors.background}
foreground = ${colors.foreground}
line-size = 3pt
border-size = 4pt
border-color = #00000000
padding-left = 0
padding-right = 1
module-margin = 1
separator = |
separator-foreground = ${colors.disabled}
font-0 = monospace;2
modules-left = xworkspaces
modules-center = xwindow
modules-right = pulseaudio memory cpu eth date
cursor-click = pointer
cursor-scroll = ns-resize
enable-ipc = true
tray-position = right
; wm-restack = generic
; wm-restack = bspwm
; wm-restack = i3
; override-redirect = true
[module/xworkspaces]
type = internal/xworkspaces
label-active = %name%
label-active-background = ${colors.background-alt}
label-active-underline= ${colors.primary}
label-active-padding = 1
label-occupied = %name%
label-occupied-padding = 1
label-urgent = %name%
label-urgent-background = ${colors.alert}
label-urgent-padding = 1
label-empty = %name%
label-empty-foreground = ${colors.disabled}
label-empty-padding = 1
[module/xwindow]
type = internal/xwindow
label = %title:0:50:...%
[module/filesystem]
type = internal/fs
interval = 25
mount-0 = /
label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
label-unmounted = %mountpoint% not mounted
label-unmounted-foreground = ${colors.disabled}
[module/pulseaudio]
type = internal/pulseaudio
format-volume-prefix = "VOL "
format-volume-prefix-foreground = ${colors.primary}
format-volume = <label-volume>
label-volume = %percentage%%
label-muted = muted
label-muted-foreground = ${colors.disabled}
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
label-layout = %layout%
label-layout-foreground = ${colors.primary}
label-indicator-padding = 2
label-indicator-margin = 1
label-indicator-foreground = ${colors.background}
label-indicator-background = ${colors.secondary}
[module/memory]
type = internal/memory
interval = 2
format-prefix = "RAM "
format-prefix-foreground = ${colors.primary}
label = %percentage_used:2%%
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = "CPU "
format-prefix-foreground = ${colors.primary}
label = %percentage:2%%
[network-base]
type = internal/network
interval = 5
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
[module/wlan]
inherit = network-base
interface-type = wireless
label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
[module/eth]
inherit = network-base
interface-type = wired
label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
[module/date]
type = internal/date
interval = 1
date = %d-%m-%Y - %H:%M
date-alt = %H:%M:%S
label = %date%
label-foreground = ${colors.primary}
[settings]
screenchange-reload = true
pseudo-transparency = true
; vim:ft=dosini

View File

@ -1,7 +1,13 @@
#!/bin/bash #!/bin/bash
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
# Terminate already running bar instances
killall -q polybar killall -q polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done # If all your bars have ipc enabled, you can also use
polybar 1st 2>&1 | tee -a /tmp/polybar.log & disown # polybar-msg cmd quit
polybar 2nd 2>&1 | tee -a /tmp/polybar.log & disown
# Launch Polybar, using default config location ~/.config/polybar/config.ini
MONITOR=DVI-D-0 polybar -c "$SCRIPTPATH/jabuxas.ini" 3>&1 | tee -a /tmp/polybar.log & disown
MONITOR=HDMI-A-0 polybar -c "$SCRIPTPATH/jabuxas.ini" 3>&1 | tee -a /tmp/polybar.log & disown
echo "Polybar launched..." echo "Polybar launched..."

View File

@ -1,82 +0,0 @@
[module/bspwm]
type = internal/bspwm
pin-workspaces = true
enable-click = true
enable-scroll = true
reverse-scroll = false
occupied-scroll = true
ws-icon-0 = "1;"
ws-icon-1 = "2;"
ws-icon-2 = "3;"
ws-icon-3 = "4;"
ws-icon-4 = "5;"
ws-icon-5 = "6;"
ws-icon-6 = "7;"
ws-icon-7 = "8;"
ws-icon-8 = "9;"
ws-icon-9 = "0;"
label-focused = %icon%
label-focused-foreground = ${colors.nord10}
label-focused-padding = 1
label-occupied = %icon%
label-occupied-foreground = ${colors.nord6}
label-occupied-padding = 1
label-urgent = %icon%
label-urgent-foreground = ${colors.nord11}
label-urgent-padding = 1
label-empty =
[module/xwindow]
type = internal/xwindow
label = %title:0:60:...%
label-foreground = ${colors.nord6}
[module/memory]
type = internal/memory
interval = 3
format = <label>
label =  %gb_used%
label-foreground = ${colors.nord11}
[module/cpu]
type = internal/cpu
interval = 1
format = <label>
label =  %percentage%%
label-foreground = ${colors.nord12}
[module/pulseaudio]
type = internal/pulseaudio
use-ui-max = false
interval = 5
format-volume = <ramp-volume> <label-volume>
format-muted = <label-muted>
format-muted-foreground = ${colors.nord13}
format-volume-foreground = ${colors.nord13}
label-volume = %percentage%%
label-muted = 婢 M%
ramp-volume-0 =
ramp-volume-1 = 奔
ramp-volume-2 =
click-right = pavucontrol
[module/date]
type = internal/date
interval = 1.0
label =  %date%  %time%
label-foreground = ${colors.nord14}
time = %H:%M
date = %d/%m/%y

View File

@ -0,0 +1,39 @@
#!/bin/bash
#
# User Configuration
#
show_controls=yes
icon_color=5bb1b4
play_icon=""
pause_icon=""
player_icon=""
# Get song title
title=$(playerctl metadata | grep -Po '(?<=title )([^\(]*)')
# Get song artist
artist=$(playerctl metadata | grep -Po '(?<=:artist )[^,]*')
# Get play/paused status
status=$(playerctl status)
# Set play_pause_icon to $play_icon or $pause_icon depending on player status
if [ $status == "Paused" ]; then
play_pause_icon=$play_icon
else
play_pause_icon=$pause_icon
fi
# If title and artist are null, print an empty string so polybar hides the module
if [ -z $title ] && [ -z $artist ]; then
echo ""
else
# Print polybar widget string
if [ $show_controls == "yes" ]; then
echo "%{F#$icon_color}$player_icon%{F-} $(head -c 30 <<< $title) - $(head -c 20 <<< $artist) %{F#$icon_color}%{A1:playerctl previous:}%{A} %{A1:playerctl play-pause:}$play_pause_icon%{A} %{A1:playerctl next:}%{A}%{F-}"
else
echo "%{F#$icon_color}$player_icon%{F-} $(head -c 30 <<< $title) - $(head -c 20 <<< $artist)%{F-}"
fi
fi

View File

@ -0,0 +1,4 @@
some of the software here i don't use anymore
i'm just putting them here in case i *ever* come back to it, which is unlikely, probably, hmm...
currently using leftwm and firefox

View File

@ -1,9 +0,0 @@
/* Colors by SzeligBalazs */
* {
al: #00000000;
bg: #181818ff;
se: #101010ff;
fg: #D8D8D8ff;
ac: #D8D8D8ff;
}

View File

@ -1,110 +0,0 @@
configuration {
font: "Iosevka Nerd Font 10";
show-icons: true;
icon-theme: "Papirus";
display-drun: "";
drun-display-format: "{name}";
disable-history: false;
sidebar-mode: false;
}
@import "colors.rasi"
window {
transparency: "real";
background-color: @bg;
text-color: @fg;
border: 3px;
border-color: @ac;
border-radius: 12px;
width: 30%;
location: center;
x-offset: 0;
y-offset: 0;
}
prompt {
enabled: true;
padding: 0.30% 1% 0% -0.5%;
background-color: @al;
text-color: @fg;
font: "FantasqueSansMono Nerd Font 12";
}
entry {
background-color: @al;
text-color: @fg;
placeholder-color: @fg;
expand: true;
horizontal-align: 0;
placeholder: "Search";
padding: 0.10% 0% 0% 0%;
blink: true;
}
inputbar {
children: [ prompt, entry ];
background-color: @bg;
text-color: @fg;
expand: false;
border: 0% 0% 0% 0%;
border-radius: 0px;
border-color: @ac;
margin: 0% 0% 0% 0%;
padding: 1.5%;
}
listview {
background-color: @al;
padding: 10px;
columns: 2;
lines: 7;
spacing: 1%;
cycle: false;
dynamic: true;
layout: vertical;
}
mainbox {
background-color: @al;
border: 0% 0% 0% 0%;
border-radius: 0% 0% 0% 0%;
border-color: @ac;
children: [ inputbar, listview ];
spacing: 0%;
padding: 0%;
}
element {
background-color: @al;
text-color: @fg;
orientation: horizontal;
border-radius: 0%;
padding: 0.5% 0.5% 0.5% 0.5%;
}
element-icon {
background-color: inherit;
text-color: inherit;
horizontal-align: 0.5;
vertical-align: 0.5;
size: 24px;
border: 0px;
}
element-text {
background-color: @al;
text-color: inherit;
expand: true;
horizontal-align: 0;
vertical-align: 0.5;
margin: 0% 0.25% 0% 0.25%;
}
element selected {
background-color: @ac;
text-color: @bg;
border: 0% 0% 0% 0%;
border-radius: 12px;
border-color: @bg;
}

View File

@ -1,39 +0,0 @@
#!/bin/bash
## Author : Aditya Shakya (adi1090x)
## Mail : adi1090x@gmail.com
## Github : @adi1090x
## Reddit : @adi1090x
# Available Styles
# >> Styles Below Only Works With "rofi-git(AUR)", Current Version: 1.5.4-76-gca067234
# full full_circle full_rounded full_alt
# card card_circle column column_circle
# row row_alt row_circle
# single single_circle single_full single_full_circle single_rounded single_text
style="power"
rofi_command="rofi -theme /usr/share/rofi/themes/dmenu.rasi"
uptime=$(uptime -p)
my_hostname=$(hostname)
# Options
shutdown=" Shutdown"
reboot=" Reboot"
logout=" Logout"
# Variable passed to rofi
options="$shutdown\n$reboot\n$logout"
chosen="$(echo -e "$options" | $rofi_command -p "$my_hostname | $uptime" -dmenu -selected-row 2)"
case $chosen in
$shutdown)
poweroff
;;
$reboot)
reboot
;;
$logout)
pkill -KILL -u $USER
;;
esac

View File

@ -1,80 +0,0 @@
configuration {
display-drun: "Applications:";
display-window: "Windows:";
drun-display-format: "{icon} {name}";
font: "mononoki Nerd Font Medium 12";
modi: "window,run,drun,emoji";
show-icons: true;
icon-theme: "Tela nord dark";
}
@theme "/dev/null"
* {
bg: #242f30;
bg-alt: #273135;
fg: #FFFFFF;
fg-alt: #787c99;
background-color: @bg;
border: 0;
margin: 0;
padding: 0;
spacing: 0;
}
window {
width: 30%;
}
element {
padding: 8 0;
text-color: @fg-alt;
}
element selected {
text-color: @fg;
}
element-text {
background-color: inherit;
text-color: inherit;
vertical-align: 0.5;
}
element-icon {
size: 30;
}
entry {
background-color: @bg-alt;
padding: 12;
text-color: @fg;
}
inputbar {
children: [prompt, entry];
}
listview {
padding: 8 12;
background-color: @bg;
columns: 1;
lines: 8;
}
mainbox {
background-color: @bg;
children: [inputbar, listview];
}
prompt {
background-color: @bg-alt;
enabled: true;
padding: 12 0 0 12;
text-color: @fg;
}
/* vim: ft=sass

View File

@ -1,80 +0,0 @@
configuration {
display-drun: "Applications:";
display-window: "Windows:";
drun-display-format: "{icon} {name}";
font: "mononoki Nerd Font Medium 12";
modi: "window,run,drun,emoji";
show-icons: true;
icon-theme: "Tela nord dark";
}
@theme "/dev/null"
* {
bg: #242f30;
bg-alt: #273135;
fg: #FFFFFF;
fg-alt: #787c99;
background-color: @bg;
border: 0;
margin: 0;
padding: 0;
spacing: 0;
}
window {
width: 30%;
}
element {
padding: 8 0;
text-color: @fg-alt;
}
element selected {
text-color: @fg;
}
element-text {
background-color: inherit;
text-color: inherit;
vertical-align: 0.5;
}
element-icon {
size: 30;
}
entry {
background-color: @bg-alt;
padding: 12;
text-color: @fg;
}
inputbar {
children: [prompt, entry];
}
listview {
padding: 8 12;
background-color: @bg;
columns: 1;
lines: 8;
}
mainbox {
background-color: @bg;
children: [inputbar, listview];
}
prompt {
background-color: @bg-alt;
enabled: true;
padding: 12 0 0 12;
text-color: @fg;
}
/* vim: ft=sass

View File

@ -1,39 +0,0 @@
#!/bin/bash
## Author : Aditya Shakya (adi1090x)
## Mail : adi1090x@gmail.com
## Github : @adi1090x
## Reddit : @adi1090x
# Available Styles
# >> Styles Below Only Works With "rofi-git(AUR)", Current Version: 1.5.4-76-gca067234
# full full_circle full_rounded full_alt
# card card_circle column column_circle
# row row_alt row_circle
# single single_circle single_full single_full_circle single_rounded single_text
style="power"
rofi_command="rofi -theme /usr/share/rofi/themes/dmenu.rasi"
uptime=$(uptime -p)
my_hostname=$(hostname)
# Options
shutdown=" Shutdown"
reboot=" Reboot"
logout=" Logout"
# Variable passed to rofi
options="$shutdown\n$reboot\n$logout"
chosen="$(echo -e "$options" | $rofi_command -p "$my_hostname | $uptime" -dmenu -selected-row 2)"
case $chosen in
$shutdown)
loginctl poweroff
;;
$reboot)
loginctl reboot
;;
$logout)
pkill -KILL -u $USER
;;
esac

View File

@ -1,7 +0,0 @@
inputbar {
children: [entry];
}
listview {
lines: 3;
}

View File

@ -1,45 +1,50 @@
# Default config for sway
#
# Copy this to ~/.config/sway/config and edit it to your liking.
#
# Read `man 5 sway` for a complete reference.
### Variables ### Variables
#
# Logo key. Use Mod1 for Alt.
set $mod Mod4 set $mod Mod4
# Home row direction keys, like vim
set $left h set $left h
set $down j set $down j
set $up k set $up k
set $right l set $right l
# Your preferred terminal emulator
set $term kitty set $term kitty
# Your preferred application launcher set $menu ~/.config/rofi/launchers/type-6/launcher.sh
# Note: pass the final command to swaymsg so that the resulting window can be opened
# on the original workspace that the command was run on.
set $menu ~/.config/rofi/launchers/type-7/launcher.sh
### Output configuration # exec linux-wallpaperengine 2937346640 --screen-root HDMI-A-1 --silent --fps 30
# output DP-1 bg ~/Pictures/wallpapers/FouGLjX.png fill
output DP-1 bg ~/Pictures/wallpapers/HHN8.png fill
# exec linux-wallpaperengine 2920910376 --screen-root DP-1 --silent --fps 30
output HDMI-A-1 bg ~/Pictures/wallpapers/FouGLjX.png fill
# #
# Default wallpaper (more resolutions are available in /usr/share/backgrounds/sway/) output DP-1 resolution 1920x1080 position 0,0 adaptive_sync on
output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill # output HDMI-A-1 resolution 1920x1080 position 1920,-145 # negative indeces dont work xwayland
#
output HDMI-A-1 resolution 1920x1080 position 0,0 # gtk theme
output DP-1 resolution 1920x1080 position 1920,145 set $gnome-schema org.gnome.desktop.interface
exec_always {
gsettings set $gnome-schema gtk-theme 'Gruvbox-Dark-BL-LB'
gsettings set $gnome-schema icon-theme 'Nordzy-green-dark'
gsettings set $gnome-schema cursor-theme 'oreo_white_cursors'
gsettings set $gnome-schema font-name 'Cartograph CF 13'
}
seat seat0 xcursor_theme oreo_white_cursors 16
### Idle configuration
#
# Example configuration:
#
exec swayidle -w \ exec swayidle -w \
timeout 300 'swaylock -f -c 000000' \ timeout 300 'swaylock -f -c 000000 -i /home/jab/Pictures/wallpapers/ce9n8lbxes4b1.jpg' \
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
before-sleep 'swaylock -f -c 000000' before-sleep 'swaylock -f -c 000000 -i /home/jab/Pictures/wallpapers/ce9n8lbxes4b1.jpg'
#
# This will lock your screen after 300 seconds of inactivity, then turn off # exec xrandr --output DP-1 --primary
# your displays after another 300 seconds, and turn your screens back on when exec waybar
# resumed. It will also lock your screen before your computer goes to sleep. exec otd
exec mpd
exec lxqt-policykit
exec nmcli con up Wired\ Connection\ 1
exec_always autotiling
exec redshift -t 4500:3500 -l -23.5475:-46.63611 -b 1.0:0.7 &
exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway
exec touch ~/tmp/swaylol
exec rm -rf ~/tmp/*
exec umount ~/xabu
exec sshfs server:/home/xabu ~/xabu -o reconnect
### Input configuration ### Input configuration
# #
@ -56,6 +61,9 @@ exec swayidle -w \
xkb_layout br xkb_layout br
xkb_variant abnt2 xkb_variant abnt2
} }
input "1356:2508:Wireless_Controller_Touchpad" {
map_to_output DISABLED
}
# #
# You can get the names of your inputs by running: swaymsg -t get_inputs # You can get the names of your inputs by running: swaymsg -t get_inputs
# Read `man 5 sway-input` for more information about this section. # Read `man 5 sway-input` for more information about this section.
@ -82,14 +90,14 @@ exec swayidle -w \
bindsym $mod+Shift+r reload bindsym $mod+Shift+r reload
# Exit sway (logs you out of your Wayland session) # Exit sway (logs you out of your Wayland session)
bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit' bindsym $mod+Shift+q exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'
# #
# Moving around: # Moving around:
# #
# Move your focus around # Move your focus around
bindsym $mod+$up focus left bindsym $mod+$up focus left
# bindsym $mod+$left focus down # bindsym $mod+$down focus down
# bindsym $mod+$right focus up # bindsym $mod+$up focus up
bindsym $mod+$down focus right bindsym $mod+$down focus right
# Or use $mod+[up|down|left|right] # Or use $mod+[up|down|left|right]
bindsym $mod+Left focus left bindsym $mod+Left focus left
@ -99,8 +107,8 @@ exec swayidle -w \
# Move the focused window with the same, but add Shift # Move the focused window with the same, but add Shift
bindsym $mod+Shift+$up move left bindsym $mod+Shift+$up move left
# bindsym $mod+Shift+$left move down # bindsym $mod+Shift+$down move down
# bindsym $mod+Shift+$right move up # bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$down move right bindsym $mod+Shift+$down move right
# Ditto, with arrow keys # Ditto, with arrow keys
bindsym $mod+Shift+Left move left bindsym $mod+Shift+Left move left
@ -110,14 +118,14 @@ exec swayidle -w \
# #
# Workspaces: # Workspaces:
# #
bindsym $mod+1 exec /home/jab/.config/sway/xmonad workspace 1 bindsym $mod+1 exec ~/.config/sway/xmonad workspace 1
bindsym $mod+2 exec /home/jab/.config/sway/xmonad workspace 2 bindsym $mod+2 exec ~/.config/sway/xmonad workspace 2
bindsym $mod+3 exec /home/jab/.config/sway/xmonad workspace 3 bindsym $mod+3 exec ~/.config/sway/xmonad workspace 3
bindsym $mod+4 exec /home/jab/.config/sway/xmonad workspace 4 bindsym $mod+4 exec ~/.config/sway/xmonad workspace 4
bindsym $mod+5 exec /home/jab/.config/sway/xmonad workspace 5 bindsym $mod+5 exec ~/.config/sway/xmonad workspace 5
bindsym $mod+6 exec /home/jab/.config/sway/xmonad workspace 6 bindsym $mod+6 exec ~/.config/sway/xmonad workspace 6
bindsym $mod+7 exec /home/jab/.config/sway/xmonad workspace 7 bindsym $mod+7 exec ~/.config/sway/xmonad workspace 7
bindsym $mod+8 exec /home/jab/.config/sway/xmonad workspace 8 bindsym $mod+8 exec ~/.config/sway/xmonad workspace 8
bindsym $mod+Shift+1 move container to workspace number 1 bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2 bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3 bindsym $mod+Shift+3 move container to workspace number 3
@ -132,13 +140,13 @@ exec swayidle -w \
# You can "split" the current object of your focus with # You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits # $mod+b or $mod+v, for horizontal and vertical splits
# respectively. # respectively.
bindsym $mod+b splith bindsym $mod+h splith
bindsym $mod+v splitv bindsym $mod+v splitv
# Switch the current container between different layout styles # Switch the current container between different layout styles
bindsym $mod+s layout stacking bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split bindsym $mod+Shift+e layout toggle split
# Make the current focus fullscreen # Make the current focus fullscreen
bindsym $mod+f fullscreen bindsym $mod+f fullscreen
@ -152,8 +160,8 @@ exec swayidle -w \
# Move focus to the parent container # Move focus to the parent container
bindsym $mod+a focus parent bindsym $mod+a focus parent
bindsym $mod+comma focus output left bindsym $mod+comma focus output DP-1
bindsym $mod+period focus output right bindsym $mod+period focus output HDMI-A-1
bindsym $mod+Shift+comma move container to output left bindsym $mod+Shift+comma move container to output left
bindsym $mod+Shift+period move container to output right bindsym $mod+Shift+period move container to output right
# #
@ -163,57 +171,127 @@ exec swayidle -w \
# You can send windows there and get them back later. # You can send windows there and get them back later.
# Move the currently focused window to the scratchpad # Move the currently focused window to the scratchpad
bindsym $mod+Shift+minus move scratchpad bindsym $mod+Control+Return move scratchpad
# Show the next scratchpad window or hide the focused scratchpad window. # Show the next scratchpad window or hide the focused scratchpad window.
# If there are multiple scratchpad windows, this command cycles through them. # If there are multiple scratchpad windows, this command cycles through them.
bindsym $mod+minus scratchpad show bindsym $mod+Control+s scratchpad show
# #
# Resizing containers: # Resizing containers:
# #
# mode "resize" { mode "resize" {
# # left will shrink the containers width # left will shrink the containers width
# # right will grow the containers width # right will grow the containers width
# # up will shrink the containers height # up will shrink the containers height
# # down will grow the containers height # down will grow the containers height
# bindsym $left resize shrink width 10px bindsym $left resize shrink width 40px
# bindsym $down resize grow height 10px bindsym $down resize grow height 40px
# bindsym $up resize shrink height 10px bindsym $up resize shrink height 40px
# bindsym $right resize grow width 10px bindsym $right resize grow width 40px
#
# # Ditto, with arrow keys
# bindsym Left resize shrink width 10px
# bindsym Down resize grow height 10px
# bindsym Up resize shrink height 10px
# bindsym Right resize grow width 10px
#
# # Return to default mode
# bindsym Return mode "default"
# bindsym Escape mode "default"
# }
# bindsym $mod+r mode "resize"
bindsym $mod+h resize grow right 10px
bindsym $mod+l resize shrink width 10px
# # Ditto, with arrow keys
# Status Bar: bindsym Left resize shrink width 40px
# bindsym Down resize grow height 40px
# Read `man 5 sway-bar` for more information about this section. bindsym Up resize shrink height 40px
bar { bindsym Right resize grow width 40px
position top
# When the status_command prints a new line to stdout, swaybar updates. # Return to default mode
# The default just shows the current date and time. bindsym Return mode "default"
status_command while date +'%Y-%m-%d %I:%M:%S %p'; do sleep 1; done bindsym Escape mode "default"
colors {
statusline #ffffff
background #323232
inactive_workspace #32323200 #32323200 #5c5c5c
}
} }
bindsym $mod+r mode "resize"
bindsym $mod+b exec ~/.config/sway/firefox-to-workspace.sh main 2
bindsym $mod+Shift+b exec ~/.config/sway/firefox-to-workspace.sh dev 5
bindsym $mod+Control+b exec ~/.config/sway/firefox-to-workspace.sh school 7
bindsym $mod+F1 exec mpc prev
bindsym $mod+F2 exec mpc next
bindsym $mod+Escape exec mpc toggle
bindsym $mod+Control+l exec sudo lutris-chroot
bindsym $mod+Control+x exec GTK_THEME=Orchis-Dark xournalpp
bindsym $mod+Alt+x exec LD_PRELOAD="$LD_PRELOAD:/usr/\$LIB/libgamemodeauto.so.0" XL_SECRET_PROVIDER=FILE xivlauncher
bindsym $mod+Control+o exec VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd64.json obs
bindsym $mod+Shift+i exec ~/.local/share/idea-IC/bin/idea.sh
bindsym $mod+Shift+d exec flatpak run de.shorsh.discord-screenaudio
default_border pixel default_border pixel 2
default_floating_border pixel client.focused #cb4b16 #cb4b16 #cb4b16
focus_on_window_activation none
popup_during_fullscreen smart
no_focus [window_role="pop-up"]
corner_radius 8
shadows on
shadows_on_csd on
shadow_blur_radius 80
blur enable
blur_radius 3
blur_passes 3
gaps inner 8
for_window [class="discord"] move to workspace 3
for_window [class="Anki" title="Add"] floating enable
for_window [class="VencordDesktop"] move to workspace 3
for_window [shell=".*"] inhibit_idle fullscreen
for_window [class="obsidian"] move to workspace 6
for_window [class="xournalpp"] move to workspace 7
for_window [app_id=".*office.*"] move to workspace 5
for_window [app_id="WebCord"] move to workspace 3
for_window [app_id="de.shorsh.discord-screenaudio"] move to workspace 3
for_window [app_id="SGDBoop"] floating enable
for_window [class="Steam"] move to workspace 8
for_window [class="steam"] move to workspace 8
for_window [class=".*jetbrains.*"] move to workspace 4
for_window [app_id="lutris"] move to workspace 5
for_window [class="heroic"] move to workspace 5
for_window [class="explorer.exe"] move to workspace 4
for_window [class="osu!"] move to workspace 4
for_window [title="Wine System Tray"] kill
for_window [app_id="org.prismlauncher.PrismLauncher"] move to workspace 5
for_window [class="ffxiv_dx11.exe"] move to workspace 4, floating enable
for_window [class="battle.net.exe"] move to workspace 4, floating enable
for_window [class="diablo iv.exe"] move to workspace 4, floating enable
for_window [class=".*Minecraft.*"] move to workspace 4, floating enable
for_window [class="XIVLauncher.Core"] move to workspace 4, floating enable
for_window [class=".*league.*"] move to workspace 4, floating enable
assign [class="league of legends.exe"] 4
for_window [class=".*riot.*"] move to workspace 4, floating enable
for_window [class=".*csgo.*"] move to workspace 4, floating enable
assign [class="gamescope"] 4
for_window [class="gamescope"] floating enable
for_window [class=".*steam_.*"] move to workspace 4, floating enable
# firefox tweaks
for_window [title = "Firefox - Sharing Indicator"] kill
for_window [title = "About Mozilla Firefox"] floating enable
for_window [window_role = "About"] floating enable
for_window [app_id="firefox" title="Library"] floating enable, border pixel 1, sticky enable
for_window [title = "Firefox — Sharing Indicator"] kill
# steam tweaks
for_window [class="^Steam$" title="^Friends$"] floating enable
for_window [class="^Steam$" title="Steam - News"] floating enable
for_window [class="^Steam$" title=".* - Chat"] floating enable
for_window [class="^Steam$" title="^Settings$"] floating enable
for_window [class="^Steam$" title=".* - event started"] floating enable
for_window [class="^Steam$" title=".* CD key"] floating enable
for_window [class="^Steam$" title="^Steam - Self Updater$"] floating enable
for_window [class="^Steam$" title="^Screenshot Uploader$"] floating enable
for_window [class="^Steam$" title="^Steam Guard - Computer Authorization Required$"] floating enable
for_window [title="^Steam Keyboard$"] floating enable
# jetbrains
bindsym $mod+Shift+s exec steam --noverifyfiles
bindsym $mod+e exec thunar
bindsym Print exec ~/.local/bin/print-fullscreen
bindsym Shift+Print exec ~/.local/bin/print-select
bindsym Control+Shift+Print exec ~/.local/bin/print-tmp
bindsym Control+Print exec ~/.local/bin/print-window.sh
# audio
bindsym XF86AudioRaiseVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
bindsym XF86AudioLowerVolume exec wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
include /etc/sway/config.d/* include /etc/sway/config.d/*

View File

@ -0,0 +1,33 @@
#!/bin/bash
firefox_binary="firefox-bin"
if pidof sway; then
ipc_binary=swaymsg
else
ipc_binary=i3-msg
fi
if [[ -z $1 ]]; then
echo "Usage: $0 <profile> <workspace>"
exit 1
fi
firefox_profile=$1
workspace=$2
echo "$firefox_profile to $workspace"
$firefox_binary -p $firefox_profile &> /dev/null &
PID=$!
command="$ipc_binary "[pid=$PID]" move workspace $workspace"
echo $command
until $ipc_binary -t get_tree | grep "\"pid\": $PID" > /dev/null #wait till window opens
do
sleep 0
done
$command
disown
exit 0

View File

@ -57,18 +57,181 @@ set -g @plugin 'tmux-plugins/tmux-sensible'
# set -g @plugin 'jimeh/tmux-themepack' # set -g @plugin 'jimeh/tmux-themepack'
set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum' set -g @plugin 'tmux-plugins/tmux-continuum'
# set -g @plugin 'seebi/tmux-colors-solarized' set -g @plugin 'seebi/tmux-colors-solarized'
# set -g @plugin "vladovidiu/rose-pine-tmux" # set -g @plugin "vladovidiu/rose-pine-tmux"
set -g @plugin "janoamaral/tokyo-night-tmux" # set -g @plugin "janoamaral/tokyo-night-tmux"
set -g @plugin 'vascomfnunes/tmux-ludanta' # set -g @plugin 'vascomfnunes/tmux-ludanta'
set -g @resurrect-capture-pane-contents 'on' set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on' set -g @continuum-restore 'on'
set -g status-right "#{mpd_now_playing}" # set -g status-right "#{mpd_now_playing}"
# set -g @colors-solarized 'light' # set -g set-titles-string '#{pane_title}
set-option -g set-titles on
set-option -g set-titles-string "#S / #W"
set -g @colors-solarized 'dark'
# set -g status off # set -g status off
run '~/.config/tmux/plugins/tpm/tpm' run '~/.config/tmux/plugins/tpm/tpm'
#
# Powerline Gray Block - Tmux Themepack
# https://github.com/jimeh/tmux-themepack
#
# Inspired by vim-powerline: https://github.com/powerline/powerline
#
# Requires terminal to be using a powerline compatible font, find one here:
# https://github.com/powerline/fonts
#
# Themepack format options
set -goq @themepack-status-left-area-left-format "#S"
set -goq @themepack-status-left-area-middle-format "#(whoami)"
set -goq @themepack-status-left-area-right-format "#I:#P"
set -goq @themepack-status-right-area-left-format "%H:%M:%S"
set -goq @themepack-status-right-area-middle-format "%d-%b-%y"
set -goq @themepack-status-right-area-right-format "#H"
set -goq @themepack-window-status-current-format "#I:#W#F"
set -goq @themepack-window-status-format "#I:#W#F"
# Customizable prefixes and suffixes for @themepack-* format options
set -goq @themepack-status-left-area-left-prefix ""
set -goq @themepack-status-left-area-left-suffix ""
set -goq @themepack-status-left-area-middle-prefix ""
set -goq @themepack-status-left-area-middle-suffix ""
set -goq @themepack-status-left-area-right-prefix ""
set -goq @themepack-status-left-area-right-suffix ""
set -goq @themepack-status-right-area-left-prefix ""
set -goq @themepack-status-right-area-left-suffix ""
set -goq @themepack-status-right-area-middle-prefix ""
set -goq @themepack-status-right-area-middle-suffix ""
set -goq @themepack-status-right-area-right-prefix ""
set -goq @themepack-status-right-area-right-suffix ""
set -goq @themepack-window-status-current-prefix ""
set -goq @themepack-window-status-current-suffix ""
set -goq @themepack-window-status-prefix ""
set -goq @themepack-window-status-suffix ""
# Apply prefixes and suffixes to @themepack-* format options
set -gqF @themepack-status-left-area-left-format "#{@themepack-status-left-area-left-prefix}#{@themepack-status-left-area-left-format}#{@themepack-status-left-area-left-suffix}"
set -gqF @themepack-status-left-area-middle-format "#{@themepack-status-left-area-middle-prefix}#{@themepack-status-left-area-middle-format}#{@themepack-status-left-area-middle-suffix}"
set -gqF @themepack-status-left-area-right-format "#{@themepack-status-left-area-right-prefix}#{@themepack-status-left-area-right-format}#{@themepack-status-left-area-right-suffix}"
set -gqF @themepack-status-right-area-left-format "#{@themepack-status-right-area-left-prefix}#{@themepack-status-right-area-left-format}#{@themepack-status-right-area-left-suffix}"
set -gqF @themepack-status-right-area-middle-format "#{@themepack-status-right-area-middle-prefix}#{@themepack-status-right-area-middle-format}#{@themepack-status-right-area-middle-suffix}"
set -gqF @themepack-status-right-area-right-format "#{@themepack-status-right-area-right-prefix}#{@themepack-status-right-area-right-format}#{@themepack-status-right-area-right-suffix}"
set -gqF @themepack-window-status-current-format "#{@themepack-window-status-current-prefix}#{@themepack-window-status-current-format}#{@themepack-window-status-current-suffix}"
set -gqF @themepack-window-status-format "#{@themepack-window-status-prefix}#{@themepack-window-status-format}#{@themepack-window-status-suffix}"
# Powerline color options
set -goq @powerline-color-main-1 colour245
set -goq @powerline-color-main-2 colour250
set -goq @powerline-color-main-3 colour245
set -goq @powerline-color-black-1 black
set -goq @powerline-color-grey-1 colour233
set -goq @powerline-color-grey-2 colour235
set -goq @powerline-color-grey-3 colour238
set -goq @powerline-color-grey-4 colour240
set -goq @powerline-color-grey-5 colour243
set -goq @powerline-color-grey-6 colour245
# Powerline Block Override
set -goqF @powerline-color-activity-1 "#{@powerline-color-main-3}"
# Powerline options
set -goqF @powerline-color-activity-1 "#{@powerline-color-grey-6}"
set -goqF @powerline-status-bg "#{@powerline-color-grey-1}"
set -goqF @powerline-status-fg "#{@powerline-color-grey-4}"
set -goqF @powerline-status-left-area-left-bg "#{@powerline-color-main-1}"
set -goqF @powerline-status-left-area-left-fg "#{@powerline-status-bg}"
set -goqF @powerline-status-left-area-middle-bg "#{@powerline-status-fg}"
set -goqF @powerline-status-left-area-middle-fg "#{@powerline-status-bg}"
set -goqF @powerline-status-left-area-right-bg "#{@powerline-color-grey-2}"
set -goqF @powerline-status-left-area-right-fg "#{@powerline-status-fg}"
set -goqF @powerline-status-left-bg "#{@powerline-color-grey-1}"
set -goqF @powerline-status-left-fg "#{@powerline-color-grey-5}"
set -goqF @powerline-status-right-area-left-bg "#{@powerline-color-grey-2}"
set -goqF @powerline-status-right-area-left-fg "#{@powerline-status-fg}"
set -goqF @powerline-status-right-area-middle-bg "#{@powerline-status-fg}"
set -goqF @powerline-status-right-area-middle-fg "#{@powerline-status-bg}"
set -goqF @powerline-status-right-area-right-bg "#{@powerline-color-grey-6}"
set -goqF @powerline-status-right-area-right-fg "#{@powerline-status-bg}"
set -goqF @powerline-status-right-bg "#{@powerline-color-grey-1}"
set -goqF @powerline-status-right-fg "#{@powerline-color-grey-5}"
# Theme options
set -goqF @theme-clock-mode-colour "#{@powerline-color-main-1}"
set -goq @theme-clock-mode-style 24
set -goqF @theme-display-panes-active-colour "#{@powerline-color-grey-6}"
set -goqF @theme-display-panes-colour "#{@powerline-color-grey-1}"
set -goqF @theme-message-bg "#{@powerline-color-main-1}"
set -goqF @theme-message-command-bg "#{@powerline-color-main-1}"
set -goqF @theme-message-command-fg "#{@powerline-color-black-1}"
set -goqF @theme-message-fg "#{@powerline-color-black-1}"
set -goqF @theme-mode-bg "#{@powerline-color-main-1}"
set -goqF @theme-mode-fg "#{@powerline-color-black-1}"
set -goq @theme-pane-active-border-bg default
set -goqF @theme-pane-active-border-fg "#{@powerline-color-main-1}"
set -goq @theme-pane-border-bg default
set -goqF @theme-pane-border-fg "#{@powerline-color-grey-3}"
set -goqF @theme-status-bg "#{@powerline-status-bg}"
set -goqF @theme-status-fg "#{@powerline-status-fg}"
set -goq @theme-status-interval 1
set -goq @theme-status-justify centre
set -goqF @theme-status-left "#[fg=#{@powerline-status-left-area-left-fg},bg=#{@powerline-status-left-area-left-bg},bold] #{@themepack-status-left-area-left-format} #[fg=#{@powerline-status-left-area-left-bg},bg=#{@powerline-status-left-area-middle-bg},nobold]#[fg=#{@powerline-status-left-area-middle-fg},bg=#{@powerline-status-left-area-middle-bg}] #{@themepack-status-left-area-middle-format} #[fg=#{@powerline-status-left-area-middle-bg},bg=#{@powerline-status-left-area-right-bg}]#[fg=#{@powerline-status-left-area-right-fg},bg=#{@powerline-status-left-area-right-bg}] #{@themepack-status-left-area-right-format} #[fg=#{@powerline-status-left-area-right-bg},bg=#{@theme-status-bg},nobold]"
set -goqF @theme-status-left-bg "#{@powerline-status-left-bg}"
set -goqF @theme-status-left-fg "#{@powerline-status-left-fg}"
set -goq @theme-status-left-length 40
set -goqF @theme-status-right "#[fg=#{@powerline-status-right-area-left-bg},bg=#{@theme-status-bg}]#[fg=#{@powerline-status-right-area-left-fg},bg=#{@powerline-status-right-area-left-bg}] #{@themepack-status-right-area-left-format} #[fg=#{@powerline-status-right-area-middle-bg},bg=#{@powerline-status-right-area-left-bg}]#[fg=#{@powerline-status-right-area-middle-fg},bg=#{@powerline-status-right-area-middle-bg}] #{@themepack-status-right-area-middle-format} #[fg=#{@powerline-status-right-area-right-bg},bg=#{@powerline-status-right-area-middle-bg}]#[fg=#{@powerline-status-right-area-right-fg},bg=#{@powerline-status-right-area-right-bg},bold] #{@themepack-status-right-area-right-format} "
set -goqF @theme-status-right-bg "#{@powerline-status-right-bg}"
set -goqF @theme-status-right-fg "#{@powerline-status-right-fg}"
set -goq @theme-status-right-length 150
set -goqF @theme-window-status-activity-bg "#{@theme-status-bg}"
set -goqF @theme-window-status-activity-fg "#{@powerline-color-activity-1}"
set -goq @theme-window-status-separator ""
set -goqF @theme-window-status-current-bg "#{@powerline-color-main-1}"
set -goqF @theme-window-status-current-fg "#{@powerline-color-black-1}"
set -goqF @theme-window-status-format " #{@themepack-window-status-format} "
set -goqF @theme-window-status-current-format " #{@themepack-window-status-current-format} "
# Customizable prefixes and suffixes for @theme-* format options
set -goq @theme-status-left-prefix ""
set -goq @theme-status-left-suffix ""
set -goq @theme-status-right-prefix ""
set -goq @theme-status-right-suffix ""
set -goq @theme-window-status-current-prefix ""
set -goq @theme-window-status-current-suffix ""
set -goq @theme-window-status-prefix ""
set -goq @theme-window-status-suffix ""
# Apply prefixes and suffixes to @theme-* format options
set -gqF @theme-status-left "#{@theme-status-left-prefix}#{@theme-status-left}#{@theme-status-left-suffix}"
set -gqF @theme-status-right "#{@theme-status-right-prefix}#{@theme-status-right}#{@theme-status-right-suffix}"
set -gqF @theme-window-status-current-format "#{@theme-window-status-current-prefix}#{@theme-window-status-current-format}#{@theme-window-status-current-suffix}"
set -gqF @theme-window-status-format "#{@theme-window-status-prefix}#{@theme-window-status-format}#{@theme-window-status-suffix}"
# Apply @theme-* options to Tmux
set -gF display-panes-active-colour "#{@theme-display-panes-active-colour}"
set -gF display-panes-colour "#{@theme-display-panes-colour}"
set -gF message-command-style "fg=#{@theme-message-command-fg},bg=#{@theme-message-command-bg}"
set -gF message-style "fg=#{@theme-message-fg},bg=#{@theme-message-bg}"
set -gF status-interval "#{@theme-status-interval}"
set -gF status-justify "#{@theme-status-justify}"
set -gF status-left "#{@theme-status-left}"
set -gF status-left-length "#{@theme-status-left-length}"
set -gF status-left-style "fg=#{@theme-status-left-fg},bg=#{@theme-status-left-bg}"
set -gF status-right "#{@theme-status-right}"
set -gF status-right-length "#{@theme-status-right-length}"
set -gF status-right-style "fg=#{@theme-status-right-fg},bg=#{@theme-status-right-bg}"
set -gF status-style "fg=#{@theme-status-fg},bg=#{@theme-status-bg}"
set -gwF clock-mode-colour "#{@theme-clock-mode-colour}"
set -gwF clock-mode-style "#{@theme-clock-mode-style}"
set -gwF mode-style "fg=#{@theme-mode-fg},bg=#{@theme-mode-bg}"
set -gwF pane-active-border-style "fg=#{@theme-pane-active-border-fg},bg=#{@theme-pane-active-border-bg}"
set -gwF pane-border-style "fg=#{@theme-pane-border-fg},bg=#{@theme-pane-border-bg}"
set -gwF window-status-activity-style "fg=#{@theme-window-status-activity-fg},bg=#{@theme-window-status-activity-bg}"
set -gwF window-status-current-format "#{@theme-window-status-current-format}"
set -gwF window-status-current-style "fg=#{@theme-window-status-current-fg},bg=#{@theme-window-status-current-bg}"
set -gwF window-status-format "#{@theme-window-status-format}"
set -gwF window-status-separator "#{@theme-window-status-separator}"

View File

@ -9,12 +9,6 @@ sysmodmap=/etc/X11/xinit/Xmodmap
if [ -f $sysresources ]; then if [ -f $sysresources ]; then
xrdb -merge $sysresources xrdb -merge $sysresources
fi fi
@ -25,12 +19,6 @@ fi
if [ -f "$userresources" ]; then if [ -f "$userresources" ]; then
xrdb -merge "$userresources" xrdb -merge "$userresources"
fi fi
@ -41,22 +29,22 @@ fi
# start some nice programs # start some nice programs
if [ -n "`/etc/X11/chooser.sh`" ]; then if [ -n "$(/etc/X11/chooser.sh)" ]; then
command="`/etc/X11/chooser.sh`" command="$(/etc/X11/chooser.sh)"
else else
failsafe="yes" failsafe="yes"
fi fi
if [ -d /etc/X11/xinit/xinitrc.d ] ; then if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/?* ; do for f in /etc/X11/xinit/xinitrc.d/?*; do
[ -x "$f" ] && . "$f" [ -x "$f" ] && . "$f"
done done
unset f unset f
fi fi
if [ -n "$failsafe" ]; then if [ -n "$failsafe" ]; then
export XDG_SESSION_TYPE=x11 export XDG_SESSION_TYPE="x11"
exec dbus-launch --exit-with-session xmonad exec dbus-launch --exit-with-session leftwm | tee ~/leftwm.log
else else
exec $command exec $command
fi fi

View File

@ -1,16 +1,13 @@
{-# LANGUAGE {-# LANGUAGE FlexibleContexts #-}
MultiWayIf -- Required for `toggleFull` in `myAdditionalKeys` {-# LANGUAGE LambdaCase #-}
, LambdaCase -- Required for `(\case)` statement in `myXmobarPP` {-# LANGUAGE MultiWayIf #-}
, FlexibleContexts {-# LANGUAGE OverloadedStrings #-}
, OverloadedStrings
#-}
{-# OPTIONS_GHC -Wno-missing-signatures {-# OPTIONS_GHC -Wno-missing-signatures
-Wno-orphans #-} -Wno-orphans #-}
-- Data Imports -- Data Imports
import Data.Functor import Data.Functor
import Data.List (isInfixOf)
import qualified Data.Map as M import qualified Data.Map as M
import Data.Monoid import Data.Monoid
-- Used in io exitSuccess -- Used in io exitSuccess
@ -27,17 +24,18 @@ import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.ManageDebug import XMonad.Hooks.ManageDebug
import XMonad.Hooks.ManageDocks import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers import XMonad.Hooks.ManageHelpers
import XMonad.Hooks.OnPropertyChange (onXPropertyChange)
import XMonad.Hooks.SetWMName import XMonad.Hooks.SetWMName
import XMonad.Hooks.StatusBar
import XMonad.Hooks.StatusBar.PP
import XMonad.Hooks.UrgencyHook (doAskUrgent) import XMonad.Hooks.UrgencyHook (doAskUrgent)
import XMonad.Hooks.WindowSwallowing import XMonad.Hooks.WindowSwallowing
import XMonad.Layout.FocusTracking import XMonad.Layout.FocusTracking
import XMonad.Layout.Fullscreen import XMonad.Layout.Mosaic
import XMonad.Layout.NoBorders import XMonad.Layout.NoBorders
import XMonad.Layout.Spacing import XMonad.Layout.Spacing
import XMonad.Layout.Tabbed
import XMonad.Layout.TwoPane
import XMonad.Operations
import qualified XMonad.StackSet as W import qualified XMonad.StackSet as W
import XMonad.Util.ClickableWorkspaces
import XMonad.Util.Cursor import XMonad.Util.Cursor
import XMonad.Util.EZConfig import XMonad.Util.EZConfig
import qualified XMonad.Util.Hacks as Hacks import qualified XMonad.Util.Hacks as Hacks
@ -45,9 +43,6 @@ import XMonad.Util.NamedScratchpad
import XMonad.Util.SpawnOnce import XMonad.Util.SpawnOnce
import XMonad.Util.Ungrab import XMonad.Util.Ungrab
-- import qualified DBus as D
-- import qualified DBus.Client as D
main :: IO () main :: IO ()
main = main =
do do
@ -55,21 +50,17 @@ main =
$ debugManageHookOn "M-S-d" $ debugManageHookOn "M-S-d"
. docks . docks
. setEwmhActivateHook doAskUrgent . setEwmhActivateHook doAskUrgent
-- . ewmhFullscreen -- breaks league of legends . ewmhFullscreen -- breaks league of legends
. toggleFullFloatEwmhFullscreen . toggleFullFloatEwmhFullscreen
-- . fullscreenSupport -- breaks game launchers #450 -- . fullscreenSupport -- breaks game launchers #450
. ewmh -- modal dialogs #452 . ewmh -- modal dialogs #452
. Hacks.javaHack . Hacks.javaHack
-- . withEasySB xmobar toggleSB
-- . withSB xmobar2
$ myConfig $ myConfig
-- where
-- toggleSB XConfig {modMask = modm} = (modm, xK_m)
myModMask :: KeyMask myModMask :: KeyMask
myModMask = mod4Mask myModMask = mod4Mask
-- Default Terminal -- Default terminal
myTerminal :: String myTerminal :: String
myTerminal = "kitty" myTerminal = "kitty"
@ -91,7 +82,8 @@ myPowerMenu = myHomeDir ++ "/.config/rofi/powermenu/type-6/powermenu.sh"
-- Workspaces -- Workspaces
myWorkspaces :: [String] myWorkspaces :: [String]
myWorkspaces = ["term", "www", "comms", "games", "misc", "vm", "trash", "stm"] myWorkspaces = ["one", "two", "three", "four", "five", "six", "seven", "eight"]
-- myWorkspaces = map show [1 .. 9] -- myWorkspaces = map show [1 .. 9]
-- Border Width -- Border Width
@ -177,6 +169,9 @@ myAdditionalKeys =
("M-S-l", windows W.swapUp), ("M-S-l", windows W.swapUp),
("M-h", sendMessage Shrink), ("M-h", sendMessage Shrink),
("M-l", sendMessage Expand), ("M-l", sendMessage Expand),
("M-a", sendMessage Taller),
("M-z", sendMessage Wider),
("M-r", sendMessage Reset),
("M-t", withFocused $ windows . W.sink), ("M-t", withFocused $ windows . W.sink),
("M-f", withFocused toggleFull), ("M-f", withFocused toggleFull),
("M-C-S-6", withFocused $ \w -> spawn $ "xprop -id " ++ show w ++ " | ${XMONAD_XMESSAGE:-xmessage} -file -"), ("M-C-S-6", withFocused $ \w -> spawn $ "xprop -id " ++ show w ++ " | ${XMONAD_XMESSAGE:-xmessage} -file -"),
@ -185,32 +180,36 @@ myAdditionalKeys =
-- Spawning applications. -- Spawning applications.
applications = applications =
[ ("M-<Return>", spawn myTerminal), [ ("M-<Return>", spawn myTerminal),
("M-S-m", namedScratchpadAction myScratchpads "ncmpcpp"),
("M-C-<Return>", namedScratchpadAction myScratchpads "terminal"), ("M-C-<Return>", namedScratchpadAction myScratchpads "terminal"),
("M-S-<Escape>", spawn myPowerMenu), ("M-S-<Escape>", spawn myPowerMenu),
("M-b", spawn myMainBrowser), ("M-b", spawn myMainBrowser),
("M-S-b", spawn myDevBrowser), ("M-S-b", spawn myDevBrowser),
("M-C-b", spawn mySchoolBrowser), ("M-C-b", spawn mySchoolBrowser),
("M-v", spawn "code"), ("M-S-s", spawn "steam --noverifyfiles"),
("M-S-s", spawn "flatpak run com.valvesoftware.Steam --noverifyfiles"),
("S-<Print>", unGrab *> spawn screenShotSelection), ("S-<Print>", unGrab *> spawn screenShotSelection),
("C-S-<Print>", unGrab *> spawn screenShotTmp), ("C-S-<Print>", unGrab *> spawn screenShotTmp),
("C-<Print>", unGrab *> spawn screenShotApp), ("C-<Print>", unGrab *> spawn screenShotApp),
("<Print>", spawn screenShotFullscreen), ("<Print>", spawn screenShotFullscreen),
("M-S-<Return>", spawn myLauncher), ("M-S-<Return>", spawn myLauncher),
-- ("M1-<Tab>", spawn myWinSwitch),
("M-e", spawn myFileManager), ("M-e", spawn myFileManager),
("C-S-m", spawn "~/scripts/macro.sh"), ("C-S-m", spawn "~/scripts/macro.sh"),
("M-C-o", spawn "VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_pro_icd64.json obs"),
("M-C-d", spawn "discord"),
("M-M1-x", spawn "XL_SECRET_PROVIDER=FILE xivlauncher"),
("M-C-x", spawn "GTK_THEME=Orchis-Dark xournalpp") ("M-C-x", spawn "GTK_THEME=Orchis-Dark xournalpp")
] ]
-- Multimedia keybinds. -- Multimedia keybinds.
multimedia = multimedia =
[ ("<XF86AudioPlay>", spawn "playerctl play-pause"), [ ("<XF86AudioPlay>", spawn "~/volume_brightness.sh play_pause"),
("<XF86AudioPrev>", spawn "playerctl previous"), ("<XF86AudioPrev>", spawn "~/volume_brightness.sh prev_track"),
("<XF86AudioNext>", spawn "playerctl next"), ("<XF86AudioNext>", spawn "~/volume_brightness.sh next_track"),
("<XF86AudioMute>", spawn "pactl set-sink-mute @DEFAULT_SINK@ toggle"), ("<XF86AudioMute>", spawn "~/volume_brightness.sh volume_mute"),
("<XF86AudioLowerVolume>", spawn "pactl set-sink-volume @DEFAULT_SINK@ -1.5%"), ("<XF86AudioLowerVolume>", spawn "~/volume_brightness.sh volume_down"),
("<XF86AudioRaiseVolume>", spawn "pactl set-sink-volume @DEFAULT_SINK@ +1.5%"), ("<XF86AudioRaiseVolume>", spawn "~/volume_brightness.sh volume_up"),
("<XF86AudioPause>", spawn "~/volume_brightness.sh play_pause"),
("<XF86AudioPlayPause>", spawn "~/volume_brightness.sh play_pause"),
("<XF86MonBrightnessUp>", spawn "~/volume_brightness.sh brightness_up"),
("<XF86MonBrightnessDown>", spawn "~/volume_brightness.sh brightness_down"),
("<Pause>", spawn "amixer sset Capture toggle"), ("<Pause>", spawn "amixer sset Capture toggle"),
("M-<Escape>", spawn "mpc toggle"), ("M-<Escape>", spawn "mpc toggle"),
("M-<F1>", spawn "mpc prev"), ("M-<F1>", spawn "mpc prev"),
@ -230,24 +229,12 @@ myMouseBindings XConfig {XMonad.modMask = modm} =
myStartupHook :: X () myStartupHook :: X ()
myStartupHook = do myStartupHook = do
-- _ <- _ <-
-- traverse traverse
-- spawnOnce spawnOnce
-- [ "sh ~/scripts/screenlayout.sh", ["sh ~/init.sh"]
-- "feh --bg-center ~/Pictures/wallpapers/felca.jpg",
-- "touch ~/tmp/touchy && rm -rf ~/tmp/*",
-- myHomeDir ++ "/.local/bin/picom-ibhagwan -b --experimental-backends &",
-- "xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Profile Enabled' 0, 1 && xinput --set-prop 'pointer:''Gaming Mouse' 'libinput Accel Speed' 0.5",
-- "setxkbmap -option ctrl:nocaps br abnt2",
-- "trayer-srg --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --tint 0x2F2F2F --height 25 --distance 0 --margin 0 --alpha 0 --monitor 1 --transparent true", -- normal bar
-- -- "trayer-srg --edge bottom --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --tint 0x002b36 --height 30 --transparent false --distance 1 --margin 6 --alpha 0 --monitor 0 --transparent true", -- spaced bar
-- "dunst &",
-- "lxqt-policykit-agent &",
-- "xrdb -load ~/.Xresources",
-- -- "redshift -t 4500:2500 -l -23.5475:-46.63611"
-- ]
setDefaultCursor xC_left_ptr setDefaultCursor xC_left_ptr
setWMName "xfce+xmonad" setWMName "xmonad"
isInstance (ClassApp c _) = className =? c isInstance (ClassApp c _) = className =? c
isInstance (TitleApp t _) = title =? t isInstance (TitleApp t _) = title =? t
@ -278,10 +265,6 @@ about = TitleApp "About Mozilla Firefox" "About Mozilla Firefox"
message = ClassApp "Xmessage" "Xmessage" message = ClassApp "Xmessage" "Xmessage"
myManageHook :: XMonad.Query (Data.Monoid.Endo WindowSet) myManageHook :: XMonad.Query (Data.Monoid.Endo WindowSet)
-- Like '=?' but matches substrings.
q =?? x = fmap (isInfixOf x) q
myManageHook = manageRules myManageHook = manageRules
where where
-- Hides windows without ignoring it, see doHideIgnore in XMonad contrib. -- Hides windows without ignoring it, see doHideIgnore in XMonad contrib.
@ -325,70 +308,84 @@ myManageHook = manageRules
] ]
<> composeAll <> composeAll
[ manageDocks <> namedScratchpadManageHook myScratchpads, [ manageDocks <> namedScratchpadManageHook myScratchpads,
"_NET_WM_WINDOW_TYPE" `isInProperty` "_KDE_NET_WM_WINDOW_TYPE_OVERRIDE" --> doIgnore <> doRaise,
className =? "An Anime Game Launcher" --> doShift "five" <> doCenterFloat <> hasBorder False,
className =? "Arandr" --> doFloat,
className =? "Anki" --> doShift "five",
className =? "Anki" <&&> title =? "Add" --> doFloat,
className =? "Conky" --> doIgnore,
className =? "Lutris" --> doShift "five",
className =? "Mousepad" --> doFloat,
className =? "Nitrogen" --> doFloat,
className =? "Pavucontrol" --> doFloat,
className =? "Pcmanfm" --> doFloat,
className =? "Pidgin" --> doShift "seven",
className =? "PrismLauncher" --> doShift "five",
className =? "Steam" --> doShift "eight",
className =? "TeamSpeak 3" --> doShift "three",
className =? "Thunar" --> doFloat,
className =? "Transformice" --> doShift "four",
className =? "Virt-manager" --> doShift "six",
className =? "Wrapper-2.0" --> doFloat,
className =? "Xfce4-panel" --> doCenterFloat <> hasBorder False,
className =? "XIVLauncher.Core" --> doShift "five" <> doCenterFloat,
className =? "Xournalpp" --> doShift "four",
className =? "amberol" --> doFloat,
className =? "battle.net.exe" --> doShift "four" <> doCenterFloat,
className =? "diablo iv.exe" --> doShift "four" <> doCenterFloat <> hasBorder False,
className =? "discord" --> doShift "three",
className =? "discord-screenaudio" --> doShift "three",
className =? "easyeffects" --> doFloat <> doShift "six",
className =? "explorer.exe" --> doShift "four",
className =? "ffxiv_dx11.exe" --> doShift "four" <> hasBorder False <> doFullFloat,
className =? "firefox" <&&> resource =? "Toolkit" --> doFloat,
className =? "firefox" <&&> title =? "File Upload" --> doFloat, className =? "firefox" <&&> title =? "File Upload" --> doFloat,
className =? "firefox" <&&> title =? "Firefox — Sharing Indicator" --> doForceKill,
className =? "firefox" <&&> title =? "Library" --> doCenterFloat, className =? "firefox" <&&> title =? "Library" --> doCenterFloat,
className =? "firefox" <&&> title ^? "Save" --> doFloat, className =? "firefox" <&&> title ^? "Save" --> doFloat,
className =? "firefox" <&&> resource =? "Toolkit" --> doFloat,
className =? "firefox" <&&> title ^? "Sign in" --> doFloat, className =? "firefox" <&&> title ^? "Sign in" --> doFloat,
className ^? "jetbrains-" <&&> title ^? "Welcome to " --> doCenterFloat, className =? "gamescope" --> doShift "four" <> doFullFloat <> hasBorder False,
className ^? "jetbrains-" <&&> title =? "splash" --> doFloat, className =? "heroic" --> doShift "five",
className =? "obs" --> doShift "five",
className =? "obsidian" --> doShift "three",
className =? "parsecd" --> doShift "five",
className =? "starrail.exe" --> doShift "four",
className =? "steam" --> doShift "eight",
className =? "steam_app_1551360" <&&> title /=? "Forza Horizon 5" --> doHide, -- Prevents black screen when fullscreening.
className =? "steamwebhelper" --> doShift "eight",
className ~? "Minecraft" --> doShift "four" <> doCenterFloat <> hasBorder False,
className ~? "csgo" --> doShift "four" <> doCenterFloat <> hasBorder False,
className ~? "launcher.exe" --> doShift "four" <> doCenterFloat <> hasBorder False,
className ~? "Warframe" --> doShift "four" <> doFullFloat <> hasBorder False,
className ~? "dauntless" --> doShift "four",
className ~? "deceive" --> doShift "four" <> doCenterFloat <> hasBorder False,
className ~? "league" --> doShift "four" <> doCenterFloat <> hasBorder False,
className ~? "libreoffice" --> doShift "six",
className ~? "riot" --> doShift "four" <> doCenterFloat <> hasBorder False,
className ~? "steam_" --> doShift "four" <> hasBorder False <> doFullFloat,
className ^? "Visual " <&&> isDialog --> doCenterFloat, className ^? "Visual " <&&> isDialog --> doCenterFloat,
className =? "firefox-esr" --> doShift "www", className ^? "jetbrains-" <&&> title =? "splash" --> doFloat,
className =? "Virt-manager" --> doShift "vm", className ^? "jetbrains-" <&&> title ^? "Welcome to " --> doCenterFloat,
className =? "discord" --> doShift "misc", isRole ^? "About" <||> isRole ^? "about" --> doFloat,
className =? "discord-screenaudio" --> doShift "misc",
className =? "Steam" --> doShift "stm",
className =? "steam" --> doShift "stm",
className =? "steamwebhelper" --> doShift "stm",
className =? "obs" --> doShift "misc",
className =? "Lutris" --> doShift "misc",
className =? "PrismLauncher" --> doShift "misc",
className =? "explorer.exe" --> doShift "games",
className =? "starrail.exe" --> doShift "games",
className =? "An Anime Game Launcher" --> doShift "misc" <> doCenterFloat <> hasBorder False,
className =? "heroic" --> doShift "misc" <> hasBorder False,
className =? "parsecd" --> doShift "misc" <> hasBorder False,
className =? "riotclientux.exe" --> doShift "games",
className =?? "dauntless" --> doShift "games",
className =? "battle.net.exe" --> doShift "games" <> doFloat,
className =? "Pcmanfm" --> doFloat,
className =? "Mousepad" --> doFloat,
className =? "Thunar" --> doFloat,
className =? "amberol" --> doFloat,
className =? "Pavucontrol" --> doFloat,
className =? "Nitrogen" --> doFloat,
className =? "Wrapper-2.0" --> doFloat,
className =? "TeamSpeak 3" --> doShift "misc",
className =? "easyeffects" --> doFloat <> doShift "misc",
className =? "Arandr" --> doFloat,
resource =? "desktop_window" --> doIgnore, resource =? "desktop_window" --> doIgnore,
resource =? "kdesktop" --> doIgnore, resource =? "kdesktop" --> doIgnore,
className =? "Conky" --> doIgnore, title =? "Wine System Tray" --> doHide -- Prevents Wine System Trays from taking input focus.
isRole ^? "About" <||> isRole ^? "about" --> doFloat,
"_NET_WM_WINDOW_TYPE" `isInProperty` "_KDE_NET_WM_WINDOW_TYPE_OVERRIDE" --> doIgnore <> doRaise,
-- Steam Game Fixes
className =? "steam_app_1551360" <&&> title /=? "Forza Horizon 5" --> doHide, -- Prevents black screen when fullscreening.
className =? "Steam" <&&> title ~? "News" --> doHide,
className =? "Xfce4-panel" --> doCenterFloat <> hasBorder False,
className =?? "league" --> doShift "games" <> doCenterFloat <> hasBorder False,
className =?? "deceive" --> doShift "games" <> doCenterFloat <> hasBorder False,
className =?? "riot" --> doShift "games" <> doCenterFloat <> hasBorder False,
className =?? "Minecraft" --> doShift "games" <> doCenterFloat <> hasBorder False,
className =?? "csgo" --> doShift "games" <> doCenterFloat <> hasBorder False,
className =? "gamescope" --> doShift "games" <> doCenterFloat <> hasBorder False,
className =? "diablo iv.exe" --> doShift "games" <> doCenterFloat <> hasBorder False,
className =? "Transformice" --> doShift "games",
className =? "obsidian" --> doShift "games",
className =? "Xournalpp" --> doShift "games",
className =?? "libreoffice" --> doShift "games",
title =? "Wine System Tray" --> doHide, -- Prevents Wine System Trays from taking input focus.
className =?? "steam_" --> doShift "games" <> hasBorder False <> doCenterFloat
] ]
{- May be useful one day myDynamicManageHook :: ManageHook
myDynamicManageHook =
composeAll
[ className ~? "steam_" --> doShift "four",
title =? "Warframe" --> doShift "four"
]
doClose = ask >>= liftX . killWindow >> mempty :: ManageHook doClose = ask >>= liftX . killWindow >> mempty :: ManageHook
forceKillWindow :: Window -> X ()
forceKillWindow w = withDisplay $ \d ->
io $ void $ killClient d w
doForceKill = ask >>= liftX . forceKillWindow >> mempty :: ManageHook doForceKill = ask >>= liftX . forceKillWindow >> mempty :: ManageHook
-}
myEventHook :: Event -> X All myEventHook :: Event -> X All
myEventHook _ = return (All True) myEventHook _ = return (All True)
@ -397,64 +394,13 @@ myLayoutHook =
avoidStruts $ avoidStruts $
lessBorders OnlyScreenFloat $ lessBorders OnlyScreenFloat $
spacingRaw False (Border w w w w) True (Border w w w w) True $ spacingRaw False (Border w w w w) True (Border w w w w) True $
focusTracking (tiled ||| Full) focusTracking (tiled ||| Full ||| mosaic 2 [3, 2])
where where
tiled = Tall nmaster delta ratio tiled = Tall nmaster delta ratio
nmaster = 1 -- Default number of windows in the master pane. nmaster = 1 -- Default number of windows in the master pane.
ratio = 1 / 2 -- Default proportion of screen occupied by master panes. ratio = 1 / 2 -- Default proportion of screen occupied by master panes.
delta = 3 / 100 -- Percent of screen increment by when resizing panes. delta = 3 / 100 -- Percent of screen increment by when resizing panes.
w = 2 -- Width of pixel size between windows while tiled. w = 1 -- Width of pixel size between windows while tiled.
myXmobarPP :: X PP
myXmobarPP =
clickablePP $
filterOutWsPP ["NSP"] $
def
{ ppCurrent = xmobarColor "#ece1d7" "" . xmobarBorder "Bottom" "#89b3b6" 3,
ppVisible = xmobarColor "#ece1d7" "",
ppHidden = xmobarColor "#c1a78e" "" . xmobarBorder "Top" "#f0c674" 2,
ppHiddenNoWindows = xmobarColor "#c1a78e" "",
-- { ppVisible = xmobarColor "#dddddd" "" . const "\xf10c",
-- ppCurrent = xmobarColor "#dddddd" "" . const "\xf192",
-- ppHidden = xmobarColor "#777777" "" . const "\xf10c",
-- ppHiddenNoWindows = xmobarColor "#444444" "" . const "\xf10c",
ppVisibleNoWindows = Just (xmobarBorder "Bottom" "#78997a" 2 . xmobarColor "#A0A0A0" ""),
-- ppVisibleNoWindows = Just (xmobarColor "#dddddd" "" . const "\xf10c"),
ppUrgent = xmobarColor "#D47786" "" . wrap "!" "!",
ppTitle = xmobarColor "#ece1d7" "" . shorten 40,
ppSep = wrapSep " ",
ppTitleSanitize = xmobarStrip,
ppWsSep = " ",
ppLayout =
xmobarColor "#002B36" ""
. ( \case
"Spacing Tall" -> "<icon=tiled.xpm/>"
-- "Spacing Mirror Tall" -> "<icon=mirrortiled.xpm/>"
"Spacing Full" -> "<icon=full.xpm/>"
-- "Spacing Simple Float" -> "<icon=floating.xpm/>"
-- "Simple Float" -> "<icon=floating.xpm/>"
)
}
where
wrapSep :: String -> String
-- wrapSep = (++ xmobarColor "#002b36" "#002B36" (xmobarFont 2 "\xe0b4 "))
wrapSep = (++ xmobarColor "#292522" "#292522" (xmobarFont 2 "\xe0b4 "))
-- wrap
-- (xmobarColor "#002B36" "#002B36" (xmobarFont 2 "\xe0b4"))
-- (xmobarColor "#002B36" "#002B36" (xmobarFont 2 "\xe0b6"))
myXmobar :: String
myXmobar = (myHomeDir ++ "/.local/bin/xmobar " ++ "-x 1")
xmobar :: StatusBarConfig
xmobar = statusBarProp myXmobar myXmobarPP
myXmobar2 :: String
myXmobar2 = (myHomeDir ++ "/.local/bin/xmobar2 " ++ "-x 1")
xmobar2 :: StatusBarConfig
xmobar2 = statusBarProp myXmobar2 myXmobarPP
myConfig = myConfig =
def def
@ -469,10 +415,10 @@ myConfig =
startupHook = myStartupHook, startupHook = myStartupHook,
manageHook = myManageHook, manageHook = myManageHook,
handleEventHook = handleEventHook =
swallowEventHook (className =? "Alacritty" <||> className =? "kitty" <||> className =? "XTerm") (return True) swallowEventHook (className =? "kitty") (return True)
-- <> Hacks.windowedFullscreenFixEventHook -- #450 -- <> Hacks.windowedFullscreenFixEventHook -- #450
<> Hacks.trayerPaddingXmobarEventHook
-- <> debugEventsHook -- <> debugEventsHook
-- <> onXPropertyChange "WM_NAME" myDynamicManageHook
<> myEventHook, <> myEventHook,
workspaces = myWorkspaces, workspaces = myWorkspaces,
keys = myKeys keys = myKeys
@ -480,74 +426,13 @@ myConfig =
`additionalKeysP` myAdditionalKeys `additionalKeysP` myAdditionalKeys
myScratchpads = myScratchpads =
[ NS "terminal" spawnTerm findTerm manageTerm, [NS "terminal" spawnTerminal findTerminal manageTerminal]
NS "ncmpcpp" spawnncmpcpp findncmpcpp managencmpcpp
]
where where
spawnTerm = myTerminal ++ " --name scratchpad" spawnTerminal = "feh --class scratchpad ~/pics/363032073_179911381762816_6317942459227566936_n.jpg"
findTerm = resource =? "scratchpad" findTerminal = className =? "scratchpad"
manageTerm = customFloating $ W.RationalRect l t w h manageTerminal = customFloating $ W.RationalRect l t w h
where where
h = 0.9 h = 0.9
w = 0.9 w = 0.9
t = 0.95 - h t = 0.95 - h
l = 0.95 - w l = 0.95 - w
spawnncmpcpp = myTerminal ++ " --name ncmpcpp -e ncmpcpp"
findncmpcpp = resource =? "ncmpcpp"
managencmpcpp = customFloating $ W.RationalRect l t w h
where
h = 0.9
w = 0.9
t = 0.95 - h
l = 0.95 - w
-- I GIVE UP ON DBUS.
-- logTitle :: D.Client -> X ()
-- logTitle ch = dynamicLogWithPP def
-- {ppCurrent = unPango
-- ,ppVisible = pangoInactive
-- ,ppHidden = const ""
-- ,ppHiddenNoWindows = const ""
-- ,ppUrgent = pangoBold
-- ,ppTitle = unPango
-- ,ppLayout = unPango
-- ,ppWsSep = ""
-- ,ppSep = "⋮"
-- ,ppOrder = swapIcons
-- ,ppSort = getSortByXineramaPhysicalRule horizontalScreenOrderer
-- ,ppOutput = dbusOutput ch
-- }
-- where swapIcons (ws:l:t:nsp:xs) = ws:l:nsp:t:xs
-- -- @@@ so why do the first 4 invocations *only* not match?!
-- swapIcons xs = xs
-- getWellKnownName :: D.Client -> IO ()
-- getWellKnownName ch = do
-- _ <- D.requestName ch
-- (D.busName_ "org.xmonad.Log")
-- [D.nameAllowReplacement, D.nameReplaceExisting, D.nameDoNotQueue]
-- return ()
-- dbusOutput :: D.Client -> String -> IO ()
-- dbusOutput ch s = do
-- let sig = (D.signal "/org/xmonad/Log" "org.xmonad.Log" "Update")
-- {D.signalBody = [D.toVariant s]}
-- D.emit ch sig
-- -- quick and dirty escaping of HTMLish Pango markup
-- unPango :: String -> String
-- unPango [] = []
-- unPango ('<':xs) = "&lt;" ++ unPango xs
-- unPango ('&':xs) = "&amp;" ++ unPango xs
-- unPango ('>':xs) = "&gt;" ++ unPango xs
-- unPango (x :xs) = x:unPango xs
-- -- show a string as inactive
-- -- @@@ should use gtk theme somehow...
-- pangoInactive :: String -> String
-- pangoInactive s = "<span foreground=\"#8f8f8f\">" ++ unPango s ++ "</span>"
-- -- show a string with highlight
-- pangoBold :: String -> String
-- pangoBold s = "<span weight=\"bold\" foreground=\"#ff2f2f\">" ++ unPango s ++ "</span>"

View File

@ -7,9 +7,9 @@ extra-deps:
- github: xmonad/x11 - github: xmonad/x11
commit: 8a33c4ebe7d0a1be96073d8c019f1f3901bbf344 commit: 8a33c4ebe7d0a1be96073d8c019f1f3901bbf344
- github: xmonad/xmonad - github: xmonad/xmonad
commit: eeac754ac76dabf115deecb545e52a55f9dbbd02 commit: 5c2ba069026666998a8932832bc8f3fce24f42e9
- github: xmonad/xmonad-contrib - github: xmonad/xmonad-contrib
commit: 673de11ca876a4a58cae3a4d52e36260f66aa6cc commit: 2df26cf9f8d93d3b3fc2b1ac853d31280e9fa916
- xmobar-0.46 - xmobar-0.46
- cairo-0.13.8.2@sha256:ef1709c3c4d2c6d68a9a51d9f220dccc0745f6468d2d0868c15a7ecdf8f325a1,4078 - cairo-0.13.8.2@sha256:ef1709c3c4d2c6d68a9a51d9f220dccc0745f6468d2d0868c15a7ecdf8f325a1,4078
- pango-0.13.8.2@sha256:d4057ebddade4cde3e25d7755b5e030e7a7e56fe7365afd37916a7bba46d3fd9,3917 - pango-0.13.8.2@sha256:d4057ebddade4cde3e25d7755b5e030e7a7e56fe7365afd37916a7bba46d3fd9,3917

View File

@ -18,25 +18,25 @@ packages:
- completed: - completed:
name: xmonad name: xmonad
pantry-tree: pantry-tree:
sha256: f3572e8c9661656858c838e53fab3e020f77638978a5e1fa253337595d7455a6 sha256: 680d494bc2fbcce4c3039c60fb2524be81fd6df864554ee16082aca7a2807219
size: 3832 size: 3832
sha256: 2c1e17e2e983ca60563d72ee3558b526ff66311b416a605372e5affe54c268a9 sha256: 2c5165575b175ec5a908eab03ce84aab9d1a26e842555852a40a187fa829b1c7
size: 107366 size: 107943
url: https://github.com/xmonad/xmonad/archive/eeac754ac76dabf115deecb545e52a55f9dbbd02.tar.gz url: https://github.com/xmonad/xmonad/archive/5c2ba069026666998a8932832bc8f3fce24f42e9.tar.gz
version: 0.17.2.9 version: 0.17.2.9
original: original:
url: https://github.com/xmonad/xmonad/archive/eeac754ac76dabf115deecb545e52a55f9dbbd02.tar.gz url: https://github.com/xmonad/xmonad/archive/5c2ba069026666998a8932832bc8f3fce24f42e9.tar.gz
- completed: - completed:
name: xmonad-contrib name: xmonad-contrib
pantry-tree: pantry-tree:
sha256: b14556491c46cc1a804ed0b9cf5ebe09be21f5f51735cebf56f7028e962abba3 sha256: 82fe85b481383d43fe34473dc55109b8c5eba8baa691c0b377a0c412d66c134e
size: 24430 size: 24503
sha256: 6dc9716a4e2b6238e65f5897e1146d6a98c19bd6f88d3cf5b2afb5212860d86e sha256: a85a279e3bb79170623e782b76a22e3b54658e0f9e378309938a989de76f5140
size: 676773 size: 679792
url: https://github.com/xmonad/xmonad-contrib/archive/673de11ca876a4a58cae3a4d52e36260f66aa6cc.tar.gz url: https://github.com/xmonad/xmonad-contrib/archive/2df26cf9f8d93d3b3fc2b1ac853d31280e9fa916.tar.gz
version: 0.17.1.9 version: 0.17.1.9
original: original:
url: https://github.com/xmonad/xmonad-contrib/archive/673de11ca876a4a58cae3a4d52e36260f66aa6cc.tar.gz url: https://github.com/xmonad/xmonad-contrib/archive/2df26cf9f8d93d3b3fc2b1ac853d31280e9fa916.tar.gz
- completed: - completed:
hackage: xmobar-0.46@sha256:65e8683aec86e5dc23041959dc2b0803f1be4a3cacab1ed29159c0732212c273,14911 hackage: xmobar-0.46@sha256:65e8683aec86e5dc23041959dc2b0803f1be4a3cacab1ed29159c0732212c273,14911
pantry-tree: pantry-tree:

View File

@ -1,195 +1,36 @@
# If you come from bash you might have to change your $PATH. export PATH=$HOME/.local/bin:$PATH
# export PATH=$HOME/bin:/usr/local/bin:$PATH export PATH=$HOME/.ghcup/bin:$PATH
export PATH="$HOME/.local/bin:$PATH" export PATH=$HOME/.config/emacs/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh" export ZSH="$HOME/.oh-my-zsh"
export PATH="$HOME/.npm-global/bin:$PATH" export R2MOD_INSTALL_DIR="/games/SteamLibrary/steamapps/common/Risk of Rain 2"
export R2MOD_INSTALL_DIR="$HOME/steam/.local/share/Steam/steamapps/common/Risk of Rain 2/" export R2MOD_COMPAT_DIR="/games/SteamLibrary/steamapps/compatdata/632360"
export R2MOD_COMPAT_DIR="$HOME/steam/.local/share/Steam/steamapps/compatdata/632360"
export EDITOR="/usr/bin/nvim" ZSH_THEME="daivasmara"
export VISUAL="nvim" zstyle ':omz:update' mode auto # update automatically without asking
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
#ZSH_THEME="jnrowe"
#ZSH_THEME="headline"
ZSH_THEME=""
fpath+=$HOME/Documents/typewritten
fpath+=$HOME/.config/zsh
autoload -Uz async && async
autoload -U promptinit; promptinit
prompt typewritten
export TYPEWRITTEN_PROMPT_LAYOUT="half_pure"
export TYPEWRITTEN_RELATIVE_PATH="git"
export TYPEWRITTEN_COLOR_MAPPINGS="primary:yellow"
# export TYPEWRITTEN_LEFT_PROMPT_PREFIX_FUNCTION=(date +%H:%M)
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment one of the following lines to change the auto-update behavior
zstyle ':omz:update' mode disabled # disable automatic updates
# zstyle ':omz:update' mode auto # update automatically without asking
zstyle ':omz:update' mode reminder # just remind me to update when it's time
# Uncomment the following line to change how often to auto-update (in days).
# zstyle ':omz:update' frequency 13
# Uncomment the following line if pasting URLs and other text is messed up. # Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true" # DISABLE_MAGIC_FUNCTIONS="true"
plugins=(git fast-syntax-highlighting zsh-autosuggestions autojump)
# Uncomment the following line to disable colors in ls. ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#344146"
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# You can also set it to another string to have that shown instead of the default red dots.
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
zsh-autosuggestions
fast-syntax-highlighting
rust
nvm
)
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
unsetopt beep
# User configuration alias ls="bash ~/elash.sh"
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='nvim'
fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
#
#
# Adding LS COLORS VARIABLE
# export LS_COLORS="$(vivid generate solarized-dark)"
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#67828c,bold,underline"
#Adding Doom Emacs to PATH
export PATH="$HOME/.emacs.d/bin:$PATH"
[ -f "/home/jab/.ghcup/env" ] && source "/home/jab/.ghcup/env" # ghcup-env
# Adding XDG compliance
export XDG_DATA_HOME=$HOME/.local/share
export XDG_CONFIG_HOME=$HOME/.config
export XDG_STATE_HOME=$HOME/.local/state
export XDG_CACHE_HOME=$HOME/.cache
#export CARGO_HOME="$XDG_DATA_HOME"/cargo
#export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
#export GNUPGHOME="$XDG_DATA_HOME"/gnupg
#export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
#export XCURSOR_PATH=/usr/share/icons:${XDG_DATA_HOME}/icons
#export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
#export NODE_REPL_HISTORY="$XDG_DATA_HOME"/node_repl_history
#alias nvidia-settings --config="$XDG_CONFIG_HOME"/nvidia/settings
#export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
#
# GPG shenanigans
export GPG_TTY=$(tty)
# Add cargo/bin to PATH
export PATH="$HOME/.cargo/bin:$PATH"
if [[ "${TERM}" != "" && "${TERM}" == "kitty" ]]
then
precmd()
{
# output on which level (%L) this shell is running on.
# append the current directory (%~), substitute home directories with a tilde.
# "\a" bell (man 1 echo)
# "print" must be used here; echo cannot handle prompt expansions (%L)
print -Pn "\e]0;$(id --user --name)@$(hostname): zsh[%L] %~\a"
}
preexec()
{
# output current executed command with parameters
echo -en "\e]0;$(id --user --name)@$(hostname): ${1}\a"
}
fi
function 0x0.st () {
local CMD="curl -F'file=@-' https://0x0.st"
if [ ! -t 0 ]; then
cat | eval $CMD
else
for i in "$@"; do
cat "$i"
done | eval $CMD
fi
}
export BAT_THEME="Solarized (dark)"
alias ls="exa --numeric --octal-permissions --git --group --icons"
alias l="exa --all --long --numeric --octal-permissions --git --group --icons"
alias cat="bat" alias cat="bat"
alias v="nvim" alias v="nvim"
alias c="clear" alias c="clear"
alias hi="systemctl hibernate" alias hi="loginctl hibernate"
alias nitch="cd ~/Documents/nitch/ && ./nitch && cd -"
alias sx="startx" alias sx="startx"
alias irc="ssh server -t tmux -L weechat attach" alias reboot="loginctl reboot"
alias server="ssh server -t tmux -L minecraft attach" alias poweroff="loginctl poweroff"
alias kitsune="cd ~/repos/kitsune/" alias wget="aria2c"
alias kitsune="cd ~/repos/kitsune && source ~/repos/venv/bin/activate"
alias sus="loginctl suspend-then-hibernate"
alias xsc="xclip -sel clip"
alias sw="swapon --show"
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh" [ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
cd
unsetopt BEEP export BAT_THEME="Solarized (dark)"
export FPATH="/hdd/docs/eza/completions/zsh:$FPATH"
export EDITOR=nvim

View File

@ -1 +0,0 @@
FEATURES="ccache"

View File

@ -1 +0,0 @@
MAKEOPTS="-j3"

View File

@ -1 +0,0 @@
FEATURES="ccache"

View File

@ -1 +0,0 @@
MAKEOPTS="-j4"

View File

@ -1 +0,0 @@
PORTAGE_TMPDIR="/var/tmp/notmpfs"

View File

@ -1 +0,0 @@
PORTAGE_TMPDIR="/var/tmp/notmpfs"

View File

@ -1,34 +0,0 @@
# created by eselect-repo
[steam-overlay]
location = /projects/portage/steam-overlay
sync-type = git
sync-uri = https://github.com/anyc/steam-overlay
[guru]
location = /projects/portage/guru
sync-type = git
sync-uri = https://github.com/gentoo-mirror/guru.git
[torbrowser]
location = /projects/portage/torbrowser
sync-type = git
sync-uri = https://github.com/gentoo-mirror/torbrowser.git
[haskell]
location = /projects/portage/haskell
sync-type = git
sync-uri = https://github.com/gentoo-mirror/haskell.git
[jabuxas]
location = /projects/portage/jabuxas
[farmboy0]
location = /projects/portage/farmboy0
sync-type = git
sync-uri = https://github.com/gentoo-mirror/farmboy0.git
[wayland-desktop]
location = /projects/portage/wayland-desktop
sync-type = git
sync-uri = https://github.com/gentoo-mirror/wayland-desktop.git

View File

@ -1,38 +0,0 @@
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#
# NOTE: Even though we list ext4 as the type here, it will work with ext2/ext3
# filesystems. This just tells the kernel to use the ext4 driver.
#
# NOTE: You can use full paths to devices like /dev/sda3, but it is often
# more reliable to use filesystem labels or UUIDs. See your filesystem
# documentation for details on setting a label. To obtain the UUID, use
# the blkid(8) command.
#LABEL=boot /boot ext4 noauto,noatime 1 2
#UUID=58e72203-57d1-4497-81ad-97655bd56494 / ext4 noatime 0 1
#LABEL=swap none swap sw 0 0
#/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
UUID=bd513458-98e4-4fd0-a633-4c30a9149cbe / btrfs defaults,compress=zstd,subvolid=256,subvol=@ 0 0
UUID=bd513458-98e4-4fd0-a633-4c30a9149cbe /home btrfs defaults,compress=zstd,subvolid=257,subvol=@home 0 0
UUID=bd513458-98e4-4fd0-a633-4c30a9149cbe /.snapshots btrfs defaults,compress=zstd,subvolid=258,subvol=@.snapshots 0 0
UUID=0d72f103-6b2c-4eb7-84de-67b9cfe9b460 none swap sw 0 0
UUID=ABD4-6AA7 /efi vfat noauto,defaults 0 1
tmpfs /var/tmp/portage tmpfs size=6G,uid=portage,gid=portage,mode=775,nosuid,noatime,nodev 0 0
UUID=94038640-86fd-462b-bbca-9db8eaefdc09 /projects ext4 rw,relatime,user,exec 0 2

Some files were not shown because too many files have changed in this diff Show More