feat: desktop config as base

This commit is contained in:
Fabio Lenherr / DashieTM 2022-12-31 14:50:10 +01:00
parent d589775634
commit 7dba0b18be
34 changed files with 1148 additions and 890 deletions

View file

@ -188,11 +188,11 @@
#draw_bold_text_with_bright_colors: false #draw_bold_text_with_bright_colors: false
# Colors (Tomorrow Night) # Colors (Tomorrow Night)
#colors: colors:
# Default colors # Default colors
#primary: primary:
# background: '#1d1f21' background: '#1d1f21'
# foreground: '#c5c8c6' foreground: '#c5c8c6'
# Bright and dim foreground colors # Bright and dim foreground colors
# #
@ -209,9 +209,9 @@
# #
# Allowed values are CellForeground/CellBackground, which reference the # Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff. # affected cell, or hexadecimal colors like #ff00ff.
#cursor: cursor:
# text: CellBackground text: CellBackground
# cursor: CellForeground cursor: CellForeground
# Vi mode cursor colors # Vi mode cursor colors
# #
@ -219,100 +219,100 @@
# #
# Allowed values are CellForeground/CellBackground, which reference the # Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff. # affected cell, or hexadecimal colors like #ff00ff.
#vi_mode_cursor: vi_mode_cursor:
# text: CellBackground text: CellBackground
# cursor: CellForeground cursor: CellForeground
# Search colors # Search colors
# #
# Colors used for the search bar and match highlighting. # Colors used for the search bar and match highlighting.
#search: search:
# Allowed values are CellForeground/CellBackground, which reference the # Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff. # affected cell, or hexadecimal colors like #ff00ff.
#matches: matches:
# foreground: '#000000' foreground: '#000000'
# background: '#ffffff' background: '#ffffff'
#focused_match: focused_match:
# foreground: '#ffffff' foreground: '#ffffff'
# background: '#000000' background: '#000000'
#bar: colors.footer_bar:
# background: '#c5c8c6' background: '#c5c8c6'
# foreground: '#1d1f21' foreground: '#1d1f21'
# Keyboard regex hints # Keyboard regex hints
#hints: hints:
# First character in the hint label # 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 # Allowed values are CellForeground/CellBackground, which reference the
# affected cell, or hexadecimal colors like #ff00ff. # affected cell, or hexadecimal colors like #ff00ff.
#start: selection:
# foreground: '#1d1f21' text: CellBackground
# background: '#e9ff5e' background: CellForeground
# All characters after the first one in the hint label # 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
# #
# Allowed values are CellForeground/CellBackground, which reference the # If the dim colors are not set, they will be calculated automatically based
# affected cell, or hexadecimal colors like #ff00ff. # on the `normal` colors.
#end: dim:
# foreground: '#e9ff5e' black: '#131415'
# background: '#1d1f21' red: '#864343'
green: '#777c44'
# Line indicator yellow: '#9e824c'
# blue: '#556a7d'
# Color used for the indicator displaying the position in history during magenta: '#75617b'
# search and vi mode. cyan: '#5b7d78'
# white: '#828482'
# 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 # Indexed Colors
# #

View file

@ -4,7 +4,7 @@
### Display ### ### Display ###
# Which monitor should the notifications be displayed on. # Which monitor should the notifications be displayed on.
monitor = 0 monitor = 2
# Display notification on focused monitor. Possible modes are: # Display notification on focused monitor. Possible modes are:
# mouse: follow mouse pointer # mouse: follow mouse pointer

View file

@ -1,4 +1,14 @@
GTK_CSD=0
QT_QPA_PLATFORMTHEME=qt5ct QT_QPA_PLATFORMTHEME=qt5ct
QT_WAYLAND_FORCE_DPI=96
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_WAYLAND_DISABLE_WINDOWDECORATION=1
QT_SCALE_FACTOR=1
QT_QPA_PLATFORM=wayland
XCURSOR_SIZE=24
WAYLAND_DISPLAY=wayland-1 WAYLAND_DISPLAY=wayland-1
XDG_CURRENT_DESKTOP=wlr XDG_CURRENT_DESKTOP=wlr
GPG_TTY=$(tty) GPG_TTY=$(tty)
PATH=$PATH:$HOME/.local/bin
TEXMFHOME=$HOME/.texmf
GTK_THEME=Adwaita:dark

541
eww/\ Normal file
View file

