Compare commits
No commits in common. "ef1339289b8a316485236b339725740fd6755df3" and "99b373f6c49bdc8a7ccc0d3445b19e9087fba34e" have entirely different histories.
ef1339289b
...
99b373f6c4
54 changed files with 1344 additions and 1184 deletions
32
README.md
32
README.md
|
@ -13,7 +13,7 @@
|
|||
/____/
|
||||
```
|
||||
|
||||
This repository contains most of my Linux configuration files.
|
||||
This repository contains most of my Linux dotfiles (or the ones I reuse most, anyway).
|
||||
|
||||
---
|
||||
|
||||
|
@ -26,7 +26,7 @@ This repository contains most of my Linux configuration files.
|
|||
/____/ /_/
|
||||
```
|
||||
### `i3_config`
|
||||
I use [i3-gaps](https://github.com/airblader/i3) exclusively. My setup is minimal and focus-oriented.
|
||||
I use [i3-gaps](https://github.com/airblader/i3) pretty much exclusively. There's not a lot special about my i3 setup, but I've got the borders nicely colored, my tabbed/stacked titlebars are blank, and it's meant to be used with Picom.
|
||||
|
||||
---
|
||||
|
||||
|
@ -39,7 +39,7 @@ I use [i3-gaps](https://github.com/airblader/i3) exclusively. My setup is minima
|
|||
/_/
|
||||
```
|
||||
### `picom.conf`
|
||||
I use [ibhagwan's picom fork](https://github.com/ibhagwan/picom), since it gives me the fewest artifacts on the GLX backend (and has dual-kawase). I use a softer dual-kawase and a lot of transparency.
|
||||
I use [ibhagwan's picom fork](https://github.com/ibhagwan/picom), since it gives me the fewest artifacts (and has dual-kawase). I use a softer dual-kawase and a *lot* of transparency.
|
||||
|
||||
---
|
||||
|
||||
|
@ -52,7 +52,21 @@ I use [ibhagwan's picom fork](https://github.com/ibhagwan/picom), since it gives
|
|||
/_/
|
||||
```
|
||||
### `starship.toml`
|
||||
I use [Starship](https://starship.rs) for my shell prompt. Most of the configuration is getting rid of emojis in code directories.
|
||||
I use [Starship](https://starship.rs) for my shell prompt. I don't like emoji, though, so I've configured it to use mostly plain text.
|
||||
|
||||
---
|
||||
|
||||
```plaintext
|
||||
__ __
|
||||
____ ____ / /_ __/ /_ ____ ______
|
||||
/ __ \/ __ \/ / / / / __ \/ __ `/ ___/
|
||||
/ /_/ / /_/ / / /_/ / /_/ / /_/ / /
|
||||
/ .___/\____/_/\__, /_.___/\__,_/_/
|
||||
/_/ /____/
|
||||
```
|
||||
### `polybar_config`
|
||||
|
||||
I use [Polybar](https://github.com/polybar/polybar) for my status bar. My setup is heavily inspired by MacOS's status bar, but without the menu bar.
|
||||
|
||||
---
|
||||
|
||||
|
@ -64,9 +78,10 @@ I use [Starship](https://starship.rs) for my shell prompt. Most of the configura
|
|||
\___/|__/|__/ |__/|__/
|
||||
|
||||
```
|
||||
|
||||
### `eww/`
|
||||
|
||||
I use [EWW](https://github.com/elkowar/eww) for my menu bar and an info widget for when I have a fullscreen application open.
|
||||
I use [eww](https://github.com/elkowar/eww) for widgets. I mostly use this for time in games or other fullscreen apps, or for some system controls.
|
||||
|
||||
---
|
||||
|
||||
|
@ -81,7 +96,7 @@ I use [EWW](https://github.com/elkowar/eww) for my menu bar and an info widget f
|
|||
|
||||
### `wezterm_config`
|
||||
|
||||
I use [wezterm](https://wezfurlong.org/wezterm/) as my terminal emulator. It's feature-rich, written in Rust, and highly configurable.
|
||||
I use [wezterm](https://wezfurlong.org/wezterm/) as my terminal emulator. It's feature-rich, written in Rust, and is super customizable.
|
||||
|
||||
---
|
||||
|
||||
|
@ -96,7 +111,7 @@ I use [wezterm](https://wezfurlong.org/wezterm/) as my terminal emulator. It's f
|
|||
|
||||
### `Xresources`
|
||||
|
||||
I use [urxvt](http://software.schmorp.de/pkg/rxvt-unicode.html) if something breaks really badly.
|
||||
I use [urxvt](http://software.schmorp.de/pkg/rxvt-unicode.html) on occasion.
|
||||
|
||||
---
|
||||
|
||||
|
@ -109,5 +124,4 @@ I use [urxvt](http://software.schmorp.de/pkg/rxvt-unicode.html) if something bre
|
|||
|
||||
```
|
||||
|
||||
I use [Discord](https://discord.com) with [DiscoCSS](https://github.com/mlvzk/discocss) for custom styling. My current theme is all dark blacks and blue for mentions instead of yellow.
|
||||
|
||||
I use [Discord](https://discord.com) with [DiscoCSS](https://github.com/mlvzk/discocss) for custom styling, with a frosted glass styling with the default colors.
|
||||
|
|
|
@ -50,7 +50,7 @@ URxvt.italicFont: xft:Iosevka Term:style=Italic:size=14
|
|||
URxvt.boldItalicFont: xft:Iosevka Term:style=Bold Italic:size=14
|
||||
|
||||
URxvt.intensityStyles: true
|
||||
URxvt.geometry: 90x26
|
||||
URxvt.geometry: 90x24
|
||||
URxvt.cursorBlink: true
|
||||
URxvt.scrollBar: false
|
||||
URxvt.scrollBar_right: false
|
||||
|
|
12
bashrc
12
bashrc
|
@ -8,24 +8,14 @@
|
|||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
alias hx='helix'
|
||||
alias imgcat="wezterm imgcat --height 50%"
|
||||
alias ls='ls --color=auto'
|
||||
alias lsd="lsd -l"
|
||||
alias motd="rust-motd"
|
||||
|
||||
export EDITOR=helix
|
||||
|
||||
export BAT_CONFIG_PATH="$HOME/.config/bat.conf"
|
||||
export EDITOR=vim
|
||||
|
||||
eval "$(starship init bash)"
|
||||
eval "$(thefuck --alias)"
|
||||
|
||||
source /usr/lib/goto/goto.sh
|
||||
source /usr/lib/codecat/codecat.sh
|
||||
|
||||
export PS1="$(starship prompt)"
|
||||
if [[ $SHLVL -le 3 ]]; then
|
||||
motd
|
||||
fi
|
||||
|
||||
|
|
5
bat.conf
5
bat.conf
|
@ -1,5 +0,0 @@
|
|||
|
||||
# Appearance
|
||||
--theme="TwoDark"
|
||||
--style="numbers"
|
||||
--wrap=never
|
|
@ -1,30 +0,0 @@
|
|||
code, code.inline, span[class^='codeLine*'] {
|
||||
font-family: Fira Code;
|
||||
background: #232323AA;
|
||||
}
|
||||
|
||||
pre > code {
|
||||
background: #292B2FD7 !important;
|
||||
}
|
||||
|
||||
.theme-dark {
|
||||
--background-primary: #0B0B0B;
|
||||
--background-secondary: #080808;
|
||||
--background-secondary-alt: #121212;
|
||||
--background-tertiary: #121212;
|
||||
--background-accent: #5454fc44;
|
||||
|
||||
--background-mentioned: #5764EB45; /*5764EB45*/
|
||||
--background-mentioned-hover: #5764EB12;
|
||||
--info-warning-foreground: #5764EBd5;
|
||||
|
||||
--background-message-hover: #1C1B2222;
|
||||
--channeltextarea-background: #2F343C; /*5E666833*/
|
||||
|
||||
--scrollbar-auto-thumb: #505460;
|
||||
}
|
||||
|
||||
:root {
|
||||
--font-code: "Fira Code";
|
||||
}
|
||||
|
BIN
eww/bin/i3-ws
BIN
eww/bin/i3-ws
Binary file not shown.
|
@ -1,24 +0,0 @@
|
|||
#!/usr/bin/python
|
||||
from i3ipc import Connection, Event
|
||||
|
||||
i3 = Connection()
|
||||
|
||||
base = '(box :class "workspace" :orientation "h" :spacing 8 :space-evenly false'
|
||||
|
||||
def get_workspaces(_0, _1):
|
||||
response = i3.get_workspaces()
|
||||
output = base
|
||||
for ws in response:
|
||||
classes = "ws-btn"
|
||||
scale = ""
|
||||
if(ws.focused):
|
||||
scale = '(scale :class "wsbar" :max 100 :min 100)'
|
||||
if(ws.urgent):
|
||||
classes += " urgent"
|
||||
element = f'(box :orientation "v" :space-evenly false (button :vexpand true :class "{classes}" :onclick "i3-msg workspace {ws.num}" "{ws.num}"){scale})'
|
||||
output += f' {element}'
|
||||
print(f"{output})")
|
||||
|
||||
get_workspaces(None, None)
|
||||
i3.on(Event.WORKSPACE_FOCUS, get_workspaces)
|
||||
i3.main()
|
|
@ -1,38 +0,0 @@
|
|||
;; ______ __ __
|
||||
;; / ____/___ _/ /__ ____ ____/ /___ ______
|
||||
;; / / / __ `/ / _ \/ __ \/ __ / __ `/ ___/
|
||||
;; / /___/ /_/ / / __/ / / / /_/ / /_/ / /
|
||||
;; \____/\__,_/_/\___/_/ /_/\__,_/\__,_/_/
|
||||
;;
|
||||
(defpoll calendar_day
|
||||
:interval "2m"
|
||||
"date '+%d'"
|
||||
)
|
||||
(defpoll calendar_year
|
||||
:interval "2m"
|
||||
"date '+%Y'"
|
||||
)
|
||||
|
||||
(defwidget cal []
|
||||
(box
|
||||
:class "cal-bg"
|
||||
:orientation "v"
|
||||
(calendar
|
||||
:class "calendar"
|
||||
:day calendar_day
|
||||
:year calendar_year
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwindow calendar
|
||||
:geometry (geometry
|
||||
:x "-8px"
|
||||
:y "40px"
|
||||
:anchor "top right"
|
||||
:width "270px"
|
||||
:height "60px"
|
||||
)
|
||||
:windowtype "normal"
|
||||
(cal)
|
||||
)
|
90
eww/clock.yuck
Normal file
90
eww/clock.yuck
Normal file
|
@ -0,0 +1,90 @@
|
|||
;; ________ __
|
||||
;; / ____/ /___ _____/ /__
|
||||
;; / / / / __ \/ ___/ //_/
|
||||
;;/ /___/ / /_/ / /__/ ,<
|
||||
;;\____/_/\____/\___/_/|_|
|
||||
;;
|
||||
|
||||
;; Variables
|
||||
(defpoll
|
||||
HOUR
|
||||
:interval "1m"
|
||||
"date +\"%I\""
|
||||
)
|
||||
(defpoll
|
||||
MINUTE
|
||||
:interval "1s"
|
||||
"date +\"%M\""
|
||||
)
|
||||
(defpoll
|
||||
MERIDIEM
|
||||
:interval "1m"
|
||||
"date +\"%p\""
|
||||
)
|
||||
(defpoll
|
||||
DAY
|
||||
:interval "2m"
|
||||
"date +\"%a\""
|
||||
)
|
||||
|
||||
;; Widgets
|
||||
(defwidget
|
||||
clock []
|
||||
(box
|
||||
:class "genwin"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:vexpand false
|
||||
:hexpand false
|
||||
:cursor "default"
|
||||
(label
|
||||
:class "time_hour"
|
||||
:valign "start"
|
||||
:wrap true
|
||||
:limit-width 25
|
||||
:text "${HOUR}"
|
||||
)
|
||||
(label
|
||||
:class "time_min"
|
||||
:valign "end"
|
||||
:wrap true
|
||||
:limit-width 25
|
||||
:text "${MINUTE}"
|
||||
)
|
||||
(box
|
||||
:orientation "v"
|
||||
:spacing 25
|
||||
:space-evenly false
|
||||
:vexpand false
|
||||
:hexpand false
|
||||
(label
|
||||
:class "time_meridiem"
|
||||
:halign "end"
|
||||
:wrap true
|
||||
:limit-width 25
|
||||
:text "${MERIDIEM}"
|
||||
)
|
||||
(label
|
||||
:class "time_day"
|
||||
:halign "end"
|
||||
:wrap true
|
||||
:limit-width 25
|
||||
:text "${DAY}"
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
;; Windows
|
||||
(defwindow
|
||||
clock
|
||||
:stacking "fg"
|
||||
:focusable false
|
||||
:geometry (geometry
|
||||
:x 515
|
||||
:y 150
|
||||
:width 350
|
||||
:height 155
|
||||
)
|
||||
(clock)
|
||||
)
|
119
eww/cluster.yuck
Normal file
119
eww/cluster.yuck
Normal file
|
@ -0,0 +1,119 @@
|
|||
;; ________ __
|
||||
;; / ____/ /_ _______/ /____ _____
|
||||
;; / / / / / / / ___/ __/ _ \/ ___/
|
||||
;;/ /___/ / /_/ (__ ) /_/ __/ /
|
||||
;;\____/_/\__,_/____/\__/\___/_/
|
||||
;; The collection of action buttons
|
||||
;; on the right side of the screen.
|
||||
|
||||
;; Widgets
|
||||
(defwidget
|
||||
logout []
|
||||
(box
|
||||
:class "genwin"
|
||||
:vexpand false
|
||||
:hexpand false
|
||||
(button
|
||||
:class "icon"
|
||||
:onclick "i3-msg exit"
|
||||
:cursor "pointer"
|
||||
:tooltip "logout"
|
||||
""
|
||||
)
|
||||
)
|
||||
)
|
||||
(defwidget
|
||||
power []
|
||||
(box
|
||||
:class "genwin"
|
||||
:vexpand false
|
||||
:hexpand false
|
||||
(button
|
||||
:class "icon"
|
||||
:onclick "poweroff"
|
||||
:cursor "pointer"
|
||||
:tooltip "shutdown"
|
||||
"⏼"
|
||||
)
|
||||
)
|
||||
)
|
||||
(defwidget
|
||||
reboot []
|
||||
(box
|
||||
:class "genwin"
|
||||
:vexpand false
|
||||
:hexpand false
|
||||
(button
|
||||
:class "icon"
|
||||
:onclick "reboot"
|
||||
:cursor "pointer"
|
||||
:tooltip "shutdown"
|
||||
""
|
||||
)
|
||||
)
|
||||
)
|
||||
(defwidget
|
||||
terminal []
|
||||
(box
|
||||
:class "genwin"
|
||||
:vexpand false
|
||||
:hexpand false
|
||||
(button
|
||||
:class "icon"
|
||||
:onclick "i3-msg scratchpad show & /home/val/.config/eww/launch_eww"
|
||||
:cursor "pointer"
|
||||
:tooltip "terminal"
|
||||
""
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
;; Windows
|
||||
(defwindow
|
||||
logout
|
||||
:stacking "fg"
|
||||
:focusable false
|
||||
:geometry (geometry
|
||||
:x 1445
|
||||
:y 150
|
||||
:width 155
|
||||
:height 155
|
||||
)
|
||||
(logout)
|
||||
)
|
||||
(defwindow
|
||||
power
|
||||
:stacking "fg"
|
||||
:focusable false
|
||||
:geometry (geometry
|
||||
:x 1615
|
||||
:y 150
|
||||
:width 155
|
||||
:height 155
|
||||
)
|
||||
(power)
|
||||
)
|
||||
(defwindow
|
||||
reboot
|
||||
:stacking "fg"
|
||||
:focusable false
|
||||
:geometry (geometry
|
||||
:x 1445
|
||||
:y 320
|
||||
:width 155
|
||||
:height 155
|
||||
)
|
||||
(reboot)
|
||||
)
|
||||
(defwindow
|
||||
terminal
|
||||
:stacking "fg"
|
||||
:focusable false
|
||||
:geometry (geometry
|
||||
:x 1615
|
||||
:y 320
|
||||
:width 155
|
||||
:height 155
|
||||
)
|
||||
(terminal)
|
||||
)
|
188
eww/eww.scss
188
eww/eww.scss
|
@ -1,124 +1,130 @@
|
|||
/* Global */
|
||||
* {
|
||||
all: unset;
|
||||
font-family: "Helvetica Neue", sans-serif;
|
||||
font-family: sans-serif;
|
||||
font-family: Helvetica Neue;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.bar {
|
||||
background-color: rgba(0, 0, 0, 0.53);
|
||||
padding-left: 8px;
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
.module {
|
||||
margin: 0px 4px;
|
||||
}
|
||||
|
||||
.workspace {
|
||||
margin-left: 12px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.ws-btn {
|
||||
padding: 0px 3px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.focused {
|
||||
border-bottom: 2px solid white;
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
.urgent {
|
||||
border-bottom: 2px solid #ffaa00;
|
||||
margin-bottom: 0px;
|
||||
color: #ffaa00;
|
||||
}
|
||||
|
||||
.ws scale trough highlight {
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.icon {
|
||||
font-family: "FiraCode Nerd Font", monospace;
|
||||
font-family: monospace;
|
||||
font-family: FiraCode Nerd Font;
|
||||
font-weight: normal;
|
||||
font-size: 16px;
|
||||
margin: 0 2px;
|
||||
}
|
||||
.big {
|
||||
font-size: 20px;
|
||||
}
|
||||
.xl {
|
||||
font-size: 24px;
|
||||
}
|
||||
.small {
|
||||
font-size: 12px;
|
||||
}
|
||||
.md {
|
||||
font-size: 14px;
|
||||
}
|
||||
.icon-sm, .icon-sm label {
|
||||
font-family: "FiraCode Nerd Font", monospace;
|
||||
font-weight: normal;
|
||||
font-size: 12px;
|
||||
font-size: 90px;
|
||||
}
|
||||
|
||||
.bg {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
border: 1px solid #5e6668;
|
||||
//background-image: url("~/.background/Mojave-Night.jpg");
|
||||
background-color: #000;//#161d2f;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.sidebar-sub {
|
||||
margin-top: 8px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 2px solid white;
|
||||
}
|
||||
.sidebar-sub:last-child {
|
||||
border-bottom: none;
|
||||
.x {
|
||||
font-size: 48px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.genwin {
|
||||
border-radius: 16px;
|
||||
background-color: #161d2f;
|
||||
border: 5px solid #fff;
|
||||
}
|
||||
|
||||
/* Profile Settings */
|
||||
.face {
|
||||
background-size: 96px;
|
||||
min-height: 96px;
|
||||
min-width: 96px;
|
||||
margin-top: 4px;
|
||||
margin-left: 80px;
|
||||
margin-right: 80px;
|
||||
background-size: 200px;
|
||||
min-height: 200px;
|
||||
min-width: 200px;
|
||||
margin: 65px 0px 0px 0px;
|
||||
border-radius: 100%;
|
||||
border: 4px solid #fff;
|
||||
border: 5px solid #fff;
|
||||
background-image: url("file:////home/val/.face.icon");
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
//.face:hover {
|
||||
// border-radius: 25%;
|
||||
//}
|
||||
|
||||
.login {
|
||||
font-family: "FiraCode Nerd Font", monospace;
|
||||
font-family: monospace;
|
||||
font-family: FiraCode Nerd Font;
|
||||
font-weight: bold;
|
||||
font-size: 28px;
|
||||
border-radius: 5px;
|
||||
font-size: 30px;
|
||||
color: #fff;
|
||||
/* background-color: #3d4558;*/
|
||||
background-color: #303030;
|
||||
padding: 1px 0.5em;
|
||||
border: 1px solid white;
|
||||
background-color: #3d4558;
|
||||
border-radius: 5px;
|
||||
padding-left: 0.5em;
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
|
||||
.time-top {
|
||||
/* System Settings */
|
||||
.cpu_bar, .ram_bar, scale trough {
|
||||
all: unset;
|
||||
background-color: #3d4558;
|
||||
border-radius: 16px;
|
||||
min-height: 28px;
|
||||
min-width: 240px;
|
||||
}
|
||||
|
||||
.cpu_bar label, .ram_bar label, .disk_bar label {
|
||||
font-family: monospace;
|
||||
font-size: 32px;
|
||||
}
|
||||
.cpu_bar .icon, .ram_bar .icon, .disk_bar .icon {
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
.cpu_bar, .ram_bar, .disk_bar, scale trough highlight {
|
||||
all: unset;
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
||||
.cpu_bar scale trough highlight {
|
||||
background-color: #A04A19;//#5A2123;
|
||||
}
|
||||
|
||||
.ram_bar scale trough highlight {
|
||||
background-color: #A04A19;
|
||||
}
|
||||
|
||||
/* Clock Settings */
|
||||
.time_hour, .time_min {
|
||||
color: #ffffff;
|
||||
font-size: 70px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.time-bottom {
|
||||
font-family: monospace;
|
||||
font-size: 20px;
|
||||
font-variant: small-caps;
|
||||
|
||||
.time_hour {
|
||||
margin: 20px 0px 0px 25px;
|
||||
}
|
||||
|
||||
.sys-info label {
|
||||
font-family: "FiraCode Nerd Font", monospace;
|
||||
}
|
||||
.sys-info:first-child {
|
||||
border-right: 2px solid white;
|
||||
.time_min {
|
||||
margin: 0px 0px 10px 0px;
|
||||
}
|
||||
|
||||
.cal-bg {
|
||||
background-color: rgba(24, 24, 24, 0.2);
|
||||
.time_meridiem {
|
||||
color: #ffffff;
|
||||
font-size: 40px;
|
||||
font-weight: bold;
|
||||
margin: 20px 0px 0px 0px;
|
||||
}
|
||||
|
||||
.time_day {
|
||||
color: #ffffff;
|
||||
font-size: 30px;
|
||||
font-weight: normal;
|
||||
margin: 0px 0px 0px 25px;
|
||||
}
|
||||
|
||||
/* Spotify Settings */
|
||||
.album_art {
|
||||
background-size: 240px;
|
||||
min-height: 240px;
|
||||
min-height: 240px;
|
||||
margin: 20px;
|
||||
border-radius: 14px;
|
||||
}
|
||||
|
||||
.wmbar {
|
||||
background-color: rgba(0, 0, 0, 0.53);
|
||||
border-radius: 16px;
|
||||
}
|
||||
|
|
239
eww/eww.yuck
239
eww/eww.yuck
|
@ -1,201 +1,60 @@
|
|||
;; ______ Valerie' Amazing ____
|
||||
;; / ____/ ___ __ / __ )____ ______
|
||||
;; / __/ | | /| / / | /| / / / __ / __ `/ ___/
|
||||
;; / /___ | |/ |/ /| |/ |/ / / /_/ / /_/ / /
|
||||
;;/_____/ |__/|__/ |__/|__/ /_____/\__,_/_/
|
||||
;;
|
||||
;; ______Valerie's Super ______ Amazing _____
|
||||
;; / ____/ ___ __ / ____/___ ____ / __(_)___ _
|
||||
;; / __/ | | /| / / | /| / / / / / __ \/ __ \/ /_/ / __ `/
|
||||
;; / /___ | |/ |/ /| |/ |/ / / /___/ /_/ / / / / __/ / /_/ /
|
||||
;;/_____/ |__/|__/ |__/|__/ \____/\____/_/ /_/_/ /_/\__, /
|
||||
;; /____/
|
||||
|
||||
(include "./sidebar.yuck")
|
||||
(include "./calendar.yuck")
|
||||
;; Includes
|
||||
(include "./clock.yuck")
|
||||
(include "./cluster.yuck")
|
||||
(include "./profile.yuck")
|
||||
(include "./system.yuck")
|
||||
(include "./wm.yuck")
|
||||
|
||||
;; Variables
|
||||
(defvar sidebar_rev false)
|
||||
(defvar WM_MODE "default")
|
||||
|
||||
(defpoll DATETIME
|
||||
:interval "2s"
|
||||
"date +\"%a %b %d %I:%M %p\""
|
||||
)
|
||||
(defpoll REDSHIFT
|
||||
:interval "2m"
|
||||
"/home/val/.config/eww/scripts/redshift.sh"
|
||||
)
|
||||
(defpoll KEYBOARD
|
||||
:interval "20ms"
|
||||
"/home/val/.config/eww/scripts/kb.sh"
|
||||
)
|
||||
(defpoll LAN
|
||||
:interval "2s"
|
||||
"/home/val/.config/eww/scripts/lan.sh"
|
||||
)
|
||||
(defpoll SCREENSAVER
|
||||
:interval "3s"
|
||||
"/home/val/.config/eww/scripts/screensaver.sh"
|
||||
)
|
||||
;;(defpoll PLAYING
|
||||
;; :interval "50ms"
|
||||
;; "playerctl status"
|
||||
;;)
|
||||
|
||||
(deflisten i3-workspace "/home/val/.config/eww/bin/i3-ws")
|
||||
|
||||
;; Left Section
|
||||
(defwidget distro []
|
||||
;; Widgets
|
||||
(defwidget
|
||||
bg []
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "start"
|
||||
(button
|
||||
:class "icon md"
|
||||
:onclick "exec ~/.script/sysmenu.py system &"
|
||||
""
|
||||
)
|
||||
:class "bg"
|
||||
:cursor "default"
|
||||
:onclick "~/.config/eww/launch_eww"
|
||||
)
|
||||
)
|
||||
(defwidget workspace []
|
||||
(box
|
||||
:space-evenly false
|
||||
(revealer
|
||||
:reveal { WM_MODE != "default" }
|
||||
:transition "slideleft"
|
||||
(label
|
||||
:text WM_MODE
|
||||
:style "margin-left: 8px;"
|
||||
)
|
||||
)
|
||||
(literal :content i3-workspace)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget left []
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:halign "start"
|
||||
:class "left_modules"
|
||||
(distro)
|
||||
(workspace)
|
||||
)
|
||||
)
|
||||
|
||||
;; Right Section
|
||||
(defwidget keyboard []
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly false
|
||||
:orientation "h"
|
||||
:spacing "3"
|
||||
(revealer
|
||||
:reveal {KEYBOARD != ""}
|
||||
:transition "slideleft"
|
||||
:duration "350ms"
|
||||
(button
|
||||
:class "icon big"
|
||||
KEYBOARD
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(defwidget screensaver []
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly false
|
||||
:orientation "h"
|
||||
:spacing "3"
|
||||
(button
|
||||
:class "icon"
|
||||
:onclick "~/.config/eww/scripts/toggle_screensaver.sh"
|
||||
SCREENSAVER
|
||||
)
|
||||
)
|
||||
)
|
||||
(defwidget redshift []
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly false
|
||||
:orientation "h"
|
||||
:spacing "3"
|
||||
(button
|
||||
:class "icon"
|
||||
:onclick "exec ~/.script/sysmenu.py redshift &"
|
||||
REDSHIFT
|
||||
)
|
||||
)
|
||||
)
|
||||
(defwidget wifi []
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly false
|
||||
:orientation "h"
|
||||
:spacing "3"
|
||||
(button
|
||||
:class "icon"
|
||||
:onclick "exec ~/.script/sysmenu.py lan &"
|
||||
LAN
|
||||
)
|
||||
)
|
||||
)
|
||||
(defwidget sidebar_toggle []
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly false
|
||||
:orientation "h"
|
||||
:spacing "3"
|
||||
(button
|
||||
:class "icon"
|
||||
:onclick "/home/val/.config/eww/scripts/toggle_sidebar.sh"
|
||||
{sidebar_rev ? "" : ""}
|
||||
)
|
||||
)
|
||||
)
|
||||
(defwidget datetime []
|
||||
(box
|
||||
:class "module"
|
||||
:space-evenly false
|
||||
:orientation "h"
|
||||
:spacing 5
|
||||
(button
|
||||
:onclick "/home/val/.config/eww/scripts/toggle_calendar.sh"
|
||||
DATETIME
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget right []
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:spacing 5
|
||||
:halign "end"
|
||||
:class "right_modules"
|
||||
(keyboard)
|
||||
(screensaver)
|
||||
(redshift)
|
||||
(wifi)
|
||||
(sidebar_toggle)
|
||||
(datetime)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget bar []
|
||||
(box
|
||||
:class "bar"
|
||||
:orientation "h"
|
||||
(left)
|
||||
(right)
|
||||
(defwidget
|
||||
x []
|
||||
(button
|
||||
:class "x"
|
||||
:cursor "pointer"
|
||||
:onclick "~/.config/eww/launch_eww"
|
||||
:tooltip "close"
|
||||
:text ""
|
||||
)
|
||||
)
|
||||
|
||||
;; Windows
|
||||
(defwindow bar
|
||||
:geometry (geometry
|
||||
:x "0px"
|
||||
:y "0px"
|
||||
:width "100%"
|
||||
:height "24px"
|
||||
:anchor "top center"
|
||||
)
|
||||
(defwindow
|
||||
background
|
||||
:stacking "fg"
|
||||
:windowtype "dock"
|
||||
(bar)
|
||||
:focusable true
|
||||
:wm-ignore true
|
||||
:geometry (geometry
|
||||
:x 0
|
||||
:y 0
|
||||
;; 24
|
||||
:width "1920px"
|
||||
:height "1080px"
|
||||
;; 1056px
|
||||
)
|
||||
(bg)
|
||||
)
|
||||
(defwindow
|
||||
x
|
||||
:stacking "fg"
|
||||
:focusable false
|
||||
:geometry (geometry
|
||||
:x 12
|
||||
:y 12
|
||||
)
|
||||
(x)
|
||||
)
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
eww open bar
|
||||
|
8
eww/launch_eww
Executable file
8
eww/launch_eww
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
if eww state | grep -q "USERNAME: val"
|
||||
then
|
||||
eww close-all
|
||||
else
|
||||
eww open-many background profile system clock logout power reboot terminal
|
||||
fi
|
59
eww/profile.yuck
Normal file
59
eww/profile.yuck
Normal file
|
@ -0,0 +1,59 @@
|
|||
;; ____ _____ __
|
||||
;; / __ \_________ / __(_) /__
|
||||
;; / /_/ / ___/ __ \/ /_/ / / _ \
|
||||
;; / ____/ / / /_/ / __/ / / __/
|
||||
;;/_/ /_/ \____/_/ /_/_/\___/
|
||||
;;
|
||||
|
||||
;; Variables
|
||||
|
||||
(defpoll
|
||||
HOSTNAME
|
||||
:interval "24h"
|
||||
"hostname"
|
||||
)
|
||||
(defpoll
|
||||
USERNAME
|
||||
:interval "24h"
|
||||
"whoami"
|
||||
)
|
||||
|
||||
;; Widget
|
||||
|
||||
(defwidget
|
||||
user []
|
||||
(box
|
||||
:class "genwin"
|
||||
:orientation "v"
|
||||
:spacing 35
|
||||
:space-evenly false
|
||||
:vexpand false
|
||||
:hexpand false
|
||||
(box
|
||||
:class "face"
|
||||
:halign "center"
|
||||
)
|
||||
(label
|
||||
:class "login"
|
||||
:halign "center"
|
||||
:wrap true
|
||||
:limit-width 15
|
||||
:text "${USERNAME}@${HOSTNAME}"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
;; Window
|
||||
|
||||
(defwindow
|
||||
profile
|
||||
:stacking "fg"
|
||||
:focusable false
|
||||
:geometry (geometry
|
||||
:x 150
|
||||
:y 150
|
||||
:width 350
|
||||
:height 440
|
||||
)
|
||||
(user)
|
||||
)
|
|
@ -1,18 +0,0 @@
|
|||
#!/usr/bin/bash
|
||||
NAME="ErgoDox EZ Shine Keyboard"
|
||||
|
||||
if ! xinput | grep "$NAME" > /dev/null; then
|
||||
echo ""
|
||||
exit
|
||||
fi
|
||||
|
||||
ID=$(xinput | grep "$NAME" | cut -d "=" -f2 | cut -d " " -f1)
|
||||
|
||||
CAPS="$(xinput --get-feedbacks $ID | grep led_mask | awk '{ print $3 }')"
|
||||
|
||||
if [[ "$CAPS" == "1" ]]; then
|
||||
#echo "⇪"
|
||||
echo ""
|
||||
else
|
||||
echo ""
|
||||
fi
|
|
@ -1,14 +0,0 @@
|
|||
#!/usr/bin/bash
|
||||
ETH="$(cat /sys/class/net/enp0s31f6/operstate)"
|
||||
WAN="$(cat /sys/class/net/wlan0/operstate)"
|
||||
if [[ "$ETH" == "up" ]]; then
|
||||
#echo ""
|
||||
echo ""
|
||||
exit
|
||||
elif [[ "$WAN" == "up" ]]; then
|
||||
echo ""
|
||||
else
|
||||
#echo ""
|
||||
#echo "睊"
|
||||
echo ""
|
||||
fi
|
|
@ -1,6 +0,0 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
TRACK=$(playerctl --player=spotify metadata | grep trackid | awk '{print $3}')
|
||||
RESOURCE=$(curl -sX GET "https://open.spotify.com/oembed?url=$TRACK" | jq '.thumbnail_url' | awk '{print substr($1, 2, length($1)-2)}')
|
||||
curl -sX GET "$RESOURCE" --output "/home/val/.config/eww/scripts/tmp/art"
|
||||
return $RESOURCE
|
|
@ -1,4 +0,0 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
/home/val/.config/eww/scripts/spotify_art&
|
||||
echo ""
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
playerctl --player=spotify metadata | grep $1 | awk '{print $3}'
|
|
@ -1,7 +0,0 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
if eww windows | grep -q "*calendar"; then
|
||||
eww close calendar
|
||||
else
|
||||
eww open calendar
|
||||
fi
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
REV=$(eww get sidebar_rev)
|
||||
if [[ $REV == 'false' ]]; then
|
||||
eww open sidebar
|
||||
eww update sidebar_rev=true
|
||||
else
|
||||
eww close sidebar
|
||||
eww update sidebar_rev=false
|
||||
fi
|
181
eww/sidebar.yuck
181
eww/sidebar.yuck
|
@ -1,181 +0,0 @@
|
|||
;; _____ _ __ __
|
||||
;; / ___/(_)___/ /__ / /_ ____ ______
|
||||
;; \__ \/ / __ / _ \/ __ \/ __ `/ ___/
|
||||
;; ___/ / / /_/ / __/ /_/ / /_/ / /
|
||||
;; /____/_/\__,_/\___/_.___/\__,_/_/
|
||||
;;
|
||||
(defpoll HOSTNAME :interval "24h" "hostname")
|
||||
(defpoll USERNAME :interval "24h" "whoami")
|
||||
|
||||
(defpoll TIME_TOP
|
||||
:interval "2s"
|
||||
"date +\"%I:%M %p\""
|
||||
)
|
||||
(defpoll TIME_BOTTOM
|
||||
:interval "2s"
|
||||
"date +\"%B %d\""
|
||||
)
|
||||
|
||||
(defpoll CPU_USAGE
|
||||
:interval "1s"
|
||||
"~/.config/eww/scripts/cpu"
|
||||
)
|
||||
(defpoll RAM_USAGE
|
||||
:interval "1s"
|
||||
"~/.config/eww/scripts/ram"
|
||||
)
|
||||
(defpoll SSD_USAGE
|
||||
:interval "30s"
|
||||
"~/.config/eww/scripts/ssd"
|
||||
)
|
||||
|
||||
(defwidget profile []
|
||||
(box
|
||||
:class "sidebar-sub"
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:spacing 8
|
||||
:hexpand false
|
||||
:vexpand false
|
||||
(box
|
||||
:class "face"
|
||||
:valign "start"
|
||||
)
|
||||
(label
|
||||
:class "login"
|
||||
:halign "center"
|
||||
:valign "start"
|
||||
:limit-width 15
|
||||
:text "${USERNAME}@${HOSTNAME}"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget clock []
|
||||
(box
|
||||
:class "sidebar-sub"
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:spacing 8
|
||||
(label
|
||||
:class "time-top"
|
||||
:text "${TIME_TOP}"
|
||||
)
|
||||
(label
|
||||
:class "time-bottom"
|
||||
:text "${TIME_BOTTOM}"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget system []
|
||||
(box
|
||||
:class "sidebar-sub"
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
:spacing 8
|
||||
:hexpand false
|
||||
:vexpand false
|
||||
(box
|
||||
:class "sys-info"
|
||||
:orientation "v"
|
||||
:space-evenly true
|
||||
:hexpand false
|
||||
(label :text "CPU")
|
||||
(label :text "RAM")
|
||||
(label :text "SSD")
|
||||
)
|
||||
(box
|
||||
:class "sys-info"
|
||||
:orientation "v"
|
||||
:space-evenly true
|
||||
:hexpand false
|
||||
(label :text "${CPU_USAGE}%")
|
||||
(label :text "${RAM_USAGE}")
|
||||
(label :text "${SSD_USAGE}")
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget status []
|
||||
(box
|
||||
:class "sidebar-sub status"
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
(label
|
||||
:class "icon"
|
||||
:text {KEYBOARD == "" ? "" : KEYBOARD}
|
||||
)
|
||||
(label
|
||||
:class "icon"
|
||||
:text "${REDSHIFT}"
|
||||
)
|
||||
(label
|
||||
:class "icon"
|
||||
:text "${LAN}"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget actions []
|
||||
(box
|
||||
:class "sidebar-sub actions"
|
||||
:orientation "v"
|
||||
:space-evenly true
|
||||
(box
|
||||
:orientation "h"
|
||||
:space-evenly true
|
||||
(button
|
||||
:class "icon"
|
||||
:onclick "poweroff"
|
||||
:tooltip "shutdown"
|
||||
"⏼"
|
||||
)
|
||||
(button
|
||||
:class "icon"
|
||||
:onclick "reboot"
|
||||
:tooltip "reboot"
|
||||
""
|
||||
)
|
||||
(button
|
||||
:class "icon"
|
||||
:onclick "slock"
|
||||
:tooltip "lock"
|
||||
""
|
||||
)
|
||||
(button
|
||||
:class "icon big"
|
||||
:onclick "i3-msg exit"
|
||||
:tooltip "logout"
|
||||
""
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(defwidget sidebar []
|
||||
(box
|
||||
:class "bg"
|
||||
:orientation "v"
|
||||
:space-evenly false
|
||||
:spacing 8
|
||||
:hexpand false
|
||||
:vexpand false
|
||||
(profile)
|
||||
(clock)
|
||||
(system)
|
||||
(status)
|
||||
)
|
||||
)
|
||||
|
||||
(defwindow sidebar
|
||||
:geometry (geometry
|
||||
:x "1648"
|
||||
:y "42px"
|
||||
:width "256px"
|
||||
)
|
||||
:stacking "fg"
|
||||
:windowtype "normal"
|
||||
:wm-ignore true
|
||||
(sidebar)
|
||||
)
|
102
eww/system.yuck
Normal file
102
eww/system.yuck
Normal file
|
@ -0,0 +1,102 @@
|
|||
;; _____ __
|
||||
;; / ___/__ _______/ /____ ____ ___
|
||||
;; \__ \/ / / / ___/ __/ _ \/ __ `__ \
|
||||
;; ___/ / /_/ (__ ) /_/ __/ / / / / /
|
||||
;;/____/\__, /____/\__/\___/_/ /_/ /_/
|
||||
;; /____/
|
||||
|
||||
;; Variables
|
||||
|
||||
(defpoll
|
||||
CPU_USAGE
|
||||
:interval "1s"
|
||||
"~/.config/eww/scripts/cpu"
|
||||
)
|
||||
(defpoll
|
||||
RAM_USAGE
|
||||
:interval "1s"
|
||||
"~/.config/eww/scripts/ram"
|
||||
)
|
||||
(defpoll
|
||||
SSD_USAGE
|
||||
:interval "1m"
|
||||
"~/.config/eww/scripts/ssd"
|
||||
)
|
||||
|
||||
;; Widgets
|
||||
|
||||
(defwidget
|
||||
system []
|
||||
(box
|
||||
:class "genwin"
|
||||
:vexpand false
|
||||
:hexpand false
|
||||
:cursor "default"
|
||||
(box
|
||||
:orientation "v"
|
||||
:spacing 35
|
||||
:halign "center"
|
||||
:valign "center"
|
||||
:space-evenly false
|
||||
:vexpand false
|
||||
:hexpand false
|
||||
(box
|
||||
:class "cpu_bar"
|
||||
:orientation "h"
|
||||
:spacing 20
|
||||
:space-evenly true
|
||||
:vexpand false
|
||||
:hexpand false
|
||||
(label
|
||||
:text "CPU"
|
||||
;;:text ""
|
||||
)
|
||||
(label :text "|")
|
||||
(label :text "${CPU_USAGE}%")
|
||||
)
|
||||
(box
|
||||
:class "ram_bar"
|
||||
:orientation "h"
|
||||
:spacing 20
|
||||
:space-evenly true
|
||||
:vexpand false
|
||||
:hexpand false
|
||||
(label
|
||||
:text "RAM"
|
||||
;;:text ""
|
||||
)
|
||||
(label :text "|")
|
||||
(label :text "${RAM_USAGE}")
|
||||
)
|
||||
(box
|
||||
:class "disk_bar"
|
||||
:orientation "h"
|
||||
:spacing 20
|
||||
:space-evenly true
|
||||
:vexpand false
|
||||
:hexpand false
|
||||
(label
|
||||
:text "SSD"
|
||||
;;:text ""
|
||||
)
|
||||
(label :text "|")
|
||||
(label :text "${SSD_USAGE}")
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
;; Windows
|
||||
|
||||
(defwindow
|
||||
system
|
||||
:stacking "fg"
|
||||
:focusable false
|
||||
:geometry (geometry
|
||||
:x 150
|
||||
:y 605
|
||||
:width 350
|
||||
:height 325
|
||||
)
|
||||
(system)
|
||||
)
|
101
eww/wm.yuck
Normal file
101
eww/wm.yuck
Normal file
|
@ -0,0 +1,101 @@
|
|||
;; _ ____ ___
|
||||
;;| | / / |/ /
|
||||
;;| | /| / / /|_/ /
|
||||
;;| |/ |/ / / / /
|
||||
;;|__/|__/_/ /_/
|
||||
;;
|
||||
|
||||
;; Widgets
|
||||
(defwidget
|
||||
wmbar []
|
||||
(box
|
||||
:class "wmbar"
|
||||
:orientation "h"
|
||||
:halign "start"
|
||||
:space-evenly true
|
||||
:hexpand false
|
||||
:vexpand false
|
||||
:spacing 5
|
||||
(label
|
||||
:class "icon"
|
||||
:text ""
|
||||
)
|
||||
(button
|
||||
:class "icon"
|
||||
:cursor "pointer"
|
||||
:onclick "i3-msg workspace 1"
|
||||
"1"
|
||||
)
|
||||
(button
|
||||
:class "icon"
|
||||
:cursor "pointer"
|
||||
:onclick "i3-msg workspace 2"
|
||||
"2"
|
||||
)
|
||||
(button
|
||||
:class "icon"
|
||||
:cursor "pointer"
|
||||
:onclick "i3-msg workspace 3"
|
||||
"3"
|
||||
)
|
||||
(button
|
||||
:class "icon"
|
||||
:cursor "pointer"
|
||||
:onclick "i3-msg workspace 4"
|
||||
"4"
|
||||
)
|
||||
(button
|
||||
:class "icon"
|
||||
:cursor "pointer"
|
||||
:onclick "i3-msg workspace 5"
|
||||
"5"
|
||||
)
|
||||
(button
|
||||
:class "icon"
|
||||
:cursor "pointer"
|
||||
:onclick "i3-msg workspace 6"
|
||||
"6"
|
||||
)
|
||||
(button
|
||||
:class "icon"
|
||||
:cursor "pointer"
|
||||
:onclick "i3-msg workspace 7"
|
||||
"7"
|
||||
)
|
||||
(button
|
||||
:class "icon"
|
||||
:cursor "pointer"
|
||||
:onclick "i3-msg workspace 8"
|
||||
"8"
|
||||
)
|
||||
(button
|
||||
:class "icon"
|
||||
:cursor "pointer"
|
||||
:onclick "i3-msg workspace 9"
|
||||
"9"
|
||||
)
|
||||
(button
|
||||
:class "icon"
|
||||
:cursor "pointer"
|
||||
:onclick "i3-msg workspace 10"
|
||||
"10"
|
||||
)
|
||||
(button
|
||||
:class "icon"
|
||||
:cursor "pointer"
|
||||
:onclick "i3-msg workspace back_and_forth"
|
||||
:tooltip "back-and-forth"
|
||||
""
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
;; Windows
|
||||
(defwindow
|
||||
wmbar
|
||||
:geometry (geometry
|
||||
:x 8
|
||||
:y 8
|
||||
)
|
||||
(wmbar)
|
||||
)
|
|
@ -1,14 +0,0 @@
|
|||
theme = "val-onedark"
|
||||
|
||||
[editor]
|
||||
auto-completion = false
|
||||
auto-format = false
|
||||
auto-pairs = false
|
||||
idle-timeout = 2000
|
||||
|
||||
[editor.lsp]
|
||||
display-messages = true
|
||||
|
||||
[keys.insert]
|
||||
C-space = "completion"
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
|
||||
[[language]]
|
||||
name = "rust"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
|
||||
[[language]]
|
||||
name = "bash"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
shebangs = ["sh", "bash", "/usr/bin/bash", "/usr/bin/sh"]
|
||||
|
||||
[[language]]
|
||||
name = "c"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
|
||||
[[language]]
|
||||
name = "cpp"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
|
||||
[[language]]
|
||||
name = "c-sharp"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
language-server = { commmand = "omnisharp", args = [ "--languageserver", "--stdio" ] }
|
||||
|
||||
[[language]]
|
||||
name = "css"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
|
||||
[[language]]
|
||||
name = "html"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
|
||||
[[language]]
|
||||
name = "javascript"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
|
||||
[[language]]
|
||||
name = "json"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
|
||||
[[language]]
|
||||
name = "lua"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
|
||||
[[language]]
|
||||
name = "markdown"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
|
||||
[[language]]
|
||||
name = "php"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
shebangs = ['php', '/usr/bin/php']
|
||||
|
||||
[[language]]
|
||||
name = "python"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
shebangs = ['python', '/usr/bin/python']
|
||||
|
||||
[[language]]
|
||||
name = "toml"
|
||||
indent = { tab-width = 4, unit = "\t" }
|
||||
|
|
@ -1,87 +0,0 @@
|
|||
# Author : Gokul Soumya <gokulps15@gmail.com>
|
||||
|
||||
"attribute" = { fg = "yellow" }
|
||||
"comment" = { fg = "light-gray", modifiers = ["italic"] }
|
||||
"constant" = { fg = "cyan" }
|
||||
"constant.numeric" = { fg = "gold" }
|
||||
"constant.builtin" = { fg = "gold" }
|
||||
"constant.character.escape" = { fg = "gold" }
|
||||
"constructor" = { fg = "blue" }
|
||||
"function" = { fg = "blue" }
|
||||
"function.builtin" = { fg = "blue" }
|
||||
"function.macro" = { fg = "purple" }
|
||||
"keyword" = { fg = "red" }
|
||||
"keyword.control" = { fg = "purple" }
|
||||
"keyword.control.import" = { fg = "red" }
|
||||
"keyword.directive" = { fg = "purple" }
|
||||
"label" = { fg = "purple" }
|
||||
"namespace" = { fg = "blue" }
|
||||
"operator" = { fg = "purple" }
|
||||
"keyword.operator" = { fg = "purple" }
|
||||
"property" = { fg = "red" }
|
||||
"special" = { fg = "blue" }
|
||||
"string" = { fg = "green" }
|
||||
"type" = { fg = "yellow" }
|
||||
# "variable" = { fg = "blue" }
|
||||
"variable.builtin" = { fg = "blue" }
|
||||
"variable.parameter" = { fg = "red" }
|
||||
"variable.other.member" = { fg = "red" }
|
||||
|
||||
"markup.heading" = { fg = "red" }
|
||||
"markup.raw.inline" = { fg = "green" }
|
||||
"markup.bold" = { fg = "gold", modifiers = ["bold"] }
|
||||
"markup.italic" = { fg = "purple", modifiers = ["italic"] }
|
||||
"markup.list" = { fg = "red" }
|
||||
"markup.quote" = { fg = "yellow" }
|
||||
"markup.link.url" = { fg = "cyan", modifiers = ["underlined"]}
|
||||
"markup.link.text" = { fg = "purple" }
|
||||
|
||||
"diff.plus" = "green"
|
||||
"diff.delta" = "gold"
|
||||
"diff.minus" = "red"
|
||||
|
||||
diagnostic = { modifiers = ["underlined"] }
|
||||
"info" = { fg = "blue", modifiers = ["bold"] }
|
||||
"hint" = { fg = "green", modifiers = ["bold"] }
|
||||
"warning" = { fg = "yellow", modifiers = ["bold"] }
|
||||
"error" = { fg = "red", modifiers = ["bold"] }
|
||||
|
||||
# "ui.background" = { bg = "black" }
|
||||
"ui.virtual" = { fg = "light-gray" }
|
||||
|
||||
"ui.cursor" = { fg = "white", modifiers = ["reversed"] }
|
||||
"ui.cursor.primary" = { fg = "white", modifiers = ["reversed"] }
|
||||
"ui.cursor.match" = { fg = "blue", modifiers = ["underlined"]}
|
||||
|
||||
"ui.selection" = { bg = "light-gray" }
|
||||
"ui.selection.primary" = {} #{ bg = "gray" }
|
||||
|
||||
"ui.linenr" = { fg = "linenr" }
|
||||
"ui.linenr.selected" = { fg = "white" }
|
||||
|
||||
"ui.statusline" = { fg = "white", bg = "light-black" }
|
||||
"ui.statusline.inactive" = { fg = "light-gray", bg = "light-black" }
|
||||
|
||||
"ui.text" = { fg = "white" }
|
||||
"ui.text.focus" = { fg = "white", modifiers = ["bold"] }
|
||||
|
||||
"ui.help" = { bg = "gray" }
|
||||
"ui.popup" = { bg = "gray" }
|
||||
"ui.window" = { bg = "gray" }
|
||||
"ui.menu.selected" = { fg = "black", bg = "blue" }
|
||||
|
||||
[palette]
|
||||
|
||||
yellow = "#E5C07B"
|
||||
blue = "#61AFEF"
|
||||
red = "#E06C75"
|
||||
purple = "#C678DD"
|
||||
green = "#98C379"
|
||||
gold = "#D19A66"
|
||||
cyan = "#56B6C2"
|
||||
white = "#ABB2BF"
|
||||
black = "#282C34"
|
||||
light-black = "#2C323C"
|
||||
gray = "#3E4452"
|
||||
light-gray = "#5C6370"
|
||||
linenr = "#4B5263"
|
161
hyper.js
Normal file
161
hyper.js
Normal file
|
@ -0,0 +1,161 @@
|
|||
// Future versions of Hyper may add additional config options,
|
||||
// which will not automatically be merged into this file.
|
||||
// See https://hyper.is#cfg for all currently supported options.
|
||||
|
||||
module.exports = {
|
||||
config: {
|
||||
// choose either `'stable'` for receiving highly polished,
|
||||
// or `'canary'` for less polished but more frequent updates
|
||||
updateChannel: 'stable',
|
||||
|
||||
// default font size in pixels for all tabs
|
||||
fontSize: 12,
|
||||
|
||||
// font family with optional fallbacks
|
||||
fontFamily: 'Fira Code, FiraCode Nerd Font, monospace',
|
||||
|
||||
// default font weight: 'normal' or 'bold'
|
||||
fontWeight: 'normal',
|
||||
|
||||
// font weight for bold characters: 'normal' or 'bold'
|
||||
fontWeightBold: 'bold',
|
||||
|
||||
// line height as a relative unit
|
||||
lineHeight: 1,
|
||||
|
||||
// letter spacing as a relative unit
|
||||
letterSpacing: 0.8,
|
||||
|
||||
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk)
|
||||
cursorColor: 'rgba(255,255,255,0.8625)',
|
||||
|
||||
// terminal text color under BLOCK cursor
|
||||
cursorAccentColor: '#000',
|
||||
|
||||
// `'BEAM'` for |, `'UNDERLINE'` for _, `'BLOCK'` for █
|
||||
cursorShape: 'BLOCK',
|
||||
|
||||
// set to `true` (without backticks and without quotes) for blinking cursor
|
||||
cursorBlink: true,
|
||||
|
||||
// color of the text
|
||||
foregroundColor: '#fff',
|
||||
|
||||
// terminal background color
|
||||
// opacity is only supported on macOS
|
||||
backgroundColor: '#000',
|
||||
|
||||
// terminal selection color
|
||||
selectionColor: 'rgba(248,28,229,0.3)',
|
||||
|
||||
// border color (window, tabs)
|
||||
borderColor: '#333',
|
||||
|
||||
// custom CSS to embed in the main window
|
||||
css: '',
|
||||
|
||||
// custom CSS to embed in the terminal window
|
||||
termCSS: '',
|
||||
|
||||
// if you're using a Linux setup which show native menus, set to false
|
||||
// default: `true` on Linux, `true` on Windows, ignored on macOS
|
||||
showHamburgerMenu: true,
|
||||
|
||||
// set to `false` (without backticks and without quotes) if you want to hide the minimize, maximize and close buttons
|
||||
// additionally, set to `'left'` if you want them on the left, like in Ubuntu
|
||||
// default: `true` (without backticks and without quotes) on Windows and Linux, ignored on macOS
|
||||
showWindowControls: false,
|
||||
|
||||
// custom padding (CSS format, i.e.: `top right bottom left`)
|
||||
padding: '6px 14px',
|
||||
// default: 12px 14px
|
||||
|
||||
// the full list. if you're going to provide the full color palette,
|
||||
// including the 6 x 6 color cubes and the grayscale map, just provide
|
||||
// an array here instead of a color map object
|
||||
colors: {
|
||||
black: '#000000',
|
||||
red: '#C91B00',
|
||||
green: '#00C200',
|
||||
yellow: '#C7C329',
|
||||
blue: '#0225C7',
|
||||
magenta: '#C930C7',
|
||||
cyan: '#00C5C7',
|
||||
white: '#C7C7C7',
|
||||
lightBlack: '#676767',
|
||||
lightRed: '#FF6D67',
|
||||
lightGreen: '#5FF967',
|
||||
lightYellow: '#FFFA72',
|
||||
lightBlue: '#6871FF',
|
||||
lightMagenta: '#FF76FF',
|
||||
lightCyan: '#68FDFE',
|
||||
lightWhite: '#FFFFFF',
|
||||
},
|
||||
|
||||
// the shell to run when spawning a new session (i.e. /usr/local/bin/fish)
|
||||
// if left empty, your system's login shell will be used by default
|
||||
//
|
||||
// Windows
|
||||
// - Make sure to use a full path if the binary name doesn't work
|
||||
// - Remove `--login` in shellArgs
|
||||
//
|
||||
// Bash on Windows
|
||||
// - Example: `C:\\Windows\\System32\\bash.exe`
|
||||
//
|
||||
// PowerShell on Windows
|
||||
// - Example: `C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`
|
||||
shell: '',
|
||||
|
||||
// for setting shell arguments (i.e. for using interactive shellArgs: `['-i']`)
|
||||
// by default `['--login']` will be used
|
||||
shellArgs: ['--login'],
|
||||
|
||||
// for environment variables
|
||||
env: {},
|
||||
|
||||
// set to `false` for no bell
|
||||
bell: false,
|
||||
|
||||
// if `true` (without backticks and without quotes), selected text will automatically be copied to the clipboard
|
||||
copyOnSelect: false,
|
||||
|
||||
// if `true` (without backticks and without quotes), hyper will be set as the default protocol client for SSH
|
||||
defaultSSHApp: true,
|
||||
|
||||
// if `true` (without backticks and without quotes), on right click selected text will be copied or pasted if no
|
||||
// selection is present (`true` by default on Windows and disables the context menu feature)
|
||||
quickEdit: false,
|
||||
|
||||
// choose either `'vertical'`, if you want the column mode when Option key is hold during selection (Default)
|
||||
// or `'force'`, if you want to force selection regardless of whether the terminal is in mouse events mode
|
||||
// (inside tmux or vim with mouse mode enabled for example).
|
||||
macOptionSelectionMode: 'vertical',
|
||||
|
||||
// URL to custom bell
|
||||
// bellSoundURL: 'http://example.com/bell.mp3',
|
||||
|
||||
// Whether to use the WebGL renderer. Set it to false to use canvas-based
|
||||
// rendering (slower, but supports transparent backgrounds)
|
||||
webGLRenderer: false,
|
||||
|
||||
// for advanced config flags please refer to https://hyper.is/#cfg
|
||||
},
|
||||
|
||||
// a list of plugins to fetch and install from npm
|
||||
// format: [@org/]project[#version]
|
||||
// examples:
|
||||
// `hyperpower`
|
||||
// `@company/project`
|
||||
// `project#1.0.1`
|
||||
plugins: [ 'hyper-font-ligatures' ],
|
||||
|
||||
// in development, you can create a directory under
|
||||
// `~/.hyper_plugins/local/` and include it here
|
||||
// to load it and avoid it being `npm install`ed
|
||||
localPlugins: [],
|
||||
|
||||
keymaps: {
|
||||
// Example
|
||||
// 'window:devtools': 'cmd+alt+o',
|
||||
},
|
||||
};
|
85
i3_config
85
i3_config
|
@ -21,35 +21,16 @@ set $ws9 "9"
|
|||
set $ws10 "10"
|
||||
|
||||
# Appearance
|
||||
#default_border pixel 2
|
||||
for_window [class="^.*"] border pixel 2
|
||||
gaps inner 15
|
||||
|
||||
font pango:DejaVu Sans Mono 2
|
||||
for_window [class=".*"] title_format "<span alpha='0'></span>"
|
||||
|
||||
# ______ __
|
||||
# / ____/___ / /___ __________
|
||||
# / / / __ \/ / __ \/ ___/ ___/
|
||||
#/ /___/ /_/ / / /_/ / / (__ )
|
||||
#\____/\____/_/\____/_/ /____/
|
||||
#
|
||||
# class title backgr. text indic. border
|
||||
# BASIC
|
||||
#client.focused #323232 #7575ff #ffffff #161d2f #5e6668
|
||||
#client.focused_inactive#323232 #4545ff #ffffff #161d2f #323232
|
||||
#client.unfocused #323232 #161d2f #ffffff #161d2f #323232
|
||||
#client.urgent #323232 #ff7b19 #ffffff #900000 #d4d4d4
|
||||
# NORDIC
|
||||
#client.focused #323232 #81A1C1 #FFFFFF #2E3440 #E5E9F0
|
||||
#client.focused_inactive#323232 #5E81AC #FFFFFF #2E3440 #D8DEE9
|
||||
#client.unfocused #323232 #2E3449 #FFFFFF #2E3440 #D8DEE9
|
||||
#client.urgent #323232 #D08770 #FFFFFF #BF616A #D8DEE9
|
||||
# HYBRID
|
||||
client.focused #323232 #81A1C1 #FFFFFF #161D2F #6E7678
|
||||
client.focused_inactive #323232 #5E81AC #FFFFFF #161D2F #323232
|
||||
client.unfocused #323232 #2E3449 #FFFFFF #161D2F #323232
|
||||
client.urgent #323232 #D08770 #FFFFFF #161D2F #424242
|
||||
client.focused #323232 #7575ff #ffffff #161d2f #5e6668
|
||||
client.focused_inactive #323232 #4545ff #ffffff #161d2f #323232
|
||||
client.unfocused #323232 #161d2f #ffffff #161d2f #323232
|
||||
client.urgent #323232 #ff7b19 #ffffff #900000 #d4d4d4
|
||||
|
||||
# __ __ __ _ __
|
||||
# / //_/__ __ __/ /_ (_)___ ____/ /____
|
||||
|
@ -63,7 +44,7 @@ bindsym $mod+Shift+r restart
|
|||
bindsym $mod+Shift+c reload
|
||||
|
||||
# WM Interacts
|
||||
bindsym $mod+Return exec wezterm
|
||||
bindsym $mod+Return exec hyper
|
||||
bindsym $mod+Shift+q kill
|
||||
bindsym $mod+space exec rofi -show run
|
||||
|
||||
|
@ -99,7 +80,6 @@ bindsym $mod+BackSpace workspace back_and_forth
|
|||
|
||||
bindsym $mod+grave scratchpad show
|
||||
bindsym $mod+Shift+grave floating enable, move scratchpad
|
||||
bindsym $mod+Tab+grave floating enable, move scratchpad
|
||||
|
||||
bindsym $mod+1 workspace number $ws1
|
||||
bindsym $mod+2 workspace number $ws2
|
||||
|
@ -125,25 +105,10 @@ bindsym $mod+Shift+0 move container to workspace number $ws10
|
|||
|
||||
# Resize Mode
|
||||
mode "resize" {
|
||||
bindsym Left resize shrink width 4 px or 2 ppt
|
||||
bindsym Down resize grow height 4 px or 2 ppt
|
||||
bindsym Up resize shrink height 4 px or 2 ppt
|
||||
bindsym Right resize grow width 4 px or 2 ppt
|
||||
|
||||
bindsym Ctrl+Left resize shrink width 2 px or 1 ppt
|
||||
bindsym Ctrl+Down resize grow height 2 px or 1 ppt
|
||||
bindsym Ctrl+Up resize shrink height 2 px or 1 ppt
|
||||
bindsym Ctrl+Right resize grow width 2 px or 1 ppt
|
||||
|
||||
bindsym Shift+Left resize shrink width 8 px or 4 ppt
|
||||
bindsym Shift+Down resize grow height 8 px or 4 ppt
|
||||
bindsym Shift+Up resize shrink height 8 px or 4 ppt
|
||||
bindsym Shift+Right resize grow width 8 px or 4 ppt
|
||||
|
||||
bindsym Ctrl+Shift+Left resize shrink width 16 px or 8 ppt
|
||||
bindsym Ctrl+Shift+Down resize grow height 16 px or 8 ppt
|
||||
bindsym Ctrl+Shift+Up resize shrink height 16 px or 8 ppt
|
||||
bindsym Ctrl+Shift+Right resize grow width 16 px or 8 ppt
|
||||
bindsym Left resize shrink width 5 px or 5 ppt
|
||||
bindsym Down resize grow height 5 px or 5 ppt
|
||||
bindsym Up resize shrink height 5 px or 5 ppt
|
||||
bindsym Right resize grow width 5 px or 5 ppt
|
||||
|
||||
bindsym Return mode "default"
|
||||
bindsym Escape mode "default"
|
||||
|
@ -156,15 +121,11 @@ bindsym $mod+r mode "resize"
|
|||
bindsym $mod+Escape exec dunstctl close
|
||||
bindsym Shift+$mod+Escape exec dunstctl close-all
|
||||
|
||||
bindsym Menu exec /home/val/.config/eww/menu_script
|
||||
bindsym Menu exec /home/val/.config/eww/launch_eww
|
||||
|
||||
bindsym XF86AudioPlay exec playerctl --player=spotify play-pause
|
||||
bindsym XF86AudioNext exec playerctl --player=spotify next
|
||||
bindsym XF86AudioPrev exec playerctl --player=spotify previous
|
||||
|
||||
bindsym Shift+XF86AudioPlay exec playerctl play-pause
|
||||
bindsym Shift+XF86AudioNext exec playerctl next
|
||||
bindsym Shift+XF86AudioPrev exec playerctl previous
|
||||
bindsym XF86AudioPlay exec playerctl play-pause
|
||||
bindsym XF86AudioNext exec playerctl next
|
||||
bindsym XF86AudioPrev exec playerctl previous
|
||||
|
||||
bindsym $mod+Shift+s exec scrot ~/Images/scrot/%b%d_%H-%M-%S.png
|
||||
|
||||
|
@ -176,18 +137,15 @@ bindsym $mod+Shift+s exec scrot ~/Images/scrot/%b%d_%H-%M-%S.png
|
|||
# /_/
|
||||
exec_always feh --bg-scale ~/.background
|
||||
exec_always xrdb ~/.Xresources
|
||||
|
||||
exec picom
|
||||
exec ~/.bin/picom-ibhagwan/picom
|
||||
exec redshift &
|
||||
exec dunst
|
||||
# exec polybar top
|
||||
exec eww daemon
|
||||
exec eww open bar
|
||||
exec polybar top
|
||||
exec unclutter
|
||||
exec --no-startup-id fcitx5 -d
|
||||
exec eww daemon
|
||||
|
||||
exec ~/.script/nosleep.sh
|
||||
exec_always ~/.script/hid/trackball_speed.sh 0.1 1
|
||||
exec ~/.script/trackball_speed.sh 0.2 1
|
||||
|
||||
# _ ___ __ ____
|
||||
#| | / (_)___ ____/ /___ _ __ / __ \_________ ____ _____
|
||||
|
@ -196,19 +154,10 @@ exec_always ~/.script/hid/trackball_speed.sh 0.1 1
|
|||
#|__/|__/_/_/ /_/\__,_/\____/|__/|__/ /_/ /_/ \____/ .___/____/
|
||||
# /_/
|
||||
|
||||
for_window [class="Aseprite"] border pixel 0
|
||||
for_window [title="Blanket" class="python3"] floating enable
|
||||
for_window [class="Blueman-manager"] floating enable
|
||||
for_window [class="eww"] floating enable
|
||||
for_window [class="eww-background"] border pixel 0
|
||||
for_window [class="Gnome-calendar"] floating enable
|
||||
#for_window [class="i3-frame"] border pixel 1
|
||||
for_window [class="Org.gnome.Nautilus"] floating enable
|
||||
for_window [class="Pick-colour-picker"] floating enable
|
||||
for_window [class="rofi"] border pixel 0
|
||||
for_window [class="Tk" title="sysmenu"] floating enable
|
||||
for_window [class="Steam" title="Friends List"] floating enable
|
||||
for_window [class="org.wezfurlong.wezterm"] border pixel 2
|
||||
|
||||
no_focus [window_role="pop-up"]
|
||||
focus_on_window_activation none
|
||||
|
|
43
nvim/init.vim
Normal file
43
nvim/init.vim
Normal file
|
@ -0,0 +1,43 @@
|
|||
" _
|
||||
" ____ _ __(_)___ ___
|
||||
" / __ \ | / / / __ `__ \
|
||||
" / / / / |/ / / / / / / /
|
||||
" /_/ /_/|___/_/_/ /_/ /_/
|
||||
"
|
||||
syntax enable
|
||||
filetype plugin indent on
|
||||
colorscheme pablo
|
||||
|
||||
set autoindent
|
||||
set noexpandtab
|
||||
set tabstop=4
|
||||
set shiftwidth=4
|
||||
|
||||
set mouse=a
|
||||
|
||||
" __ __ __ _ __
|
||||
" / //_/__ __ __/ /_ (_)___ ____/ /____
|
||||
" / ,< / _ \/ / / / __ \/ / __ \/ __ / ___/
|
||||
" / /| / __/ /_/ / /_/ / / / / / /_/ (__ )
|
||||
" /_/ |_\___/\__, /_.___/_/_/ /_/\__,_/____/
|
||||
" /____/
|
||||
|
||||
" Ctrl+Tab: Toggle tab markers
|
||||
map <C-Tab> :set list! lcs=tab:\¦\ <CR>
|
||||
" Ctrl+`: Open NERDTree
|
||||
map <C-Home> :NERDTree <CR>
|
||||
|
||||
" ____ __ __
|
||||
" / _/___ _____/ /_ ______/ /__
|
||||
" / // __ \/ ___/ / / / / __ / _ \
|
||||
" _/ // / / / /__/ / /_/ / /_/ / __/
|
||||
" /___/_/ /_/\___/_/\__,_/\__,_/\___/
|
||||
"
|
||||
|
||||
execute 'source' '~/.config/nvim/plugins.vim'
|
||||
|
||||
" I don't know who the dumbfuck who thinks they
|
||||
" know how I should be indenting better than me
|
||||
" is, but they can kiss my ass.
|
||||
set noexpandtab
|
||||
|
28
nvim/plugins.vim
Normal file
28
nvim/plugins.vim
Normal file
|
@ -0,0 +1,28 @@
|
|||
" ____ __ _
|
||||
" / __ \/ /_ ______ _(_)___ _____
|
||||
" / /_/ / / / / / __ `/ / __ \/ ___/
|
||||
" / ____/ / /_/ / /_/ / / / / (__ )
|
||||
" /_/ /_/\__,_/\__, /_/_/ /_/____/
|
||||
" /____/
|
||||
|
||||
call plug#begin('~/.config/nvim/plugged')
|
||||
|
||||
Plug 'neovim/nvim-lspconfig'
|
||||
Plug 'neovim/nvim.net'
|
||||
|
||||
Plug 'hrsh7th/nvim-cmp'
|
||||
Plug 'hrsh7th/cmp-nvim-lsp'
|
||||
|
||||
Plug 'itchyny/lightline.vim'
|
||||
|
||||
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
|
||||
|
||||
Plug 'omnisharp/omnisharp-vim'
|
||||
|
||||
Plug 'preservim/nerdtree'
|
||||
Plug 'python-mode/python-mode', {'for': 'python', 'branch': 'develop'}
|
||||
|
||||
Plug 'rust-lang/rust.vim'
|
||||
|
||||
call plug#end()
|
||||
|
29
picom.conf
29
picom.conf
|
@ -18,6 +18,13 @@ opacity-of-dropdown_menu = 1;
|
|||
inactive-opacity = 1;
|
||||
active-opacity = 1;
|
||||
frame-opacity = 1;
|
||||
|
||||
# ____ __
|
||||
# / __ )/ /_ _______
|
||||
# / __ / / / / / ___/
|
||||
# / /_/ / / /_/ / /
|
||||
#/_____/_/\__,_/_/
|
||||
#
|
||||
blur-background = true;
|
||||
blur-background-frame = true;
|
||||
blur-method = "dual_kawase";
|
||||
|
@ -30,7 +37,6 @@ blur-strength = 3;
|
|||
blur-background-exclude = [
|
||||
"window_type = 'desktop'",
|
||||
"class_i = 'discover-overlay'",
|
||||
"name *= 'rect-overlay'"
|
||||
];
|
||||
|
||||
opacity-rule = [
|
||||
|
@ -38,18 +44,17 @@ opacity-rule = [
|
|||
"70:name = 'sysmenu'",
|
||||
"85:class_g = 'Hyper'",
|
||||
"90:class_g = 'Typora'",
|
||||
#"95:class_g = 'discord'",
|
||||
"95:class_g = 'discord'",
|
||||
"90:class_g = 'code-oss'",
|
||||
"95:class_g = 'dolphin'",
|
||||
"85:class_g = 'Spotify'",
|
||||
"85:class_g = 'Insomnia'",
|
||||
"90:class_g = 'Blueman-manager'",
|
||||
"60:class_g = 'Blueman-manager'",
|
||||
"85:class_g = 'filelight'",
|
||||
"90:class_g = 'Atom'",
|
||||
"90:class_g = 'jetbrains-rider'",
|
||||
"50:class_g = 'i3-frame'",
|
||||
"75:class_g = 'URxvt'",
|
||||
# "85:class_g = 'org.wezfurlong.wezterm'",
|
||||
"65:class_g = 'URxvt'",
|
||||
# "75:name = 'Picture-in-Picture' && !focused",
|
||||
];
|
||||
|
||||
|
@ -70,24 +75,18 @@ fade-out-step = 0.02;
|
|||
# / _, _/ /_/ / /_/ / / / / /_/ / / /___/ /_/ / / / / / / __/ / (__ )
|
||||
#/_/ |_|\____/\__,_/_/ /_/\__,_/ \____/\____/_/ /_/ /_/\___/_/ /____/
|
||||
#
|
||||
# corner-radius = 8.0;
|
||||
corner-radius = 12.0;
|
||||
corner-radius = 8.0;
|
||||
rounded-corners-exclude = [
|
||||
"class_g = 'Aseprite'",
|
||||
"class_g = 'Polybar'",
|
||||
"class_g = 'eww-background'",
|
||||
"class_g = 'i3-frame'",
|
||||
# "class_g = 'i3-frame'",
|
||||
"class_i = 'discover-overlay'",
|
||||
"class_i = 'onboard'",
|
||||
"window_type = 'dock'"
|
||||
# "class_g = 'rofi'",
|
||||
];
|
||||
round-borders = 1;
|
||||
round-borders-rule = [
|
||||
"2:window_type = 'normal'",
|
||||
"2:window_type = 'menu'",
|
||||
"2:window_type = 'dialog'",
|
||||
"1:class_g = 'i3-frame'"
|
||||
"1:class_g = 'i3-frame'",
|
||||
];
|
||||
|
||||
# ____ __
|
||||
|
@ -101,5 +100,5 @@ vsync = true;
|
|||
experimental-backends = true;
|
||||
xrender-sync-fence = true;
|
||||
unredir-if-possible = false;
|
||||
glx-no-stencil = true;
|
||||
glx-no-stencil = false;
|
||||
glx-no-rebind-pixmap = true;
|
||||
|
|
138
polybar_config
Normal file
138
polybar_config
Normal file
|
@ -0,0 +1,138 @@
|
|||
|
||||
[bar/top]
|
||||
monitor = "DP-3"
|
||||
background = #88000000
|
||||
foreground = #FFFFFF
|
||||
font-0 = Helvetica Neue:style=Regular:pixelsize=11;2
|
||||
font-1 = FiraCode Nerd Font:style=Regular;pixelsize=11;2
|
||||
font-2 = Fira Code:style=Regular;pixelsize=07;2
|
||||
height = 24
|
||||
line-size = 2
|
||||
modules-left = icon i3
|
||||
#modules-center = title
|
||||
modules-right = redshift network eww datetime
|
||||
padding = 2
|
||||
module-margin = 2
|
||||
|
||||
[bar/openbox]
|
||||
monitor = "DP-3"
|
||||
|
||||
[bar/crt-main]
|
||||
monitor = "DP-4"
|
||||
background = #88000000
|
||||
foreground = #FFFFFF
|
||||
font-0 = Helvetica Neue:style=Regular:pixelsize=11;2
|
||||
font-1 = font\-mfizz:style=mfizz;pixelsize=11;2
|
||||
height = 24
|
||||
line-size = 2
|
||||
modules-left = icon i3
|
||||
modules-right = datetime
|
||||
padding = 2
|
||||
module-margin = 2
|
||||
|
||||
[bar/crt]
|
||||
monitor = "DP-4"
|
||||
background = #88000000
|
||||
foreground = #FFFFFF
|
||||
font-0 = Helvetica Neue:style=Regular:pixelsize=11;2
|
||||
height = 24
|
||||
line-size = 2
|
||||
modules-left = i3
|
||||
modules-right = datetime
|
||||
padding = 2
|
||||
module-margin = 2
|
||||
|
||||
[module/icon]
|
||||
label-active-font = 1
|
||||
type = custom/text
|
||||
content = ""
|
||||
#content = ""
|
||||
click-left = exec ~/.script/syscontext.py &
|
||||
|
||||
[module/i3]
|
||||
type = internal/i3
|
||||
label-focused-underline = #FFFFFF
|
||||
label-urgent-underline = #FFAA00
|
||||
label-visible-underline = #888888
|
||||
label-urgent-foreground = #FFAA00
|
||||
strip-wsnumber = true
|
||||
label-mode-padding = 1
|
||||
label-focused = %index%
|
||||
label-visible = %index%
|
||||
label-unfocused = %index%
|
||||
label-urgent = %index%
|
||||
label-focused-padding = 1
|
||||
label-visible-padding = 1
|
||||
label-unfocused-padding = 1
|
||||
label-urgent-padding = 1
|
||||
enable-scroll = false
|
||||
reverse-scroll = false
|
||||
pin-workspaces = true
|
||||
|
||||
[module/battery]
|
||||
label-active-font = 1
|
||||
type = internal/battery
|
||||
battery = BAT0
|
||||
adapter = ADP1
|
||||
format-charging = <label-charging><ramp-capacity>
|
||||
format-discharging = <label-discharging><ramp-capacity>
|
||||
ramp-capacity-0 = ""
|
||||
ramp-capacity-1 = ""
|
||||
ramp-capacity-2 = ""
|
||||
ramp-capacity-3 = ""
|
||||
ramp-capacity-4 = ""
|
||||
label-charging = "%percentage%% "
|
||||
label-discharging = "%percentage%% "
|
||||
|
||||
[module/network]
|
||||
label-active-font = 1
|
||||
type = internal/network
|
||||
interface = wlan0
|
||||
interval = 10.0
|
||||
format-disconnected = " "
|
||||
format-connected = " "
|
||||
|
||||
[module/bluetooth]
|
||||
label-active-font = 2
|
||||
type = custom/text
|
||||
content = ""
|
||||
click-left = exec blueman-manager
|
||||
|
||||
[module/redshift]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/script/redshift.sh
|
||||
label = "%output% "
|
||||
format = <label>
|
||||
|
||||
[module/datetime]
|
||||
type = internal/date
|
||||
date = %a %b %d %I:%M %p
|
||||
|
||||
[module/eww]
|
||||
label-active-font = 1
|
||||
type = custom/text
|
||||
content = ""
|
||||
click-left = exec ~/.config/eww/launch_eww &
|
||||
|
||||
[module/login]
|
||||
type = custom/script
|
||||
exec = echo $(whoami)@$(hostname)
|
||||
label = %output%
|
||||
format = %{T3}<label>
|
||||
format-padding = 2
|
||||
|
||||
# Thanks for your spotify status script,
|
||||
# github.com/kaanf
|
||||
[module/spotify]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/script/spotify_status.py -q -f "{artist}: {song}"
|
||||
label = " %{F-}%output%"
|
||||
format-underline = #1DB954
|
||||
format-prefix = "%{F#1DB954} "
|
||||
tail = true
|
||||
interval = 1s
|
||||
|
||||
[module/title]
|
||||
type = internal/xwindow
|
||||
format-underline = #fff
|
||||
format-padding = 2
|
4
polybar_scripts/focus_class.sh
Executable file
4
polybar_scripts/focus_class.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
id=$(xdotool getwindowfocus)
|
||||
|
13
polybar_scripts/lan.sh
Executable file
13
polybar_scripts/lan.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/bash
|
||||
if [[ "$(cat /sys/class/net/enp0s31f6/operstate)" == "up" ]]; then
|
||||
echo ""
|
||||
#echo ""
|
||||
exit
|
||||
fi
|
||||
wlan=$(iwctl station list | grep wlan0 | awk '{ print $2 }')
|
||||
if [[ "$wlan" == "connected" ]]; then
|
||||
echo ""
|
||||
else
|
||||
echo ""
|
||||
#echo ""
|
||||
fi
|
18
polybar_scripts/now_playing.sh
Executable file
18
polybar_scripts/now_playing.sh
Executable file
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
if [[ "$(playerctl status)" == "Playing" ]]; then
|
||||
player=$(playerctl metadata | head -n 1 | awk '{print $1 }')
|
||||
if [[ "$player" == "spotify" ]]; then
|
||||
#echo "%{F#1DB954}"
|
||||
echo ""
|
||||
elif [[ "$player" == "firefox" ]]; then
|
||||
#echo "%{F#FF443D}"
|
||||
echo ""
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
else
|
||||
#echo "ﱙ"
|
||||
#echo ""
|
||||
echo ""
|
||||
fi
|
|
@ -3,7 +3,6 @@
|
|||
if [ "$(pgrep -x redshift)" ]; then
|
||||
period=$(redshift -p 2> /dev/null | grep Period | awk '{print $2}')
|
||||
if [[ $period == 'Night' ]]; then
|
||||
#echo ""
|
||||
#echo ""
|
||||
echo ""
|
||||
#echo "鈴"
|
141
polybar_scripts/spotify_status.py
Executable file
141
polybar_scripts/spotify_status.py
Executable file
|
@ -0,0 +1,141 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
import sys
|
||||
import dbus
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument(
|
||||
'-t',
|
||||
'--trunclen',
|
||||
type=int,
|
||||
metavar='trunclen'
|
||||
)
|
||||
parser.add_argument(
|
||||
'-f',
|
||||
'--format',
|
||||
type=str,
|
||||
metavar='custom format',
|
||||
dest='custom_format'
|
||||
)
|
||||
parser.add_argument(
|
||||
'-p',
|
||||
'--playpause',
|
||||
type=str,
|
||||
metavar='play-pause indicator',
|
||||
dest='play_pause'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--font',
|
||||
type=str,
|
||||
metavar='the index of the font to use for the main label',
|
||||
dest='font'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--playpause-font',
|
||||
type=str,
|
||||
metavar='the index of the font to use to display the playpause indicator',
|
||||
dest='play_pause_font'
|
||||
)
|
||||
parser.add_argument(
|
||||
'-q',
|
||||
'--quiet',
|
||||
action='store_true',
|
||||
help="if set, don't show any output when the current song is paused",
|
||||
dest='quiet',
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
def fix_string(string):
|
||||
# corrects encoding for the python version used
|
||||
if sys.version_info.major == 3:
|
||||
return string
|
||||
else:
|
||||
return string.encode('utf-8')
|
||||
|
||||
|
||||
def truncate(name, trunclen):
|
||||
if len(name) > trunclen:
|
||||
name = name[:trunclen]
|
||||
name += '...'
|
||||
if ('(' in name) and (')' not in name):
|
||||
name += ')'
|
||||
return name
|
||||
|
||||
|
||||
|
||||
# Default parameters
|
||||
output = fix_string(u'{play_pause} {artist}: {song}')
|
||||
trunclen = 35
|
||||
play_pause = fix_string(u'\u25B6,\u23F8') # first character is play, second is paused
|
||||
|
||||
label_with_font = '%{{T{font}}}{label}%{{T-}}'
|
||||
font = args.font
|
||||
play_pause_font = args.play_pause_font
|
||||
|
||||
quiet = args.quiet
|
||||
|
||||
# parameters can be overwritten by args
|
||||
if args.trunclen is not None:
|
||||
trunclen = args.trunclen
|
||||
if args.custom_format is not None:
|
||||
output = args.custom_format
|
||||
if args.play_pause is not None:
|
||||
play_pause = args.play_pause
|
||||
|
||||
try:
|
||||
session_bus = dbus.SessionBus()
|
||||
spotify_bus = session_bus.get_object(
|
||||
'org.mpris.MediaPlayer2.spotify',
|
||||
'/org/mpris/MediaPlayer2'
|
||||
)
|
||||
|
||||
spotify_properties = dbus.Interface(
|
||||
spotify_bus,
|
||||
'org.freedesktop.DBus.Properties'
|
||||
)
|
||||
|
||||
metadata = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'Metadata')
|
||||
status = spotify_properties.Get('org.mpris.MediaPlayer2.Player', 'PlaybackStatus')
|
||||
|
||||
# Handle play/pause label
|
||||
|
||||
play_pause = play_pause.split(',')
|
||||
|
||||
if status == 'Playing':
|
||||
play_pause = play_pause[0]
|
||||
elif status == 'Paused':
|
||||
play_pause = play_pause[1]
|
||||
else:
|
||||
play_pause = str()
|
||||
|
||||
if play_pause_font:
|
||||
play_pause = label_with_font.format(font=play_pause_font, label=play_pause)
|
||||
|
||||
# Handle main label
|
||||
|
||||
artist = fix_string(metadata['xesam:artist'][0]) if metadata['xesam:artist'] else ''
|
||||
song = fix_string(metadata['xesam:title']) if metadata['xesam:title'] else ''
|
||||
album = fix_string(metadata['xesam:album']) if metadata['xesam:album'] else ''
|
||||
|
||||
if (quiet and status == 'Paused') or (not artist and not song and not album):
|
||||
print('')
|
||||
else:
|
||||
if font:
|
||||
artist = label_with_font.format(font=font, label=artist)
|
||||
song = label_with_font.format(font=font, label=song)
|
||||
album = label_with_font.format(font=font, label=album)
|
||||
|
||||
# Add 4 to trunclen to account for status symbol, spaces, and other padding characters
|
||||
print(truncate(output.format(artist=artist,
|
||||
song=song,
|
||||
play_pause=play_pause,
|
||||
album=album), trunclen + 4))
|
||||
|
||||
except Exception as e:
|
||||
if isinstance(e, dbus.exceptions.DBusException):
|
||||
print('')
|
||||
else:
|
||||
print(e)
|
49
rofi.rasi
49
rofi.rasi
|
@ -1,8 +1,53 @@
|
|||
configuration {
|
||||
font: "FiraCode Nerd Font 14";
|
||||
display-run: "";
|
||||
display-window: "";
|
||||
modi: "run,window";
|
||||
}
|
||||
@theme "/home/val/.config/rofi/themes/slate-black.rasi"
|
||||
|
||||
* {
|
||||
background-color: #282C3385;
|
||||
border-color: #2E343FFF;
|
||||
text-color: #8cA0AAFF;
|
||||
spacing: 0;
|
||||
width: 512px;
|
||||
// Height: 3 items
|
||||
height: 228px;
|
||||
// Height: 4 items
|
||||
//height: 284px;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
border: 0 0 1px 0;
|
||||
children: [prompt,entry];
|
||||
}
|
||||
|
||||
prompt {
|
||||
padding: 16px;
|
||||
border: 0 1px 0 0;
|
||||
}
|
||||
|
||||
textbox {
|
||||
background-color: #2e343f25;
|
||||
border: 0 0 1px 0;
|
||||
border-color: #282C33;
|
||||
padding: 8px 16px;
|
||||
}
|
||||
|
||||
entry {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
listview {
|
||||
cycle: false;
|
||||
margin: 0 0 -1px 0;
|
||||
scrollbar: false;
|
||||
}
|
||||
|
||||
element {
|
||||
border: 0 0 1px 0;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: #2e343fa5;
|
||||
}
|
||||
|
|
|
@ -1,55 +0,0 @@
|
|||
* {
|
||||
background: #0004;
|
||||
background-color: @background;
|
||||
border-color: #5558;
|
||||
text-color: #FFFF;
|
||||
spacing: 0;
|
||||
width: 512px;
|
||||
// Height: 3 items
|
||||
height: 228px;
|
||||
// Height: 4 items
|
||||
//height: 284px;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
border: 0 0 1px 0;
|
||||
children: [prompt,entry];
|
||||
}
|
||||
|
||||
prompt {
|
||||
padding: 16px;
|
||||
border: 0 1px 0 0;
|
||||
}
|
||||
|
||||
textbox {
|
||||
background-color: #2e343f25;
|
||||
border: 0 0 1px 0;
|
||||
border-color: #282C33;
|
||||
padding: 8px 16px;
|
||||
}
|
||||
|
||||
entry {
|
||||
padding: 16px;
|
||||
background-color: #0000;
|
||||
}
|
||||
|
||||
listview {
|
||||
cycle: false;
|
||||
margin: 0 0 -1px 0;
|
||||
scrollbar: false;
|
||||
}
|
||||
|
||||
element {
|
||||
border: 0 0 1px 0;
|
||||
padding: 16px;
|
||||
background-color: #0000;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: #AAA2;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: #0000;
|
||||
}
|
||||
|
|
@ -1,55 +0,0 @@
|
|||
* {
|
||||
background: #282C3385;
|
||||
background-color: @background;
|
||||
border-color: #2E343FFF;
|
||||
text-color: #8cA0AAFF;
|
||||
spacing: 0;
|
||||
width: 512px;
|
||||
// Height: 3 items
|
||||
height: 228px;
|
||||
// Height: 4 items
|
||||
//height: 284px;
|
||||
}
|
||||
|
||||
inputbar {
|
||||
border: 0 0 1px 0;
|
||||
children: [prompt,entry];
|
||||
}
|
||||
|
||||
prompt {
|
||||
padding: 16px;
|
||||
border: 0 1px 0 0;
|
||||
}
|
||||
|
||||
textbox {
|
||||
background-color: #2e343f25;
|
||||
border: 0 0 1px 0;
|
||||
border-color: #282C33;
|
||||
padding: 8px 16px;
|
||||
}
|
||||
|
||||
entry {
|
||||
padding: 16px;
|
||||
background-color: #00000000;
|
||||
}
|
||||
|
||||
listview {
|
||||
cycle: false;
|
||||
margin: 0 0 -1px 0;
|
||||
scrollbar: false;
|
||||
}
|
||||
|
||||
element {
|
||||
border: 0 0 1px 0;
|
||||
padding: 16px;
|
||||
background-color: #00000000;
|
||||
}
|
||||
|
||||
element selected {
|
||||
background-color: #2e343f82;
|
||||
}
|
||||
|
||||
element-text {
|
||||
background-color: #00000000;
|
||||
}
|
||||
|
7
scripts/extractapp.sh
Executable file
7
scripts/extractapp.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo Extracting $1
|
||||
chmod a+x $1
|
||||
$1 --appimage-extract
|
||||
echo Finished
|
||||
|
1
scripts/sysmenu.py
Symbolic link
1
scripts/sysmenu.py
Symbolic link
|
@ -0,0 +1 @@
|
|||
/home/val/Repos/sysmenu/sysmenu.py
|
5
scripts/window_size.sh
Executable file
5
scripts/window_size.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "Waiting two seconds to get the size of the active window."
|
||||
sleep 2
|
||||
xwininfo -id $(xdotool getactivewindow)
|
|
@ -1,9 +1,9 @@
|
|||
# _____ __ __ _
|
||||
# / ___// /_____ ___________/ /_ (_)___
|
||||
# _____ __ __ _
|
||||
# / ___// /_____ ___________/ /_ (_)___
|
||||
# \__ \/ __/ __ `/ ___/ ___/ __ \/ / __ \
|
||||
# ___/ / /_/ /_/ / / (__ ) / / / / /_/ /
|
||||
# /____/\__/\__,_/_/ /____/_/ /_/_/ .___/
|
||||
# /_/
|
||||
# /____/\__/\__,_/_/ /____/_/ /_/_/ .___/
|
||||
# /_/
|
||||
|
||||
[directory]
|
||||
read_only = " "
|
||||
|
@ -14,21 +14,14 @@ number_threshold = 3
|
|||
symbol = "✦ "
|
||||
format = "[$symbol$number]($style)"
|
||||
|
||||
[os]
|
||||
disabled = true
|
||||
format = "[$symbol]($style) "
|
||||
|
||||
[package]
|
||||
symbol = ""
|
||||
|
||||
[shell]
|
||||
disabled = true
|
||||
bash_indicator = ""
|
||||
nu_indicator = "ν"
|
||||
powershell_indicator = "PS"
|
||||
zsh_indicator = "zsh"
|
||||
style="cyan italic"
|
||||
format = "$indicator($style)"
|
||||
zsh_indicator = ""
|
||||
format = "$indicator"
|
||||
|
||||
[shlvl]
|
||||
disabled = false
|
||||
|
@ -36,16 +29,16 @@ threshold = 3
|
|||
symbol = "ﰬ"
|
||||
format = "[$symbol]($style) "
|
||||
|
||||
# __
|
||||
# __
|
||||
# / / ____ _____ ____ ___ ______ _____ ____ _____
|
||||
# / / / __ `/ __ \/ __ `/ / / / __ `/ __ `/ _ \/ ___/
|
||||
# / /___/ /_/ / / / / /_/ / /_/ / /_/ / /_/ / __(__ )
|
||||
# /_____/\__,_/_/ /_/\__, /\__,_/\__,_/\__, /\___/____/
|
||||
# /____/ /____/
|
||||
# / /___/ /_/ / / / / /_/ / /_/ / /_/ / /_/ / __(__ )
|
||||
# /_____/\__,_/_/ /_/\__, /\__,_/\__,_/\__, /\___/____/
|
||||
# /____/ /____/
|
||||
|
||||
[cmake]
|
||||
symbol = "C "
|
||||
#symbol = " "
|
||||
#symbol = "C "
|
||||
symbol = " "
|
||||
|
||||
[dotnet]
|
||||
format = "[$symbol($version )]($style)"
|
||||
|
@ -73,9 +66,6 @@ symbol = "Lua "
|
|||
[perl]
|
||||
symbol = "Perl "
|
||||
|
||||
[php]
|
||||
symbol = "PHP "
|
||||
|
||||
[python]
|
||||
symbol = "Py "
|
||||
#symbol = " "
|
||||
|
@ -89,20 +79,3 @@ symbol = "Ruby "
|
|||
[rust]
|
||||
symbol = "Rs "
|
||||
#symbol = " "
|
||||
|
||||
# ____ _____ _____ __ __
|
||||
# / __ \/ ___/ / ___/__ ______ ___ / /_ ____ / /____
|
||||
# / / / /\__ \ \__ \/ / / / __ `__ \/ __ \/ __ \/ / ___/
|
||||
# / /_/ /___/ / ___/ / /_/ / / / / / / /_/ / /_/ / (__ )
|
||||
# \____//____/ /____/\__, /_/ /_/ /_/_.___/\____/_/____/
|
||||
# /____/
|
||||
|
||||
[os.symbols]
|
||||
Arch = ""
|
||||
Linux = ""
|
||||
Macos = ""
|
||||
Mint = ""
|
||||
Raspbian = ""
|
||||
#Void = "" # really? no void?
|
||||
Windows = ""
|
||||
Unknown = ""
|
||||
|
|
|
@ -9,29 +9,35 @@ padding_x = 8
|
|||
family = Fira Code
|
||||
size = 11
|
||||
|
||||
[menu:cal]
|
||||
items = label:cal
|
||||
x = 1732
|
||||
y = 24
|
||||
|
||||
[menu:lan]
|
||||
items = label:ssid label:myip button:pingtest
|
||||
x = 1616
|
||||
y = 24
|
||||
|
||||
[menu:player]
|
||||
items = label:player
|
||||
x = 1632
|
||||
y = 32
|
||||
y = 24
|
||||
|
||||
[menu:redshift]
|
||||
items = button:redshift label:rs_period label:rs_temp
|
||||
x = 1632
|
||||
y = 32
|
||||
x = 1640
|
||||
y = 24
|
||||
|
||||
[menu:system]
|
||||
items = label:user button:lock button:sleep button:reboot button:poweroff
|
||||
items = label:user button:term button:logout button:reboot button:poweroff
|
||||
x = 5
|
||||
y = 32
|
||||
y = 24
|
||||
|
||||
[button:logout]
|
||||
text = Logout
|
||||
command = i3-msg exit
|
||||
|
||||
[button:lock]
|
||||
text = Lock
|
||||
command = slock
|
||||
|
||||
[button:pingtest]
|
||||
text = Ping Test
|
||||
command = ~/.script/inet/is-back
|
||||
|
@ -49,18 +55,10 @@ command = reboot
|
|||
text = Redshift
|
||||
command = ~/.config/sysmenu/script/redshift_tog.sh
|
||||
|
||||
[button:sleep]
|
||||
text = Sleep
|
||||
command = ~/.script/sleep.sh
|
||||
|
||||
[button:term]
|
||||
text = Open Terminal
|
||||
command = wezterm
|
||||
|
||||
[button:wally]
|
||||
text = Wally
|
||||
command = wally
|
||||
|
||||
[label:cal]
|
||||
font = fira
|
||||
text = $(cal)
|
||||
|
@ -69,7 +67,11 @@ strip = right
|
|||
|
||||
[label:myip]
|
||||
font = fira
|
||||
text = $(~/.script/myip.sh)
|
||||
text = $(ip addr | grep 192. | awk '{ print substr($2, 0, length($2) - 3 ) }')
|
||||
eval = true
|
||||
|
||||
[label:player]
|
||||
text = $(playerctl metadata | head -n 1 | awk '{ print $1 }')
|
||||
eval = true
|
||||
|
||||
[label:rs_period]:
|
||||
|
@ -84,7 +86,7 @@ eval = true
|
|||
|
||||
[label:ssid]
|
||||
font = fira
|
||||
text = $(~/.config/sysmenu/script/ssid.sh)
|
||||
text = $(iwctl station wlan0 show | grep Connected | awk '{ print $3 }')
|
||||
eval = true
|
||||
|
||||
[label:user]
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
0
|
|
@ -1,11 +0,0 @@
|
|||
#!/usr/bin/bash
|
||||
|
||||
WLAN=$(iwctl station wlan0 show | grep Connected)
|
||||
if [[ $? -eq 0 ]]; then
|
||||
$WLAN | awk '{ print $3 }'
|
||||
elif ip addr | grep 'enp0s31f6$' > /dev/null; then
|
||||
echo "Ethernet"
|
||||
else
|
||||
echo "Disconnected"
|
||||
fi
|
||||
|
73
tmux.conf
73
tmux.conf
|
@ -1,73 +0,0 @@
|
|||
# __
|
||||
# / /_____ ___ __ ___ __
|
||||
# / __/ __ `__ \/ / / / |/_/
|
||||
#/ /_/ / / / / / /_/ /> <
|
||||
#\__/_/ /_/ /_/\__,_/_/|_|
|
||||
#
|
||||
set -g mouse on
|
||||
|
||||
# __ __ __ _ __
|
||||
# / //_/__ __ __/ /_ (_)___ ____/ /____
|
||||
# / ,< / _ \/ / / / __ \/ / __ \/ __ / ___/
|
||||
# / /| / __/ /_/ / /_/ / / / / / /_/ (__ )
|
||||
#/_/ |_\___/\__, /_.___/_/_/ /_/\__,_/____/
|
||||
# /____/
|
||||
unbind d
|
||||
bind M-Escape detach-client
|
||||
|
||||
# Splits
|
||||
unbind '"'
|
||||
unbind %
|
||||
bind h split-window -h
|
||||
bind v split-window -v
|
||||
|
||||
# Navigation
|
||||
unbind w
|
||||
unbind s
|
||||
unbind a
|
||||
bind w select-pane -U
|
||||
bind s select-pane -D
|
||||
bind a select-pane -L
|
||||
bind d select-pane -R
|
||||
|
||||
unbind n
|
||||
unbind p
|
||||
bind q previous-window
|
||||
bind e next-window
|
||||
|
||||
# ___
|
||||
# / | ____ ____ ___ ____ __________ _____ ________
|
||||
# / /| | / __ \/ __ \/ _ \/ __ `/ ___/ __ `/ __ \/ ___/ _ \
|
||||
# / ___ |/ /_/ / /_/ / __/ /_/ / / / /_/ / / / / /__/ __/
|
||||
# /_/ |_/ .___/ .___/\___/\__,_/_/ \__,_/_/ /_/\___/\___/
|
||||
# /_/ /_/
|
||||
|
||||
# Modes
|
||||
setw -g clock-mode-colour colour7
|
||||
setw -g clock-mode-style 12
|
||||
|
||||
setw -g mode-style 'fg=colour15 bold bg=colour235'
|
||||
|
||||
# Panes
|
||||
set -g pane-border-style 'fg=colour251'
|
||||
set -g pane-active-border-style 'fg=colour69'
|
||||
|
||||
# Status Bar
|
||||
set -g status-position bottom
|
||||
set -g status-justify left
|
||||
set -g status-style 'fg=colour15'
|
||||
set -g status-left ''
|
||||
set -g status-right ' #[fg=colour233]#[fg=colour15,bg=colour233] #(whoami)@#H #[fg=colour236,bg=colour233]#[fg=colour15,bg=colour236] %m/%d #[fg=colour239,bg=colour236]#[fg=colour15,bg=colour239] %I:%M '
|
||||
# set -g status-right ' #[fg=colour233]#[fg=colour15,bg=colour233] #H #[fg=colour236,bg=colour233]#[fg=colour15,bg=colour236] %m/%d #[fg=colour239,bg=colour236]#[fg=colour15,bg=colour239] %I:%M '
|
||||
|
||||
setw -g window-status-current-style 'fg=colour15 bold bg=colour242'
|
||||
setw -g window-status-current-format ' #W '
|
||||
|
||||
setw -g window-status-style 'fg=colour15 bg=colour233' # 'fg=colour15 bg=colour237'
|
||||
setw -g window-status-format ' #W '
|
||||
|
||||
setw -g window-status-bell-style 'fg=colour7 bg=colour202'
|
||||
|
||||
set -g message-style 'fg=colour15'
|
||||
# bg=colour235
|
||||
|
|
@ -6,9 +6,7 @@
|
|||
"
|
||||
syntax on
|
||||
filetype plugin on
|
||||
let g:onedark_termcolors = 256
|
||||
colorscheme onedark
|
||||
" colorscheme pablo
|
||||
colorscheme pablo
|
||||
|
||||
set autoindent
|
||||
set noexpandtab
|
||||
|
@ -23,7 +21,5 @@ set shiftwidth=4
|
|||
" /____/
|
||||
|
||||
" Ctrl+Tab: Toggle tab markers
|
||||
map <C-`> :set list! lcs=tab:\¦\ <CR>
|
||||
" Ctrl+L: Toggle line numbers
|
||||
map <C-l> :set number! <CR>
|
||||
map <C-Tab> :set list! lcs=tab:\¦\ <CR>
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
|
||||
valerie = {
|
||||
ansi = {
|
||||
"#000000", -- Black
|
||||
"#C91B00", -- Red
|
||||
"#00C200", -- Green
|
||||
"#C7C329", -- Yellow
|
||||
"#0225C7", -- Blue
|
||||
"#C930C7", -- Purple
|
||||
"#00C5C7", -- Cyan
|
||||
"#C7C7C7" -- Gray
|
||||
},
|
||||
brights = {
|
||||
"#676767",
|
||||
"#FF6D67",
|
||||
"#5FF967",
|
||||
"#FFFA72",
|
||||
"#6871FF",
|
||||
"#FF76FF",
|
||||
"#68FDFE",
|
||||
"#FFFFFF"
|
||||
}
|
||||
}
|
|
@ -1,5 +1,4 @@
|
|||
local wezterm = require 'wezterm';
|
||||
local colorscheme = require 'colors'
|
||||
|
||||
-- _ __ __
|
||||
-- | | / /__ ____ / /____ _________ ___
|
||||
|
@ -7,7 +6,7 @@ local colorscheme = require 'colors'
|
|||
-- | |/ |/ / __/ / /_/ /_/ __/ / / / / / / /
|
||||
-- |__/|__/\___/ /___/\__/\___/_/ /_/ /_/ /_/
|
||||
--
|
||||
config = {};
|
||||
config = {}
|
||||
|
||||
-- ______ __ __ ______ __
|
||||
-- / ____/___ ____ / /_ ____ _____ ____/ / / ____/___ / /___ _____
|
||||
|
@ -24,7 +23,6 @@ config.font_size = 11.0;
|
|||
config.harfbuzz_features = {
|
||||
"ss07"
|
||||
}
|
||||
|
||||
config.colors = {
|
||||
foreground = "#FFFFFF",
|
||||
background = "#000000",
|
||||
|
@ -35,8 +33,26 @@ config.colors = {
|
|||
selection_fg = "#C7C7C7",
|
||||
selection_bg = "#454545",
|
||||
|
||||
ansi = valerie.ansi,
|
||||
brights = valerie.brights
|
||||
ansi = {
|
||||
"#000000",
|
||||
"#C91B00",
|
||||
"#00C200",
|
||||
"#C7C329",
|
||||
"#0225C7",
|
||||
"#C930C7",
|
||||
"#00C5C7",
|
||||
"#C7C7C7"
|
||||
},
|
||||
brights = {
|
||||
"#676767",
|
||||
"#FF6D67",
|
||||
"#5FF967",
|
||||
"#FFFA72",
|
||||
"#6871FF",
|
||||
"#FF76FF",
|
||||
"#68FDFE",
|
||||
"#FFFFFF"
|
||||
}
|
||||
}
|
||||
config.bold_brightens_ansi_colors = true;
|
||||
config.default_cursor_style = "BlinkingBlock";
|
||||
|
@ -50,9 +66,7 @@ config.text_background_opacity = 1.0;
|
|||
-- | |/ |/ / / / / / /_/ / /_/ / |/ |/ /
|
||||
-- |__/|__/_/_/ /_/\__,_/\____/|__/|__/
|
||||
--
|
||||
config.enable_tab_bar = true;
|
||||
config.hide_tab_bar_if_only_one_tab = true;
|
||||
config.tab_bar_at_bottom = true;
|
||||
config.enable_tab_bar = false;
|
||||
config.window_padding = {
|
||||
top = 12,
|
||||
bottom = 12,
|
Loading…
Reference in a new issue