@ -0,0 +1,541 @@
/** EWW.SCSS
Created by saimoom **/
*{
all: unset;
font-family: feather;
font-family: DaddyTimeMono Nerd Font;
}
/** General **/
.bar_class {
background-color: #0f0f17;
border-radius: 10px;
}
.module {
margin: 0px 0px 0px 0px;
border-radius: 10px 10px 0px 10px;
}
/** tooltip!! **/
tooltip.background {
background-color: #0f0f17;
font-size: 14;
border-radius: 10px;
color: #bfc9db;
}
tooltip label {
margin: 3px;
}
/** Widgets **/
.clock_time_sep {
font-size: 20;
color: #bfc9db;
margin: 0px 0px 1px 0px;
}
.clock_time_class, .clock_minute_class {
font-size: 24;
}
.clock_date_class {
font-size: 21;
margin: 0px 5px 0px 5px;
color: #d7beda;
}
.clock_minute_class {
margin: 0px 5px 0px 2px;
color: #bfc9db;
}
.clock_time_class {
color: #bfc9db;
font-weight: bold;
margin: 0px 0px 0px 8px;
}
.membar {
color: #e0b089;
background-color: #38384d;
border-radius: 10px;
}
.batbar {
color: #afbea2;
background-color: #38384d;
border-radius: 10px;
}
.brightbar trough highlight {
background-image: linear-gradient(to right, #e4c9af 30%, #f2cdcd 50%, #e0b089 100% *50);
border-radius: 10px;
}
.brightbar scale trough {
all: unset;
box-shadow: 0 6px 5px 2px #06060b;
background-color: #232232;
border-radius: 24px;
min-height: 10px;
min-width: 100px;
margin : 0px -15px 5px 0px;
}
.volbar trough highlight {
background-image: linear-gradient(to right, #afcee0 30%, #a1bdce 50%, #77a5bf 100% *50);
border-radius: 10px;
}
.module_app_text {
font-size: 23;
margin: 2px 0px 0px 0px;
}
.bright_icon {
font-size: 22;
color: #e4c9af;
margin: 0px 10px 0px -10px;
}
.bright_icon_overlay {
font-size: 28;
color: #e4c9af;
background-size: cover;
background-position: center;
margin: 0px 27px 0px 3px;
}
.volume_icon {
font-size: 22;
color: #a1bdce;
margin: 0px 5px 0px 0px;
}
.module-wif {
font-size: 22;
color: #a1bdce;
border-radius: 100%;
margin: 0px 10px 0px 0px;
}
.module_essid {
font-size: 18;
color: #a1bdce;
margin: 0px 5px 0px -1px;
}
.iconmem {
font-size: 23;
margin: 4px -3px 4px 0px;
color: #e0b089;
}
.mem_padding {
margin: 10px;
}
.iconbat {
font-size: 23;
color: #afbea2;
}
.separ {
color: #3e424f;
font-weight: bold;
font-size: 22px;
margin: 0px 0px 0px 0px;
}
.mem_module {
background-color: #0f0f17;
border-radius: 16px;
margin: 0px 10px 0px 0px;
}
.bat_module {
background-color: #0f0f17;
border-radius: 16px;
margin: 0px 10px 0px 10px;
}
scale trough {
all: unset;
background-color: #22242b;
box-shadow: 0 2px 3px 2px #06060b;
border-radius: 16px;
min-height: 10px;
min-width: 70px;
margin: 0px 10px 0px 0px;
}
.works {
font-size: 27px;
font-weight: normal;
margin: 0px 0px 0px 15px;
background-color: #0f0f17;
}
.0 , .01, .02, .03, .04, .05, .06,
.011, .022, .033, .044, .055, .066{
margin: 0px 10px 0px 0px;
}
/* Unoccupied */
.0 {
color: #3e424f;
}
/* Occupied */
.01, .02, .03, .04, .05, .06 {
color: #bfc9db;
}
/* Focused */
.011, .022, .033, .044, .055, .066 {
color: #a1bdce;
}
.song_cover_art {
background-size: cover;
background-position: center;
min-height: 24px;
min-width: 24px;
margin: 10px;
border-radius: 100px;
}
.song {
color: #a1bdce;
font-size : 18px;
font-weight : bold;
margin : 3px 5px 0px 0px;
}
.song_btn_play {
color: #a1bdce;
font-size : 28px;
margin : 3px 0px 0px 5px;
}
.song_btn_prev, .song_btn_next {
color: #bfc9db;
font-size : 24px;
margin : 3px 0px 0px 5px;
}
// Calendar
.cal {
border-radius: 10px;
background-color: #0f0f17;
font-family: JetBrainsMono Nerd Font;
font-size: 18px;
font-weight: normal;
.cal-in {
padding: 0px 10px 0px 10px;
color: #bfc9db;
.cal {
&.highlight {
padding: 20px;
}
padding: 5px 5px 5px 5px;
margin-left: 10px;
}
}
}
calender {
color: #bfc9db;
}
calendar:selected {
color: #a1bdce;
}
calendar.header {
color: #a1bdce;
font-weight: bold;
}
calendar.button {
color: #afbea2;
}
calendar.highlight {
color: #a1bdce;
font-weight: bold;
}
calendar:indeterminate {
color: #bfc9db;
}
.sys_sep {
color: #38384d;
font-size: 18;
margin: 0px 10px 0px 10px;
}
.sys_text_bat_sub, .sys_text_mem_sub {
font-size: 16;
color: #bbc5d7;
margin: 5px 0px 0px 25px;
}
.sys_text_bat, .sys_text_mem {
font-size: 21;
font-weight: bold;
margin: 14px 0px 0px 25px;
}
.sys_icon_bat, .sys_icon_mem {
font-size: 30;
margin: 30px;
}
.sys_win {
border-radius: 10px;
background-color: #0f0f17;
}
.sys_bat {
color: #afbea2;
background-color: #38384d;
border-radius: 10px;
}
.sys_mem {
color: #e4c9af;
background-color: #38384d;
border-radius: 10px;
}
.sys_icon_bat, .sys_text_bat {
color: #afbea2;
}
.sys_icon_mem, .sys_text_mem {
color: #e4c9af;
}
.sys_bat_box {
border-radius: 16px;
margin: 15px 10px 10px 20px;
}
.sys_mem_box {
border-radius: 16px;
margin: 10px 10px 15px 20px;
}
.music_pop {
background-color: #0f0f17;
border-radius: 16px;
}
.music_cover_art {
background-size: cover;
background-position: center;
min-height: 100px;
box-shadow: 5px 5px 5px 5px #06060b;
min-width: 170px;
margin: 20px;
border-radius: 20px;
}
.music {
color: #a1bdce;
font-size : 20px;
font-weight : bold;
margin : 20px 0px 0px -15px;
}
.music_artist {
color: #bbc5d7;
font-size : 16px;
font-weight : normal;
margin : 0px 0px 0px 0px;
}
.music_btn_prev, .music_btn_play, .music_btn_next {
font-family: Iosevka Nerd Font;
}
.music_btn_prev {
color: #bbc5d7;
font-size : 32px;
font-weight : normal;
margin: 0px 0px 0px 0px;
}
.music_btn_play {
color: #a1bdce;
font-size : 48px;
font-weight : normal;
margin: 0px 0px 0px 0px;
}
.music_btn_next {
color: #bbc5d7;
font-size : 32px;
font-weight : normal;
margin: 0px 0px 0px 0px;
}
.music_bar scale trough highlight {
all: unset;
background-image: linear-gradient(to right, #afcee0 30%, #a1bdce 50%, #77a5bf 100% *50);
border-radius: 24px;
}
.music_bar scale trough {
all: unset;
background-color: #232232;
box-shadow: 0 6px 5px 2px #06060b;
border-radius: 24px;
min-height: 13px;
min-width: 190px;
margin : -10px 10px 20px 0px;
}
.audio-box {
background-color: #0f0f17;
border-radius: 16px;
}
.speaker_icon {
background-size: cover;
background-image: url('images/speaker.png');
background-position: center;
min-height: 40px;
min-width: 45px;
margin: 10px 10px 5px 20px;
border-radius: 12px;
}
.speaker_text {
color: #a1bdce;
font-size : 22px;
font-weight : bold;
margin: 5px 15px 0px 15px;
}
.bright_text {
color: #a1bdce;
font-size : 22px;
font-weight : bold;
margin: 5px 15px 0px 25px;
}
.change_audio_box {
margin: 0px 0px 0px 10px;
}
.change_audio {
color: #a1bdce;
margin: 0px 50px 0px 50px;
font-size: 30px;
font-weight: bold;
}
.speaker_bar scale trough highlight {
all: unset;
background-image: linear-gradient(to right, #afcee0 30%, #a1bdce 50%, #77a5bf 100% *50);
border-radius: 24px;
}
.speaker_bar scale trough {
all: unset;
background-color: #232232;
box-shadow: 0 6px 5px 2px #06060b;
border-radius: 24px;
min-height: 10px;
min-width: 100px;
margin : 0px 0px 5px 0px;
}
.mic_icon {
background-size: cover;
background-image: url('images/mic.png');
background-position: center;
min-height: 40px;
min-width: 45px;
margin: 5px 20px 20px 10px;
border-radius: 12px;
}
.mic_text {
color: #a1bdce;
font-size : 26px;
font-weight : bold;
margin: 0px 0px 0px 0px;
}
.mic_bar scale trough highlight {
all: unset;
background-image: linear-gradient(to right, #afcee0 30%, #a1bdce 50%, #77a5bf 100% *50);
border-radius: 24px;
}
.mic_bar scale trough {
all: unset;
box-shadow: 0 6px 5px 2px #06060b;
background-color: #232232;
border-radius: 24px;
min-height: 10px;
min-width: 100px;
margin :6px 0px 20px 0px;
}
.audio_sep {
color: #38384d;
font-size: 18;
margin : 0px 0px 0px 0px;
}
//cockpit stuff
.cockpit_class {
all: unset;
}
.cockpit_clock {
padding: 0px 30px 0px 30px;
}
.cockpit_box {
background-color: #06060b;
border-radius: 10px;
margin: 5px;
padding: 0px 5px 0px 5px;
opacity: 0.85;
}
.cockpit_button_shutdown {
color: red;
font-size: 30px;
margin: 5px;
}
.cockpit_button_sleep {
color: blue;
font-size: 30px;
margin: 5px;
}
.cockpit_button_restart {
color: green;
font-size: 30px;
margin: 5px;
}
.song_info {
font-size: 20px;
color: grey;
}
.album_cover {
margin: 30px 10px 30px 10px;
padding: 0px;
background-size: cover;
background-repeat: no-repeat;
background-position: 50% center;
border-radius: 10px;
}
.cockpit_button_settings {
color: white;
font-size: 25px;
margin: 5px;
}

View file

@ -1,153 +1,109 @@
/** EWW.SCSS * {
Created by saimoom **/ all: unset;
*{ font-family: feather;
all: unset; font-family: DaddyTimeMono Nerd Font;
font-family: feather;
font-family: DaddyTimeMono Nerd Font;
} }
/** General **/ /** General **/
.bar_class { .bar_class {
background-color: #0f0f17; background-color: #282828;
border-radius: 10px; border-radius: 10px;
} }
.module { .module {
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
border-radius: 10px 10px 0px 10px; border-radius: 10px 10px 0px 10px;
} }
/** tooltip!! **/ /** tooltip!! **/
tooltip.background { tooltip.background {
background-color: #0f0f17; background-color: #0f0f17;
font-size: 14; font-size: 14;
border-radius: 10px; border-radius: 10px;
color: #bfc9db; color: #bfc9db;
} }
tooltip label { tooltip label {
margin: 3px; margin: 3px;
} }
/** Widgets **/ /** Widgets **/
.clock_time_sep { .clock_time_sep {
font-size: 20; font-size: 20;
color: #bfc9db; color: #bfc9db;
margin: 0px 0px 1px 0px; margin: 0px 0px 1px 0px;
} }
.clock_time_class, .clock_minute_class { .clock_time_class,
font-size: 24; .clock_minute_class {
font-size: 24;
} }
.clock_date_class { .clock_date_class {
font-size: 21; font-size: 21;
margin: 0px 5px 0px 5px; margin: 0px 5px 0px 5px;
color: #d7beda; color: #d7beda;
} }
.clock_minute_class { .clock_minute_class {
margin: 0px 5px 0px 2px; margin: 0px 5px 0px 2px;
color: #bfc9db; color: #bfc9db;
} }
.clock_time_class { .clock_time_class {
color: #bfc9db; color: #bfc9db;
font-weight: bold; font-weight: bold;
margin: 0px 0px 0px 8px; margin: 0px 0px 0px 8px;
} }
.membar { .membar {
color: #e0b089; color: #e0b089;
background-color: #38384d; background-color: #38384d;
border-radius: 10px; border-radius: 10px;
} }
.batbar {
color: #afbea2;
background-color: #38384d;
border-radius: 10px;
}
.brightbar trough highlight {
background-image: linear-gradient(to right, #e4c9af 30%, #f2cdcd 50%, #e0b089 100% *50);
border-radius: 10px;
}
.brightbar scale trough {
all: unset;
box-shadow: 0 6px 5px 2px #06060b;
background-color: #232232;
border-radius: 24px;
min-height: 10px;
min-width: 100px;
margin : 0px -15px 5px 0px;
}
.volbar trough highlight {
background-image: linear-gradient(to right, #afcee0 30%, #a1bdce 50%, #77a5bf 100% *50);
border-radius: 10px;
}
.module_app_text { .module_app_text {
font-size: 23; font-size: 23;
margin: 2px 0px 0px 0px; margin: 2px 0px 0px 0px;
} }
.bright_icon {
font-size: 22;
color: #e4c9af;
margin: 0px 10px 0px -10px;
}
.bright_icon_overlay { .bright_icon_overlay {
font-size: 28; font-size: 28;
color: #e4c9af; color: #e4c9af;
background-size: cover; background-size: cover;
background-position: center; background-position: center;
margin: 0px 27px 0px 3px; margin: 0px 27px 0px 3px;
} }
.volume_icon { .volume_icon {
font-size: 22; font-size: 22;
color: #a1bdce; color: #a1bdce;
margin: 0px 5px 0px 0px; margin: 0px 5px 0px 0px;
} }
.module-wif { .module-blu {
font-size: 22; font-size: 22;
color: #a1bdce; color: #a1bdce;
border-radius: 100%; border-radius: 100%;
margin: 0px 10px 0px 0px; margin: 0px 10px 0px 0px;
} }
.module_essid {
font-size: 18;
color: #a1bdce;
margin: 0px 5px 0px -1px;
}
.iconmem { .iconmem {
font-size: 23; font-size: 23;
margin: 4px -3px 4px 0px; margin: 0px -3px 4px 8px;
color: #e0b089; color: #e0b089;
}
.mem_padding {
margin: 10px;
}
.iconbat {
font-size: 23;
color: #afbea2;
} }
.mem_padding {
margin: 10px;
}
.separ { .separ {
color: #3e424f; color: #3e424f;
font-weight: bold; font-weight: bold;
font-size: 22px; font-size: 22px;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
} }
.mem_module { .mem_module {
background-color: #0f0f17; background-color: #282828;
border-radius: 16px; border-radius: 16px;
margin: 0px 10px 0px 0px; margin: 0px 10px 0px 0px;
} }
.bat_module {
background-color: #0f0f17;
border-radius: 16px;
margin: 0px 10px 0px 10px;
}
scale trough { scale trough {
all: unset; all: unset;
@ -160,63 +116,62 @@ scale trough {
} }
.works { .works {
font-size: 27px; font-size: 27px;
font-weight: normal; font-weight: normal;
margin: 0px 0px 0px 15px; margin: 0px 0px 0px 15px;
background-color: #0f0f17; background-color: #282828;
} }
.0 , .01, .02, .03, .04, .05, .06, .0,
.011, .022, .033, .044, .055, .066{ .01,
.02,
.03,
.04,
.05,
.06,
.011,
.022,
.033,
.044,
.055,
.066 {
margin: 0px 10px 0px 0px; margin: 0px 10px 0px 0px;
} }
/* Unoccupied */ /* Unoccupied */
.0 { .0 {
color: #3e424f; color: #3e424f;
} }
/* Occupied */ /* Occupied */
.01, .02, .03, .04, .05, .06 { .01,
.02,
.03,
.04,
.05,
.06 {
color: #bfc9db; color: #bfc9db;
} }
/* Focused */ /* Focused */
.011, .022, .033, .044, .055, .066 { .011,
.022,
.033,
.044,
.055,
.066 {
color: #a1bdce; color: #a1bdce;
} }
.song_cover_art { .song_cover_art {
background-size: cover; background-size: cover;
background-position: center; background-position: center;
min-height: 24px; min-height: 24px;
min-width: 24px; min-width: 24px;
margin: 10px; margin: 10px;
border-radius: 100px; border-radius: 100px;
} }
.song {
color: #a1bdce;
font-size : 18px;
font-weight : bold;
margin : 3px 5px 0px 0px;
}
.song_btn_play {
color: #a1bdce;
font-size : 28px;
margin : 3px 0px 0px 5px;
}
.song_btn_prev, .song_btn_next {
color: #bfc9db;
font-size : 24px;
margin : 3px 0px 0px 5px;
}
// Calendar // Calendar
.cal { .cal {
border-radius: 10px; border-radius: 10px;
@ -225,13 +180,13 @@ color: #3e424f;
font-size: 18px; font-size: 18px;
font-weight: normal; font-weight: normal;
.cal-in { .cal-in {
padding: 0px 10px 0px 10px; padding: 0px 10px 0px 10px;
color: #bfc9db; color: #bfc9db;
.cal { .cal {
&.highlight { &.highlight {
padding: 20px; padding: 20px;
} }
padding: 5px 5px 5px 5px; padding: 5px 5px 5px 5px;
@ -241,180 +196,95 @@ color: #3e424f;
} }
calender { calender {
color: #bfc9db; color: #bfc9db;
} }
calendar:selected { calendar:selected {
color: #a1bdce; color: #a1bdce;
} }
calendar.header { calendar.header {
color: #a1bdce; color: #a1bdce;
font-weight: bold; font-weight: bold;
} }
calendar.button { calendar.button {
color: #afbea2; color: #afbea2;
} }
calendar.highlight { calendar.highlight {
color: #a1bdce; color: #a1bdce;
font-weight: bold; font-weight: bold;
} }
calendar:indeterminate { calendar:indeterminate {
color: #bfc9db; color: #bfc9db;
} }
.sys_sep { .sys_sep {
color: #38384d; color: #38384d;
font-size: 18; font-size: 18;
margin: 0px 10px 0px 10px; margin: 0px 10px 0px 10px;
} }
.sys_text_bat_sub, .sys_text_mem_sub { .sys_text_mem_sub {
font-size: 16; font-size: 16;
color: #bbc5d7; color: #bbc5d7;
margin: 5px 0px 0px 25px; margin: 5px 0px 0px 25px;
} }
.sys_text_bat, .sys_text_mem { .sys_text_mem {
font-size: 21; font-size: 21;
font-weight: bold; font-weight: bold;
margin: 14px 0px 0px 25px; margin: 14px 0px 0px 25px;
} }
.sys_icon_bat, .sys_icon_mem { .sys_icon_mem {
font-size: 30; font-size: 30;
margin: 30px; margin: 30px;
} }
.sys_win { .sys_win {
border-radius: 10px; border-radius: 10px;
background-color: #0f0f17; background-color: #0f0f17;
}
.sys_bat {
color: #afbea2;
background-color: #38384d;
border-radius: 10px;
} }
.sys_mem { .sys_mem {
color: #e4c9af; color: #e4c9af;
background-color: #38384d; background-color: #38384d;
border-radius: 10px; border-radius: 10px;
} }
.sys_icon_bat, .sys_text_bat {
color: #afbea2; .sys_icon_mem,
.sys_text_mem {
color: #e4c9af;
} }
.sys_icon_mem, .sys_text_mem {
color: #e4c9af;
}
.sys_bat_box {
border-radius: 16px;
margin: 15px 10px 10px 20px;
}
.sys_mem_box { .sys_mem_box {
border-radius: 16px; border-radius: 16px;
margin: 10px 10px 15px 20px; margin: 10px 10px 15px 20px;
}
.music_pop {
background-color: #0f0f17;
border-radius: 16px;
}
.music_cover_art {
background-size: cover;
background-position: center;
min-height: 100px;
box-shadow: 5px 5px 5px 5px #06060b;
min-width: 170px;
margin: 20px;
border-radius: 20px;
}
.music {
color: #a1bdce;
font-size : 20px;
font-weight : bold;
margin : 20px 0px 0px -15px;
}
.music_artist {
color: #bbc5d7;
font-size : 16px;
font-weight : normal;
margin : 0px 0px 0px 0px;
}
.music_btn_prev, .music_btn_play, .music_btn_next {
font-family: Iosevka Nerd Font;
}
.music_btn_prev {
color: #bbc5d7;
font-size : 32px;
font-weight : normal;
margin: 0px 0px 0px 0px;
}
.music_btn_play {
color: #a1bdce;
font-size : 48px;
font-weight : normal;
margin: 0px 0px 0px 0px;
}
.music_btn_next {
color: #bbc5d7;
font-size : 32px;
font-weight : normal;
margin: 0px 0px 0px 0px;
}
.music_bar scale trough highlight {
all: unset;
background-image: linear-gradient(to right, #afcee0 30%, #a1bdce 50%, #77a5bf 100% *50);
border-radius: 24px;
}
.music_bar scale trough {
all: unset;
background-color: #232232;
box-shadow: 0 6px 5px 2px #06060b;
border-radius: 24px;
min-height: 13px;
min-width: 190px;
margin : -10px 10px 20px 0px;
} }
.audio-box { .audio-box {
background-color: #0f0f17; background-color: #0f0f17;
border-radius: 16px; border-radius: 16px;
} }
.speaker_icon { .speaker_icon {
background-size: cover; background-size: cover;
background-image: url('images/speaker.png'); background-image: url("images/speaker.png");
background-position: center; background-position: center;
min-height: 40px; min-height: 40px;
min-width: 45px; min-width: 45px;
margin: 10px 10px 5px 20px; margin: 10px 10px 5px 20px;
border-radius: 12px; border-radius: 12px;
} }
.speaker_text { .speaker_text {
color: #a1bdce; color: #a1bdce;
font-size : 22px; font-size: 22px;
font-weight : bold; font-weight: bold;
margin: 5px 15px 0px 15px; margin: 5px 15px 0px 15px;
} }
.bright_text { .bright_text {
color: #a1bdce; color: #a1bdce;
font-size : 22px; font-size: 22px;
font-weight : bold; font-weight: bold;
margin: 5px 15px 0px 25px; margin: 5px 15px 0px 25px;
} }
.change_audio_box { .change_audio_box {
@ -422,72 +292,79 @@ color: #bfc9db;
} }
.change_audio { .change_audio {
color: #a1bdce; color: #a1bdce;
margin: 0px 50px 0px 50px; margin: 0px 50px 0px 50px;
font-size: 30px; font-size: 30px;
font-weight: bold; font-weight: bold;
} }
.speaker_bar scale trough highlight { .speaker_bar scale trough highlight {
all: unset; all: unset;
background-image: linear-gradient(to right, #afcee0 30%, #a1bdce 50%, #77a5bf 100% *50); background-image: linear-gradient(
border-radius: 24px; to right,
#afcee0 30%,
#a1bdce 50%,
#77a5bf 100% * 50
);
border-radius: 24px;
} }
.speaker_bar scale trough { .speaker_bar scale trough {
all: unset; all: unset;
background-color: #232232; background-color: #232232;
box-shadow: 0 6px 5px 2px #06060b; box-shadow: 0 6px 5px 2px #06060b;
border-radius: 24px; border-radius: 24px;
min-height: 10px; min-height: 10px;
min-width: 100px; min-width: 100px;
margin : 0px 0px 5px 0px; margin: 0px 0px 5px 0px;
} }
.mic_icon { .mic_icon {
background-size: cover; background-size: cover;
background-image: url('images/mic.png'); background-image: url("images/mic.png");
background-position: center; background-position: center;
min-height: 40px; min-height: 40px;
min-width: 45px; min-width: 45px;
margin: 5px 20px 20px 10px; margin: 5px 20px 20px 10px;
border-radius: 12px; border-radius: 12px;
} }
.mic_text { .mic_text {
color: #a1bdce; color: #a1bdce;
font-size : 26px; font-size: 26px;
font-weight : bold; font-weight: bold;
margin: 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
} }
.mic_bar scale trough highlight { .mic_bar scale trough highlight {
all: unset; all: unset;
background-image: linear-gradient(to right, #afcee0 30%, #a1bdce 50%, #77a5bf 100% *50); background-image: linear-gradient(
border-radius: 24px; to right,
#afcee0 30%,
#a1bdce 50%,
#77a5bf 100% * 50
);
border-radius: 24px;
} }
.mic_bar scale trough { .mic_bar scale trough {
all: unset; all: unset;
box-shadow: 0 6px 5px 2px #06060b; box-shadow: 0 6px 5px 2px #06060b;
background-color: #232232; background-color: #232232;
border-radius: 24px; border-radius: 24px;
min-height: 10px; min-height: 10px;
min-width: 100px; min-width: 100px;
margin :6px 0px 20px 0px; margin: 6px 0px 20px 0px;
} }
.audio_sep { .audio_sep {
color: #38384d; color: #38384d;
font-size: 18; font-size: 18;
margin : 0px 0px 0px 0px; margin: 0px 0px 0px 0px;
} }
//cockpit stuff //cockpit stuff
.cockpit_class { .cockpit_class {
all: unset; all: unset;
} }
.cockpit_clock { .cockpit_clock {
@ -496,7 +373,7 @@ color: #bfc9db;
.cockpit_box { .cockpit_box {
background-color: #06060b; background-color: #06060b;
border-radius: 10px; border-radius: 10px;
margin: 5px; margin: 5px;
padding: 0px 5px 0px 5px; padding: 0px 5px 0px 5px;
opacity: 0.85; opacity: 0.85;
@ -536,22 +413,22 @@ color: #bfc9db;
} }
.cockpit_button_settings { .cockpit_button_settings {
color: #D35D6E; color: #d35d6e;
font-size: 35px; font-size: 35px;
margin: -30px 5px 0px 5px; margin: -30px 5px 0px 5px;
} }
.weather-icon { .weather-icon {
font-size: 80px; font-size: 80px;
margin: 10px 0px 35px 25px; margin: 10px 0px 5px 10px;
font-family: Iosevka; font-family: Iosevka;
} }
.weather-stat { .weather-stat {
font-size: 30px; font-size: 30px;
font-weight: bold; font-weight: bold;
color: #D35D6E; color: #d35d6e;
margin: -20px 0px 10px 0px; margin: -5px 0px 10px 50px;
} }
.temperature { .temperature {
@ -561,41 +438,41 @@ color: #bfc9db;
margin: 0px 0px 0px 20px; margin: 0px 0px 0px 20px;
} }
.weather-quote { .weather-quote {
margin: 30px -5px 0px 20px; margin: 20px 10px 1000px 10px;
font-size: 20px; font-size: 20px;
} }
.weather-quote-head, .weather-quote-tail { .weather-quote-head,
.weather-quote-tail {
color: grey; color: grey;
font-size: 18px; font-size: 18px;
margin: 10px 0px 10px 10px; margin: 0px 0px 10px 0px;
} }
.cockpit_clock_left { .cockpit_clock_left {
font-size: 50px; font-size: 50px;
font-weight: bold; font-weight: bold;
color: #D35D6E; color: #d35d6e;
margin: 5px -20px -30px 0px; margin: 5px -20px -30px 0px;
} }
.cockpit_clock_right { .cockpit_clock_right {
font-size: 50px; font-size: 50px;
font-weight: bold; font-weight: bold;
color: #D35D6E; color: #d35d6e;
margin: 5px 0px -30px -20px; margin: 5px 0px -30px -20px;
} }
.cockpit_date { .cockpit_date {
font-size: 50px; font-size: 50px;
font-weight: bold; font-weight: bold;
color: #D35D6E; color: #d35d6e;
margin: -30px -20px 0px -20px; margin: -30px -20px 0px -20px;
} }
.cockpit_clock_sep { .cockpit_clock_sep {
font-size: 40px; font-size: 40px;
font-weight: bold; font-weight: bold;
color: #D35D6E; color: #d35d6e;
margin: 0px -20px -30px -20px; margin: 0px -20px -30px -20px;
} }
@ -619,15 +496,15 @@ color: #bfc9db;
} }
.cockpit_sep_bottom { .cockpit_sep_bottom {
color: #38384d; color: #38384d;
font-size: 18; font-size: 18;
margin : -10px 0px 0px 0px; margin: -10px 0px 0px 0px;
padding: 0px; padding: 0px;
} }
.cockpit_sep_top { .cockpit_sep_top {
color: #38384d; color: #38384d;
font-size: 18; font-size: 18;
margin : 0px 0px -10px 0px; margin: 0px 0px -10px 0px;
padding: 0px; padding: 0px;
} }

View file

@ -1,17 +1,11 @@
;; date definitions ;; ;; date definitions ;;
(defpoll clock_time :interval "5m" "date +\%I") (defpoll clock_time :interval "1m" "date +\%I")
(defpoll clock_minute :interval "5s" "date +\%M") (defpoll clock_minute :interval "5s" "date +\%M")
(defpoll clock_date :interval "10h" "date '+%d/%m'") (defpoll clock_date :interval "1h" "date '+%d/%m'")
;; volume definitions ;; ;; volume definitions ;;
(defpoll volume_percent :interval "1s" "pactl get-sink-volume @DEFAULT_SINK@ | awk -F '/' ' { print $2 } ' | tr -d ' %'") (defpoll volume_percent :interval "1s" "pactl get-sink-volume @DEFAULT_SINK@ | awk -F '/' ' { print $2 } ' | tr -d ' %'")
(defpoll mic_percent :interval "1s" "pactl get-source-volume @DEFAULT_SOURCE@ | awk -F'/' '{ print $2 }' | tr -d ' %'") (defpoll mic_percent :interval "1s" "pactl get-source-volume @DEFAULT_SOURCE@ | awk -F'/' '{ print $2 }' | tr -d ' %'")
(defpoll brightness_percent :interval "5s" "brightnessctl -m -d intel_backlight | awk -F, '{print substr($4, 0, length($4)-1)}' | tr -d '%'")
;; battery definitions ;;
(defpoll battery_status :interval "5s" "./scripts/battery stat")
(defpoll battery-capacity :interval "5s" "scripts/battery percent")
(defpoll battery :interval "5s" "scripts/battery icon")
;; memory definitions ;; ;; memory definitions ;;
(defpoll memory :interval "15s" "scripts/memory") (defpoll memory :interval "15s" "scripts/memory")
@ -19,30 +13,22 @@
(defpoll memory_total_mb :interval "2m" "scripts/mem-ad total") (defpoll memory_total_mb :interval "2m" "scripts/mem-ad total")
(defpoll memory_free_mb :interval "2m" "scripts/mem-ad free") (defpoll memory_free_mb :interval "2m" "scripts/mem-ad free")
;; wifi definitions ;;
(defpoll COL_WLAN :interval "1m" "~/.config/eww/scripts/wifi --COL")
(defpoll ESSID_WLAN :interval "1m" "~/.config/eww/scripts/wifi --ESSID")
(defpoll WLAN_ICON :interval "1m" "~/.config/eww/scripts/wifi --ICON")
;; music definitions ;; ;; music definitions ;;
(defpoll Song_info :interval "2s" "scripts/music_control") (defpoll Song_info :interval "2s" "scripts/music_control")
(defpoll Thumbnail :interval "2s" "scripts/music_control2") (defpoll Thumbnail :interval "2s" "scripts/music_control2")
;; current window ;;
;;(defpoll currentWindow :interval "100ms" "hyprctl activewindow | grep class | awk -F ':' '{ print $2 }'")
;; calendar definitions ;; ;; calendar definitions ;;
(defpoll calendar_day :interval "20h" "date '+%d'") (defpoll calendar_day :interval "20h" "date '+%d'")
(defpoll calendar_year :interval "20h" "date '+%Y'") (defpoll calendar_year :interval "20h" "date '+%Y'")
;; Weather vars ;; Weather vars
(defpoll weather-interval :interval "20m" "scripts/weather") (defpoll weather-icon :interval "21m" "cat ~/.cache/weather/weather-icon")
(defpoll weather-icon :interval "20m" "cat ~/.cache/weather/weather-icon") (defpoll temperature :interval "21m" "cat ~/.cache/weather/weather-degree")
(defpoll temperature :interval "20m" "cat ~/.cache/weather/weather-degree") (defpoll weather-hex :interval "21m" "cat ~/.cache/weather/weather-hex")
(defpoll weather-hex :interval "20m" "cat ~/.cache/weather/weather-hex") (defpoll weather-stat :interval "21m" "cat ~/.cache/weather/weather-stat")
(defpoll weather-stat :interval "20m" "cat ~/.cache/weather/weather-stat") (defpoll weather-stat-side :interval "21m" "~/.config/eww/scripts/weather-trimmer")
(defpoll weather-stat-side :interval "20m" "~/.config/eww/scripts/weather-trimmer") (defpoll weather-quote :interval "21m" "~/.config/eww/scripts/getwethquote")
(defpoll weather-quote :interval "20m" "~/.config/eww/scripts/getwethquote") (defpoll weather-quote2 :interval "21m" "~/.config/eww/scripts/getwethquote2")
;; simple variables ;; ;; simple variables ;;
(defvar eww "$HOME/.local/bin/eww -c $HOME/.config/eww") (defvar eww "$HOME/.local/bin/eww -c $HOME/.config/eww")
@ -51,45 +37,21 @@
(defvar music_reveal false) (defvar music_reveal false)
(defvar wifi_rev false) (defvar wifi_rev false)
(defvar time_rev false) (defvar time_rev false)
(defvar current_monitor 0)
(deflisten workspace "scripts/workspace") (deflisten workspace "scripts/workspace")
(deflisten currentName "scripts/current_name") (deflisten currentName "scripts/current_name")
;; widgets ;; widgets
;; wifi ;;
(defwidget wifi []
(eventbox :onhover "${eww} update wifi_rev=true"
:onhoverlost "${eww} update wifi_rev=false"
(box :vexpand "false" :hexpand "false" :space-evenly "false"
(button :class "module-wif" :onclick "hyprctl dispatch exec 'alacritty -e nmtui'" :wrap "false" :limit-width 12 :style "color: ${COL_WLAN};" WLAN_ICON)
(revealer :transition "slideright"
:reveal wifi_rev
:duration "350ms"
(button :class "module_essid" :onclick "hyprctl dispatch exec 'alacritty -e nmtui'" :wrap "false" :limit-width 12 :style "color: ${COL_WLAN};" ESSID_WLAN)))))
(defwidget bluetooth [] (defwidget bluetooth []
(box :vexpand "false" :hexpand "false" :space-evenly "false" (box :vexpand "false" :hexpand "false" :space-evenly "false"
(button :class "module-wif" :onclick "hyprctl dispatch exec 'blueman-manager'" :wrap "false" :limit-width 12 :style "color: ${COL_WLAN};" "") (button :class "module-blu" :onclick "hyprctl dispatch exec 'blueman-manager'" :wrap "false" :limit-width 12 "")
)) ))
;; workspaces ;; ;; workspaces ;;
(defwidget workspaces [] (defwidget workspaces []
(literal :content workspace)) (literal :content workspace))
;; Battery ;;
(defwidget bat []
(box :class "bat_module" :vexpand "false" :hexpand "false"
(button
:class "iconbat"
:tooltip "Battery: ${battery-capacity}%"
:show_truncated false
:onclick "$HOME/.config/eww/scripts/pop system"
:wrap false
"${battery}")))
;; memory ;; ;; memory ;;
(defwidget mem [] (defwidget mem []
(box :class "mem_module" :vexpand "false" :hexpand "false" (box :class "mem_module" :vexpand "false" :hexpand "false"
@ -104,7 +66,6 @@
(label :class "mem_padding" :text "") (label :class "mem_padding" :text "")
)))) ))))
;; seperator ;; ;; seperator ;;
(defwidget sep [] (defwidget sep []
(box :class "module-2" :vexpand "false" :hexpand "false" (box :class "module-2" :vexpand "false" :hexpand "false"
@ -128,52 +89,8 @@
;; speaker volume ;; ;; speaker volume ;;
(defwidget volume [] (defwidget volume []
;;(eventbox :onhover "${eww} update vol_reveal=true"
;; :onhoverlost "${eww} update vol_reveal=false"
(box :class "module-2" :space-evenly "false" :orientation "h" :spacing "3" (box :class "module-2" :space-evenly "false" :orientation "h" :spacing "3"
(button :onclick "scripts/pop audio" :class "volume_icon" ""))) (button :onclick "scripts/pop audio" :class "volume_icon" "")))
;;(revealer :transition "slideleft"
;; :reveal vol_reveal
;; :duration "350ms"
;;(scale :class "volbar"
;; :value volume_percent
;; :orientation "h"
;; :tooltip "${volume_percent}%"
;; :max 100
;; :min 0
;; :onchange "scripts/change-volume sink {}%" )))
;; screen brightness ;;
(defwidget bright []
;;(eventbox :onhover "${eww} update br_reveal=true" :onhoverlost "${eww} update br_reveal=false"
(box :class "module-2" :space-evenly "false" :orientation "h" :spacing "3"
(button :onclick "scripts/pop brightness" :class "bright_icon" "")))
;;(revealer :transition "slideleft"
;; :reveal br_reveal
;; :duration "350ms"
;; (scale :class "brightbar"
;; :value brightness_percent
;; :orientation "h"
;; :tooltip "${brightness_percent}%"
;; :max 100
;; :min 0
;; :onchange "brightnessctl set {}%" )))
;; brightness widget ;;
(defwidget brightness_overlay []
(eventbox :onhover "scripts/pop hoverCreate"
:onhoverlost "scripts/pop hoverGet brightness_window"
(box :class "audio-box" :halign "center" :orientation "v" :vexpand "false" :hexpand "false"
(label :class "speaker_text" :text "brightness" :halign "left" )
(box :class "brightbar" :halign "center" :vexpand "false" :hexpand "false"
(label :class "bright_icon_overlay" :text "")
(scale :value brightness_percent
:space-evenly "false"
:orientation "h"
:onchange "brightnessctl set {}%"
:tooltip "brightness on ${brightness_percent}%"
:max 100
:min 0)))))
;; audio volume widget ;; ;; audio volume widget ;;
(defwidget audio [] (defwidget audio []
@ -205,19 +122,6 @@
:onchange "pactl set-source-volume @DEFAULT_SOURCE@ {}%" :onchange "pactl set-source-volume @DEFAULT_SOURCE@ {}%"
:max 100 :max 100
:min 0)))) :min 0))))
(label :text "" :class "audio_sep" :halign "center")
(box :halign "center" :space-evenly "false" :hexpand "false" :vexpand "false"
(label :class "bright_icon_overlay" :orientation "v" :text "")
(box :orientation "v" :halign "center" :vexpand "false" :hexpand "false"
(label :class "bright_text" :text "lux" :valign "center" :halign "right" )
(box :class "brightbar" :halign "center" :vexpand "false" :hexpand "false"
(scale :value brightness_percent
:space-evenly "false"
:orientation "h"
:tooltip "brightness ${brightness_percent}%"
:onchange "brightnessctl set {}%"
:max 100
:min 0))))
(label :text "" :class "audio_sep" :halign "center") (label :text "" :class "audio_sep" :halign "center")
(box :class "change_audio_box" :halign "center" :spac`e-evenly "false" :hexpand "false" :vexpand "false" (box :class "change_audio_box" :halign "center" :spac`e-evenly "false" :hexpand "false" :vexpand "false"
(box :class "change_audio" :orientation "v" :halign "left" (box :class "change_audio" :orientation "v" :halign "left"
@ -226,21 +130,6 @@
(button :onclick "scripts/change-audio bluetooth" "")) (button :onclick "scripts/change-audio bluetooth" ""))
)))) ))))
;; Music ;;
;;(defwidget music []
;; (eventbox :onhover "${eww} update music_reveal=true"
;;;; :onhoverlost "${eww} update music_reveal=false"
;; (box :class "module-2" :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false"
;; (box :class "song_cover_art" :vexpand "false" :hexpand "false" :style "background-image: url('${cover_art}');")
;; (button :class "song" :wrap "true" :onclick "~/.config/eww/scripts/pop music" song)
;; (revealer :transition "slideright"
;; :reveal music_reveal
;; :duration "350ms"
;; (box :vexpand "false" :hexpand "false" :oreintation "h"
;; (button :class "song_btn_prev" :onclick "~/.config/eww/scripts/music_info --prev" "")
;; (button :class "song_btn_play" :onclick "~/.config/eww/scripts/music_info --toggle" song_status)
;; (button :class "song_btn_next" :onclick "~/.config/eww/scripts/music_info --next" ""))))))
(defwidget cname [] (defwidget cname []
(literal :content currentName)) (literal :content currentName))
@ -254,54 +143,10 @@
:day calendar_day :day calendar_day
:year calendar_year))))) :year calendar_year)))))
;; Music again.. ;;
;;(defwidget music_pop []
;; (box :class "music_pop" :orientation "h" :space-evenly "false" :vexpand "false" :hexpand "false"
;; (box :class "music_cover_art" :vexpand "false" :hexpand "false" :style "background-image: url('${cover_art}');")
;; (box :orientation "v" :spacing 20 :space-evenly "false" :vexpand "false" :hexpand "false"
;; (label :halign "center" :class "music" :wrap "true" :limit-width 13 :text song)
;; (label :halign "center" :class "music_artist" :wrap "true" :limit-width 15 :text song_artist)
;; (box :orientation "h" :spacing 15 :halign "center" :space-evenly "false" :vexpand "false" :hexpand "false"
;; (button :class "music_btn_prev" :onclick "~/.config/eww/scripts/music_info --prev" "")
;; (button :class "music_btn_play" :onclick "~/.config/eww/scripts/music_info --toggle" song_status)
;; (button :class "music_btn_next" :onclick "~/.config/eww/scripts/music_info --next" ""))
;; (box :class "music_bar" :halign "center" :vexpand "false" :hexpand "false" :space-evenly "false"
;; (scale :onscroll "mpc -q seek {}" :min 0 :active "true" :max 100 :value current_status)))))
(defwidget system [] (defwidget system []
(eventbox :onhover "scripts/pop hoverCreate" (eventbox :onhover "scripts/pop hoverCreate"
:onhoverlost "scripts/pop hoverGet system" :onhoverlost "scripts/pop hoverGet system"
(box :class "sys_win" :orientation "v" :space-evenly "false" :hexpand "false" :vexpand "false" :spacing 0 (box :class "sys_win" :orientation "v" :space-evenly "false" :hexpand "false" :vexpand "false" :spacing 0
(box :class "sys_bat_box" :orientation "h" :space-evenly "false"
(circular-progress :value battery-capacity
:class "sys_bat"
:thickness 9
(label :text ""
:class "sys_icon_bat"
:limit-width 2
:show_truncated false
:wrap false))
(box :orientation "v" :space-evenly "false" :spacing 0 :hexpand "false" :vexpand "false"
(label :text "battery"
:halign "start"
:class "sys_text_bat"
:limit-width 9
:show_truncated false
:wrap false)
(label :text "${battery-capacity}%"
:halign "start"
:class "sys_text_bat_sub"
:limit-width 22
:show_truncated false
:wrap false)
(label :text "${battery_status}"
:halign "start"
:class "sys_text_bat_sub"
:limit-width 22
:show_truncated false
:wrap false)))
(label :text "" :class "sys_sep" :halign "center")
(box :class "sys_mem_box" :orientation "h" :space-evenly "false" :halign "start" (box :class "sys_mem_box" :orientation "h" :space-evenly "false" :halign "start"
(circular-progress :value memory (circular-progress :value memory
:class "sys_mem" :class "sys_mem"
@ -389,10 +234,8 @@
:halign "end" :halign "end"
:class "left_modules" :class "left_modules"
(volume) (volume)
(wifi)
(bluetooth) (bluetooth)
(sep) (sep)
(bat)
(mem) (mem)
(sep) (sep)
(clock_module))) (clock_module)))
@ -421,6 +264,9 @@
(center) (center)
(left) (left)
)) ))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Drawing Windows ;; ;; Drawing Windows ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ -441,25 +287,10 @@
:y "2px" :y "2px"
:anchor "top right" :anchor "top right"
:width "250px" :width "250px"
:height "330px") :height "230px")
:stacking "overlay" :stacking "overlay"
(audio)) (audio))
(defwindow brightness_window
:monitor 0
:geometry (geometry :x "250px"
:y "2px"
:anchor "top right"
:width "280px"
:height "60px")
:stacking "overlay"
(brightness_overlay))
;; music again .. ;;
;; (defwindow music_win :stacking "fg" :focusable "false" :screen 1
;; :geometry (geometry :x "0" :y "7%" :width 428 :height 104 :anchor "top center")
;; (music_pop))
(defwindow system (defwindow system
:monitor 0 :monitor 0
:geometry (geometry :x "50px" :geometry (geometry :x "50px"
@ -475,20 +306,47 @@
:monitor 0 :monitor 0
:geometry (geometry :x "0%" :geometry (geometry :x "0%"
:y "1px" :y "1px"
:width "99%" :width "3417px"
:height "20px" :height "20px"
:anchor "top center") :anchor "top center")
:stacking "bg" :stacking "bottom"
:wm-ignore false :wm-ignore false
:exclusive true :exclusive true
(bar_1)) (bar_1))
;; draw the bar ;; ;; draw the cockpit monitor 0 ;;
(defwindow cockpit_window (defwindow cockpit_window_0
:monitor 0 :monitor 0
:geometry (geometry :geometry (geometry :x "1470px"
:y "420px"
:width "600px" :width "600px"
:height "500px" :height "400px"
:anchor "center")
:stacking "overlay"
:wm-ignore false
:exclusive true
(cockpit))
;; draw the cockpit monitor 1 ;;
(defwindow cockpit_window_1
:monitor 1
:geometry (geometry
:width "600px"
:height "400px"
:anchor "center")
:stacking "overlay"
:wm-ignore false
:exclusive true
(cockpit))
;; draw the cockpit monitor 2 ;;
(defwindow cockpit_window_2
:monitor 2
:geometry (geometry
:width "600px"
:height "400px"
:anchor "center") :anchor "center")
:stacking "overlay" :stacking "overlay"
:wm-ignore false :wm-ignore false

View file

@ -1,8 +1,11 @@
#! /bin/bash #! /bin/bash
ISOPEN=$(eww windows | grep "*cockpit") ISOPEN=$(eww windows | grep "*cockpit" | tr -d '*')
if [ "$ISOPEN" = "" ]; then if [ "$ISOPEN" = "" ]; then
eww open cockpit_window MONITOR=$(hyprctl monitors | grep -B 7 "focused: yes" | grep "ID" | awk -F '(' ' { print $2 } ' | tr -d 'ID ):')
eww open cockpit_window_"$MONITOR"
else else
eww close cockpit_window eww close "$ISOPEN"
fi fi

View file

@ -0,0 +1 @@
8°C

View file

@ -0,0 +1 @@
#adadff

View file

@ -0,0 +1 @@

View file

@ -0,0 +1 @@
It's cloudy, sort of gloomy \nYou'd better get a book to read...

View file

@ -0,0 +1 @@
Overcast Clouds

View file

@ -29,7 +29,7 @@ run() {
${EWW_BIN} -c $HOME/.config/eww open system ${EWW_BIN} -c $HOME/.config/eww open system
} }
# Open widgets # Open system
if [[ ! -f "$LOCK_FILE_MEM" ]]; then if [[ ! -f "$LOCK_FILE_MEM" ]]; then
${EWW_BIN} -c $HOME/.config/eww close calendar music_win audio_ctl brightness ${EWW_BIN} -c $HOME/.config/eww close calendar music_win audio_ctl brightness
touch "$LOCK_FILE_MEM" touch "$LOCK_FILE_MEM"

View file

@ -1,10 +0,0 @@
#!/bin/bash
#if [ "$PLAYER_EVENT" = "start" ] || [ "$PLAYER_EVENT" = "change" ];
#then
trackName=$(playerctl -p spotifyd,%any metadata title)
artistAndAlbumName=$(playerctl -p spotifyd,%any metadata --format "{{ artist }} ({{ album }})")
Thumbnail_url=$(playerctl -p spotifyd,%any metadata mpris:artUrl)
Thumbnail=$(curl "$Thumbnail_url")
notify-send -u low "$trackName" "$artistAndAlbumName " -i "$Thumbnail"
#fi

View file

@ -1,10 +0,0 @@
#!/bin/bash
if [ "$PLAYER_EVENT" = "start" ] || [ "$PLAYER_EVENT" = "change" ];
then
song=$(playerctl metadata -p spotifyd --format "{{ title }}\n{{ artist }}\n{{ album }}")
if [ ! -f "/home/dashie/.cache/icons/$song" ]; then
thumb=$(playerctl metadata -p spotifyd --format '{{lc(mpris:artUrl)}}')
convert "$thumb" -flatten -thumbnail 256x256 /home/dashie/.cache/icons/"$song"
fi
dunstify -I /home/dashie/.cache/icons/"$song" -t 3000 "Spotify" "$song"
fi

View file

@ -1,12 +0,0 @@
#! /bin/bash
SINK=$(pactl info | grep "Default Sink"| awk -F 'Default Sink: ' ' { print $2 } ')
pactl set-sink-mute $SINK toggle
MUTE=$(pactl list sinks | grep -A 6 "$SINK" | grep "Mute: yes" | tr -d '\t')
if [ "$MUTE" = "Mute: yes" ]; then
dunstify -a "toggleMute" -r 2 -u low "Muted"
else
dunstify -a "toggleMute" -r 2 -u low "Unmuted"
fi

View file

@ -10,16 +10,16 @@ tmp_weather_icon=$tmp_weather/weather-icon
if [ ! -d $tmp_weather ]; then if [ ! -d $tmp_weather ]; then
mkdir -p $tmp_weather mkdir -p $tmp_weather
fi fi
#notify-send -u critical "weather ping" "pangping"
# Put in your api and stuff link here # Put in your api and stuff link here
# If you dunno, head to openweathermap.org, and make and account # If you dunno, head to openweathermap.org, and make and account
#(completely free I swear, and then get your API Key and your City ID) #(completely free I swear, and then get your API Key and your City ID)
# I wish I was smart enough to do it like Elena, but this is the top I could do lol # I wish I was smart enough to do it like Elena, but this is the top I could do lol
KEY="{your key}" KEY="{key}"
ID="{your city id}" ID="{location}"
UNIT="{metric}" #Options are 'metric' and 'imperial' UNIT="{metric}" #Options are 'metric' and 'imperial'
weather=$(curl -sf "http://api.openweathermap.org/data/2.5/weather?APPID="$KEY"&id="$ID"&units="$UNIT"") weather=$(curl -sf "http://api.openweathermap.org/data/2.5/weather?APPID="$KEY"&q="$ID"&units="$UNIT"")
echo $weather #echo $weather
if [ ! -z "$weather" ]; then if [ ! -z "$weather" ]; then
weather_temp=$(echo "$weather" | jq ".main.temp" | cut -d "." -f 1) weather_temp=$(echo "$weather" | jq ".main.temp" | cut -d "." -f 1)
weather_icon_code=$(echo "$weather" | jq -r ".weather[].icon" | head -1) weather_icon_code=$(echo "$weather" | jq -r ".weather[].icon" | head -1)

View file

@ -21,14 +21,14 @@ o7=$(hyprctl workspaces | grep "$ws7" )
o8=$(hyprctl workspaces | grep "$ws8" ) o8=$(hyprctl workspaces | grep "$ws8" )
# check if Focused # check if Focused
f1=$(hyprctl monitors | grep "workspace: 1" ) f1=$(hyprctl monitors | grep "workspace: 1" -A 4 | grep "focused: yes" )
f2=$(hyprctl monitors | grep "workspace: 2" ) f2=$(hyprctl monitors | grep "workspace: 2" -A 4 | grep "focused: yes" )
f3=$(hyprctl monitors | grep "workspace: 3" ) f3=$(hyprctl monitors | grep "workspace: 3" -A 4 | grep "focused: yes" )
f4=$(hyprctl monitors | grep "workspace: 4" ) f4=$(hyprctl monitors | grep "workspace: 4" -A 4 | grep "focused: yes" )
f5=$(hyprctl monitors | grep "workspace: 5" ) f5=$(hyprctl monitors | grep "workspace: 5" -A 4 | grep "focused: yes" )
f6=$(hyprctl monitors | grep "workspace: 6" ) f6=$(hyprctl monitors | grep "workspace: 6" -A 4 | grep "focused: yes" )
f7=$(hyprctl monitors | grep "workspace: 7" ) f7=$(hyprctl monitors | grep "workspace: 7" -A 4 | grep "focused: yes" )
f8=$(hyprctl monitors | grep "workspace: 8" ) f8=$(hyprctl monitors | grep "workspace: 8" -A 4 | grep "focused: yes" )
if [ "$o1" != "" ]; then if [ "$o1" != "" ]; then
ic_1="①" ic_1="①"

View file

@ -2,8 +2,8 @@
LocationMode=path-bar LocationMode=path-bar
ShowHidden=false ShowHidden=false
ShowSizeColumn=true ShowSizeColumn=true
GeometryX=912 GeometryX=3887
GeometryY=199 GeometryY=88
GeometryWidth=1008 GeometryWidth=1008
GeometryHeight=692 GeometryHeight=692
SortColumn=name SortColumn=name

View file

@ -1,2 +1,10 @@
file:///home/dashie/Pictures/ file:///home/dashie/Pictures
file:///home/dashie/Documents/ file:///home/dashie/Documents
file:///home/dashie/gits gits
file:///home/dashie/Videos Videos
file:///home/dashie/Music Music
file:///home/dashie/Downloads Downloads
file:///drive2 drive2
file:///home/dashie/Documents
file:///home/dashie/Pictures
file:///home/dashie/gits/ost-3semester ost-3semester

16
gtk-3.0/servers Normal file
View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<xbel version="1.0"
xmlns:bookmark="http://www.freedesktop.org/standards/desktop-bookmarks"
xmlns:mime="http://www.freedesktop.org/standards/shared-mime-info"
>
<bookmark href="smb://192.168.1.4/files1/" added="2022-10-24T05:45:39.137776Z" modified="2022-10-24T05:45:39.137779Z" visited="2022-10-24T05:45:39.137777Z">
<title>files1 on 192.168.1.4</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:applications>
<bookmark:application name="org.gnome.Nautilus" exec="&apos;org.gnome.Nautilus %u&apos;" modified="2022-10-24T05:45:39.137778Z" count="1"/>
</bookmark:applications>
</metadata>
</info>
</bookmark>
</xbel>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

View file

@ -1,159 +0,0 @@
#
#fix the fucking portal
exec-once=systemctl --user import-environment
exec-once=dbus-update-activation-environment --all
#
#
autogenerated=0 # remove this line to get rid of the warning on top.
monitor=,preferred,auto,1
input {
kb_file=/home/dashie/.config/keymap.xkb #us with dead_diaeresis on shift + ' to get ä ö ü
kb_layout=
kb_variant=
kb_model=
kb_options=
kb_rules=
repeat_delay=200
natural_scroll=true
follow_mouse=1
force_no_accel=true
touchpad {
natural_scroll=yes
tap-to-click=yes
}
}
general {
sensitivity=1.0 # for mouse cursor
main_mod=SUPER
gaps_in=5
gaps_out=10
border_size=3
col.active_border=0x66ee1111
col.inactive_border=0x66333333
apply_sens_to_raw=0 # whether to apply the sensitivity to raw input (e.g. used by games where you aim using your mouse)
damage_tracking=full # leave it on full unless you hate your GPU and want to make it suffer
}
decoration {
rounding=10
blur=1
blur_size=3 # minimum 1
blur_passes=1 # minimum 1
blur_new_optimizations=true
}
animations {
enabled=1
animation=windows,1,7,default
animation=border,1,10,default
animation=fade,1,10,default
animation=workspaces,1,6,default
}
dwindle {
preserve_split=true
pseudotile=0 # enable pseudotiling on dwindle
}
gestures {
workspace_swipe=yes
}
misc {
animate_manual_resizes=true
}
#reserve place for bar
#monitor=eDP-1,addreserved,45,0,0,0
# example window rules
# for windows named/classed as abc and xyz
windowrule=opacity 80,^(.*)(dunst)(.*)$
#windowrule=tile,xyz
#windowrule=float,abc
#windowrule=pseudo,abc
#windowrule=monitor 0,xyz
# example binds
bind=SUPER,S,exec,grim -g "$(slurp)" - | wl-copy
bind=SUPER,F,exec,firefox
bind=SUPER,T,exec,alacritty
bind=SUPER,Q,killactive,
bind=SUPER,M,exit,
bind=SUPER,E,exec,nautilus --new-window
bind=SUPER,V,togglefloating,
bind=SUPER,R,exec,wofi -I -m -s $HOME/.config/wofi/style.css -t alacritty --show drun -o DP-3
bind=SUPER,C,togglesplit
bind=SUPER,B,fullscreen
bind=SUPERSHIFT,L,exec, playerctl --player=ncspot,firefox -a pause & swaylock -c 000000 & systemctl suspend
bind=,XF86AudioMute,exec, $HOME/.config/eww/scripts/toggle-mute
bind=,XF86AudioLowerVolume,exec, $HOME/.config/eww/scripts/change-volume sink -5%
bind=,XF86AudioRaiseVolume,exec, $HOME/.config/eww/scripts/change-volume sink +5%
bind=,XF86AudioPlay,exec, playerctl --player=ncspot,firefox play-pause
bind=,XF86AudioNext,exec, playerctl --player=ncspot,firefox next
bind=,XF86AudioPrev,exec, playerctl --player=ncspot,firefox previous
bind=,XF86MonBrightnessDown,exec, $HOME/.config/eww/scripts/change-brightness brightness 10%-
bind=,XF86MonBrightnessUp,exec, $HOME/.config/eww/scripts/change-brightness brightness +10%
bind=SUPERSHIFTALT,S,exec, grim -o eDP-1 - | swappy -f -
bind=SUPER,D,exec, $HOME/.config/eww/scripts/cockpit_toggle
bind=,Print,exec, grim - | wl-copy
bind=SUPER,bracketleft,movefocus,l
bind=SUPER,bracketright,movefocus,r
bind=SUPER,semicolon,movefocus,u
bind=SUPER,apostrophe,movefocus,d
bind=SUPER,left,movewindow,l
bind=SUPER,right,movewindow,r
bind=SUPER,up,movewindow,u
bind=SUPER,down,movewindow,d
bind=SUPER,1,workspace,1
bind=SUPER,2,workspace,2
bind=SUPER,3,workspace,3
bind=SUPER,4,workspace,4
bind=SUPER,5,workspace,5
bind=SUPER,6,workspace,6
bind=SUPER,7,workspace,7
bind=SUPER,8,workspace,8
bind=SUPER,9,workspace,9
bind=SUPER,0,workspace,10
bind=SUPERSHIFT,1,movetoworkspace,1
bind=SUPERSHIFT,2,movetoworkspace,2
bind=SUPERSHIFT,3,movetoworkspace,3
bind=SUPERSHIFT,4,movetoworkspace,4
bind=SUPERSHIFT,5,movetoworkspace,5
bind=SUPERSHIFT,6,movetoworkspace,6
bind=SUPERSHIFT,7,movetoworkspace,7
bind=SUPERSHIFT,8,movetoworkspace,8
bind=SUPERSHIFT,9,movetoworkspace,9
bind=SUPERSHIFT,0,movetoworkspace,10
bind=SUPER,mouse_down,workspace,e+1
bind=SUPER,mouse_up,workspace,e-1
binde=SUPER,O,resizeactive,-20 0
binde=SUPER,P,resizeactive,20 0
binde=SUPER,K,resizeactive,0 -20
binde=SUPER,L,resizeactive,0 20
#autostart programs
#exec=~/Documents/scripts/hyprstart.sh
#exec=hyprstart.sh
exec-once=hyprpaper
exec-once=eww daemon
exec-once=eww open bar
exec-once=flatpak run chat.schildi.desktop
exec-once=firefox
#exec-once=nextcloud
exec-once=alacritty -e ncspot

View file

@ -1,4 +0,0 @@
# wallpaper
preload = /home/dashie/Pictures/backgrounds/Monitor3.jpg
wallpaper = eDP-1,/home/dashie/Pictures/backgrounds/Monitor3.jpg

6
nvim/.luarc.json Normal file
View file

@ -0,0 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
"Lua.workspace.library": [
"${3rd}/luassert/library"
]
}

View file

@ -1,5 +1,5 @@
require("settings.options")
require("settings.plugins") require("settings.plugins")
require("settings.options")
require("settings.cmp") require("settings.cmp")
require("settings.lsp") require("settings.lsp")
require("settings.devicons") require("settings.devicons")
@ -25,8 +25,3 @@ require("telescope").load_extension("fzy_native")
require("impatient").enable_profile() require("impatient").enable_profile()
require("nightfox") require("nightfox")
require('Comment').setup() require('Comment').setup()
-- require('vgit').setup()
-- vim.o.updatetime = 3000
-- vim.o.incsearch = false
-- vim.wo.signcolumn = 'yes'

85
nvim/installer.sh Normal file
View file

@ -0,0 +1,85 @@
#!/bin/sh
# Standalone installer for Unixs
# Original version is created by shoma2da
# https://github.com/shoma2da/neobundle_installer
set -e
if [ $# -ne 1 ]; then
echo "You must specify the installation directory!"
exit 1
fi
# Convert the installation directory to absolute path
case $1 in
/*) PLUGIN_DIR=$1;;
*) PLUGIN_DIR=$PWD/$1;;
esac
INSTALL_DIR="${PLUGIN_DIR}/repos/github.com/Shougo/dein.vim"
echo "Install to \"$INSTALL_DIR\"..."
if [ -e "$INSTALL_DIR" ]; then
echo "\"$INSTALL_DIR\" already exists!"
fi
echo ""
# check git command
type git || {
echo 'Please install git or update your path to include the git executable!'
exit 1
}
echo ""
# make plugin dir and fetch dein
if ! [ -e "$INSTALL_DIR" ]; then
echo "Begin fetching dein..."
mkdir -p "$PLUGIN_DIR"
git clone --depth=1 https://github.com/Shougo/dein.vim "$INSTALL_DIR"
echo "Done."
echo ""
fi
# write initial setting for .vimrc
echo "Please add the following settings for dein to the top of your vimrc (Vim) or init.vim (NeoVim) file:"
{
echo ""
echo ""
echo "\"dein Scripts-----------------------------"
echo "if &compatible"
echo " set nocompatible \" Be iMproved"
echo "endif"
echo ""
echo "\" Required:"
echo "set runtimepath+=$INSTALL_DIR"
echo ""
echo "\" Required:"
echo "call dein#begin('$PLUGIN_DIR')"
echo ""
echo "\" Let dein manage dein"
echo "\" Required:"
echo "call dein#add('$INSTALL_DIR')"
echo ""
echo "\" Add or remove your plugins here like this:"
echo "\"call dein#add('Shougo/neosnippet.vim')"
echo "\"call dein#add('Shougo/neosnippet-snippets')"
echo ""
echo "\" Required:"
echo "call dein#end()"
echo ""
echo "\" Required:"
echo "filetype plugin indent on"
echo "syntax enable"
echo ""
echo "\" If you want to install not installed plugins on startup."
echo "\"if dein#check_install()"
echo "\" call dein#install()"
echo "\"endif"
echo ""
echo "\"End dein Scripts-------------------------"
echo ""
echo ""
}
echo "Done."
echo "Complete setup dein!"

View file

@ -1,19 +1,13 @@
local opts = { noremap = true, silent = true } local opts = { noremap = true, silent = true }
local term_opts = { silent = true } local term_opts = { silent = true }
-- Shorten function name
local keymap = vim.api.nvim_set_keymap local keymap = vim.api.nvim_set_keymap
--vim.lsp.handlers["textDocument/codeAction"] = require'lspactions'.codeaction local builtin = require("telescope.builtin")
--vim.cmd [[ nnoremap <leader>af :lua require'lspactions'.code_action()<CR> ]]
-- space leader
vim.g.mapleader = " "
keymap("n", "<Space>", "<Nop>", { silent = true, noremap = false })
-- keymap('n', '<Space>', '<Nop>', { noremap = true, silent = true }) -- debug
-- keymap('n', '<Space>', '<leader>', { noremap = true, silent = true })
-- keymap("n", "<Space>", "<Leader>", opts)
-- keymap("n", "<M-CR>", ":CodeActionMenu<CR>", opts)
keymap("n", "<C-f>", "<cmd>TroubleToggle<CR>", term_opts)
--keymap("n", "<C-b>", ':lua require("vgit").buffer_stage()<CR>', opts)
keymap("n", "<F5>", ':lua require("dap").toggle_breakpoint()<CR>', opts) keymap("n", "<F5>", ':lua require("dap").toggle_breakpoint()<CR>', opts)
keymap("n", "<F6>", ':lua require("dap").step_over()<CR>', opts) keymap("n", "<F6>", ':lua require("dap").step_over()<CR>', opts)
keymap("n", "<F7>", ':lua require("dap").step_into()<CR>', opts) keymap("n", "<F7>", ':lua require("dap").step_into()<CR>', opts)
@ -21,23 +15,41 @@ keymap("n", "<F8>", ':lua require("dap").continue()<CR> :lua require("dapui").to
keymap("n", "<F9>", ':lua require("dap").continue()<CR>', opts) keymap("n", "<F9>", ':lua require("dap").continue()<CR>', opts)
keymap("n", "<F10>", ':lua require("dap").close()<CR> :lua require("dapui").toggle()<CR>', opts) keymap("n", "<F10>", ':lua require("dap").close()<CR> :lua require("dapui").toggle()<CR>', opts)
-- file tree
keymap("n", "t", ':lua require("nvim-tree").toggle()<CR>', opts) keymap("n", "t", ':lua require("nvim-tree").toggle()<CR>', opts)
keymap("n", "f", ':lua require("nvim-tree").focus()<CR>', opts) keymap("n", "f", ':lua require("nvim-tree").focus()<CR>', opts)
-- tab switching
keymap("n", "<F1>", ":BufferPrev<CR>", opts) keymap("n", "<F1>", ":BufferPrev<CR>", opts)
keymap("n", "<F2>", ":BufferNext<CR>", opts) keymap("n", "<F2>", ":BufferNext<CR>", opts)
-- formatting
keymap("n", "<F4>", ":lua vim.lsp.buf.format { async = true }<CR>", opts) keymap("n", "<F4>", ":lua vim.lsp.buf.format { async = true }<CR>", opts)
local builtin = require("telescope.builtin") -- telescope
vim.keymap.set("n", "ff", builtin.find_files, {}) keymap("n", "ff", ":lua builtin.find_files", {})
vim.keymap.set("n", "fg", builtin.live_grep, {}) keymap("n", "fg", ":lua builtin.live_grep", {})
vim.keymap.set("n", "fb", builtin.buffers, {}) keymap("n", "fb", ":lua builtin.buffers", {})
vim.keymap.set("n", "fh", builtin.help_tags, {}) keymap("n", "fh", ":lua builtin.help_tags", {})
-- trouble
keymap("n", "<C-f>", "<cmd>TroubleToggle<CR>", term_opts)
require("trouble").setup { require("trouble").setup {
action_keys = { action_keys = {
--remove the fucking stupid keymap amk --remove the fucking stupid keymap amk
open_tab = {} open_tab = {}
} }
} }
-- LSP
local on_attach = function(client, bufnr)
vim.api.nvim_buf_set_option(bufnr, "omnifunc", "v:lua.vim.lsp.omnifunc")
local opts = { noremap = true, silent = true, buffer=bufnr }
keymap("n", "<leader>h", "<Cmd>lua vim.lsp.buf.declaration()<CR>", opts)
keymap("n", "<leader>j", "<Cmd>lua vim.lsp.buf.definition()<CR>", opts)
keymap("n", "<leader>k", "<Cmd>lua vim.lsp.buf.implementation()<CR>", opts)
keymap("n", "<leader>l", "<Cmd>lua vim.lsp.buf.references()<CR>", opts)
keymap("n", "<leader>;", "<Cmd>lua vim.lsp.buf.code_action()<CR>", opts)
keymap("n", "<leader>u", "<Cmd>lua vim.lsp.buf.signature_help()<CR>", opts)
keymap("n", "<leader>g", "<Cmd>lua vim.lsp.buf.hover()<CR>", opts)
end

View file

@ -19,39 +19,18 @@ require("mason-lspconfig").setup({
"html", -- html "html", -- html
"clangd", -- cpp / c "clangd", -- cpp / c
"tsserver", -- python "tsserver", -- python
"texlab", -- latex
"sumneko_lua", -- lua "sumneko_lua", -- lua
"pyright", -- python "pyright", -- python
"rust_analyzer", -- rust "rust_analyzer", -- rust
"jdtls", -- jdtls
"cmake", -- cmake "cmake", -- cmake
"bashls", -- shell "bashls", -- shell
"ansiblels", -- ansible "ansiblels", -- ansible
-- "omnisharp", -- dotnot
-- "hls", -- haskel
}, },
automatic_installation = true, automatic_installation = true,
}) })
local capabilities = require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities()) local capabilities = require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities())
local on_attach = function(client, bufnr)
-- Enable completion triggered by <c-x><c-o>
vim.api.nvim_buf_set_option(bufnr, "omnifunc", "v:lua.vim.lsp.omnifunc")
local opts = { noremap = true, silent = true, buffer=bufnr }
vim.keymap.set("n", "<leader>h", "<Cmd>lua vim.lsp.buf.declaration()<CR>", opts)
vim.keymap.set("n", "<leader>j", "<Cmd>lua vim.lsp.buf.definition()<CR>", opts)
vim.keymap.set("n", "<leader>k", "<Cmd>lua vim.lsp.buf.implementation()<CR>", opts)
vim.keymap.set("n", "<leader>l", "<Cmd>lua vim.lsp.buf.references()<CR>", opts)
vim.keymap.set("n", "<leader>;", "<Cmd>lua vim.lsp.buf.code_action()<CR>", opts)
vim.keymap.set("n", "<leader>u", "<Cmd>lua vim.lsp.buf.signature_help()<CR>", opts)
vim.keymap.set("n", "<leader>g", "<Cmd>lua vim.lsp.buf.hover()<CR>", opts)
end
require("mason-lspconfig").setup_handlers({ require("mason-lspconfig").setup_handlers({
function(server_name) -- default handler (optional) function(server_name) -- default handler (optional)
require("lspconfig")[server_name].setup({ require("lspconfig")[server_name].setup({

View file

@ -3,8 +3,8 @@ local options = {
mouse = "n", mouse = "n",
fileencoding = "utf-8", fileencoding = "utf-8",
relativenumber = true, relativenumber = true,
cursorline = false, cursorline = false,
number = true, number = true,
smartindent = true, smartindent = true,
smartcase = true, smartcase = true,
showmode = true, showmode = true,
@ -20,15 +20,12 @@ local options = {
tabstop = 2, -- insert 2 spaces for a tab tabstop = 2, -- insert 2 spaces for a tab
scrolloff = 8, -- is one of my fav scrolloff = 8, -- is one of my fav
sidescrolloff = 8, sidescrolloff = 8,
spell = false, spell = true,
syntax = "off", syntax = "off",
spelllang = "en_us", spelllang = "en_us",
mousemodel = "popup_setpos", mousemodel = "popup_setpos",
} }
vim.keymap.set("n", "<Space>", "<Nop>", { silent = true, remap = false })
vim.g.mapleader = " "
--vim.opt.shortmess:append "c" --vim.opt.shortmess:append "c"
for k, v in pairs(options) do for k, v in pairs(options) do

View file

@ -17,6 +17,32 @@ local file_pattern = "*.tex"
------------------------------------------------- boilerplate end ------------------------------------------------- boilerplate end
-- snippers go here: -- snippers go here:
local formSnippet = s(
"form-",
fmt(
[[
\, \newline
\large \textcolor{{purple}}{{\( {1} \)}}\newline
\, \newline
\normalsize Legend: \newline
\begin{{itemize}}
\item {2}
\item {3}
\item {4}
\item {5}
\end{{itemize}}
]],
{
i(1, "formula"),
i(2, "item 1"),
i(3, "item 2"),
i(4, "item 3"),
i(5, "item 4"),
}
)
)
table.insert(snippets, formSnippet)
local listSnippet = s( local listSnippet = s(
"list-", "list-",
fmt( fmt(
@ -140,12 +166,14 @@ local minipgSnippet = s(
[[ [[
\minipg{{ \minipg{{
{1} {1}
}}{{{2}}}[{3}] }}{{
{2}
}}[{3}]
]], ]],
{ {
i(1, "data..."), i(1, "data..."),
rep(1), i(2, "data..."),
i(2, "0.4,0.4"), i(3, "0.25,0.25"),
} }
) )
) )

View file

@ -3,7 +3,7 @@ color_scheme_path=/usr/share/qt5ct/colors/darker.conf
custom_palette=true custom_palette=true
icon_theme=Adwaita icon_theme=Adwaita
standard_dialogs=default standard_dialogs=default
style=Adwaita-Dark style=Fusion
[Fonts] [Fonts]
fixed=@Variant(\0\0\0@\0\0\0\x12\0N\0o\0t\0o\0 \0S\0\x61\0n\0s@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10) fixed=@Variant(\0\0\0@\0\0\0\x12\0N\0o\0t\0o\0 \0S\0\x61\0n\0s@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
@ -13,9 +13,9 @@ general=@Variant(\0\0\0@\0\0\0\x12\0N\0o\0t\0o\0 \0S\0\x61\0n\0s@(\0\0\0\0\0\0\x
activate_item_on_single_click=1 activate_item_on_single_click=1
buttonbox_layout=3 buttonbox_layout=3
cursor_flash_time=1000 cursor_flash_time=1000
dialog_buttons_have_icons=1 dialog_buttons_have_icons=0
double_click_interval=400 double_click_interval=400
gui_effects=General, AnimateMenu, AnimateCombo, AnimateTooltip, AnimateToolBox gui_effects=@Invalid()
keyboard_scheme=4 keyboard_scheme=4
menus_have_icons=true menus_have_icons=true
show_shortcuts_in_context_menus=true show_shortcuts_in_context_menus=true
@ -25,7 +25,7 @@ underline_shortcut=1
wheel_scroll_lines=3 wheel_scroll_lines=3
[SettingsWindow] [SettingsWindow]
geometry="@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x14\0\0\a[\0\0\x4\t\0\0\0\0\0\0\0\x14\0\0\x5;\0\0\x4\xa6\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\x14\0\0\a[\0\0\x4\t)" geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\x14\0\0\x3K\0\0\x2\xbc\0\0\0\0\0\0\0\x14\0\0\x3K\0\0\x2\xc1\0\0\0\x2\x2\0\0\0\n\0\0\0\0\0\0\0\0\x14\0\0\x3K\0\0\x2\xbc)
[Troubleshooting] [Troubleshooting]
force_raster_widgets=1 force_raster_widgets=1

32
qt6ct/qt6ct.conf Normal file
View file

@ -0,0 +1,32 @@
[Appearance]
color_scheme_path=/usr/share/qt6ct/colors/darker.conf
custom_palette=true
icon_theme=Adwaita
standard_dialogs=default
style=Adwaita-Dark
[Fonts]
fixed=@Variant(\0\0\0@\0\0\0\x12\0N\0o\0t\0o\0 \0S\0\x61\0n\0s@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
general=@Variant(\0\0\0@\0\0\0\x12\0N\0o\0t\0o\0 \0S\0\x61\0n\0s@(\0\0\0\0\0\0\xff\xff\xff\xff\x5\x1\0\x32\x10)
[Interface]
activate_item_on_single_click=1
buttonbox_layout=3
cursor_flash_time=1000
dialog_buttons_have_icons=1
double_click_interval=400
gui_effects=General, AnimateMenu, AnimateCombo, AnimateTooltip, AnimateToolBox
keyboard_scheme=4
menus_have_icons=true
show_shortcuts_in_context_menus=true
stylesheets=@Invalid()
toolbutton_style=4
underline_shortcut=1
wheel_scroll_lines=3
[SettingsWindow]
geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\0\0\0\0\0\0\0\0\0\0\x4\xea\0\0\x3\xbe\0\0\0\0\0\0\0\0\0\0\x4\xea\0\0\x3\xbe\0\0\0\x2\0\0\0\0\n\0\0\0\0\0\0\0\0\0\0\0\x4\xea\0\0\x3\xbe)
[Troubleshooting]
force_raster_widgets=1
ignored_applications=@Invalid()

View file

@ -1,18 +1,19 @@
window { window {
margin: 5px; margin: 0px;
background-color: #0f0f17; background-color: #0f0f17;
border-radius: 10px; border-radius: 10px;
opacity: 0.95;
} }
#inner-box { #inner-box {
margin: 5px;
background-color: #0f0f17; background-color: #0f0f17;
margin: 5px;
border: none;
border-radius: 10px; border-radius: 10px;
} }
#outer-box { #outer-box {
margin: 5px;
background-color: #0f0f17; background-color: #0f0f17;
margin: 5px;
border: none;
border-radius: 10px; border-radius: 10px;
} }