sporo zmian, nie pamiętam czego :)

This commit is contained in:
2023-07-08 13:12:31 +02:00
parent 060b2022d2
commit 192276ff80
38 changed files with 1260 additions and 51 deletions

View File

@ -293,3 +293,31 @@ colors:
# magenta: '0x888ba5'
# cyan: '0x599caa'
# white: '0xd3ebe9'
# BEGIN ACE
colors:
primary:
background: '0x0C0F11'
foreground: '0xdfecee'
cursor:
text: '0x0C0F11'
cursor: '0xdfecee'
normal:
black: '0x0C0F11'
red: '0x23837B'
green: '0x297889'
yellow: '0x507785'
blue: '0x38B3BF'
magenta: '0x539DA8'
cyan: '0xA5CCD5'
white: '0xdfecee'
bright:
black: '0x9ca5a6'
red: '0x23837B'
green: '0x297889'
yellow: '0x507785'
blue: '0x38B3BF'
magenta: '0x539DA8'
cyan: '0xA5CCD5'
white: '0xdfecee'
# END ACE

View File

@ -2,8 +2,8 @@
LocationMode=path-bar
ShowHidden=false
ShowSizeColumn=true
GeometryX=1920
GeometryY=62
GeometryX=2376
GeometryY=194
GeometryWidth=1008
GeometryHeight=690
SortColumn=name

View File

@ -0,0 +1 @@
file:///home/paramah/Nextcloud

191
.config/gtk-3.0/gtk.css Normal file
View File

@ -0,0 +1,191 @@
/* Custom styles */
/* select-off
@define-color selected_bg_color #398ee7;
@define-color selected_fg_color #eeeeee;
@define-color theme_selected_bg_color @selected_bg_color;
@define-color theme_selected_fg_color @selected_fg_color;
select-off */
/* panel-off
@define-color panel_bg_color #cccccc;
@define-color panel_fg_color #333333;
PanelWidget,
PanelApplet,
PanelToplevel,
PanelSeparator,
PanelApplet > GtkMenuBar.menubar,
PanelApplet > GtkMenuBar.menubar.menuitem,
PanelMenuBar.menubar,
PanelMenuBar.menubar.menuitem,
PanelAppletFrame,
UnityPanelWidget,
.gnome-panel-menu-bar,
.unity-panel {
background-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,0.8)));
color: @panel_fg_color;
}
.unity-panel.menuitem,
.unity-panel .menuitem {
color: @panel_fg_color;
}
.unity-panel.menubar.menuitem:hover,
.unity-panel.menubar .menuitem *:hover {
border-color: shade(@panel_bg_color, 0.7);
border-image: none;
background-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color, 0.97)),to(shade(@panel_bg_color, 0.82)));
color: @panel_fg_color;
}
PanelApplet .button {
border-color: transparent;
border-image: none;
background-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,0.8)));
color: @panel_fg_color;
box-shadow: none;
text-shadow: none;
-unico-inner-stroke-width: 0;
}
PanelApplet .button:active {
border-color: shade(@panel_bg_color,0.8);
border-image: none;
background-image: -gtk-gradient(linear,left top,left bottom,from(shade(shade(@panel_bg_color,1.02),0.9)),to(shade(shade(@panel_bg_color,1.02),0.95)));
color: @panel_fg_color;
box-shadow: none;
text-shadow: none;
-unico-inner-stroke-width: 0;
}
PanelApplet .button:prelight {
border-color: transparent;
border-image: none;
background-image: -gtk-gradient(linear,left top,left bottom,from(shade(@panel_bg_color,1.2)),to(shade(@panel_bg_color,1.0)));
color: @panel_fg_color;
box-shadow: none;
text-shadow: none;
-unico-inner-stroke-width: 0;
}
PanelApplet .button:active:prelight {
border-color: shade(@panel_bg_color,0.8);
border-image: none;
background-image: -gtk-gradient(linear,left top,left bottom,from(shade(shade(@panel_bg_color,1.02),1.0)),to(shade(shade(@panel_bg_color,1.02),1.05)));
color: @panel_fg_color;
box-shadow: none;
text-shadow: none;
-unico-inner-stroke-width: 0;
}
WnckPager,
WnckTasklist {
background-color: @panel_bg_color;
}
panel-off */
/* menu-off
@define-color menu_bg_color #eeeeee;
@define-color menu_fg_color #333333;
GtkTreeMenu.menu,
GtkMenuToolButton.menu,
GtkComboBox .menu {
background-color: @menu_bg_color;
}
.primary-toolbar .button .menu,
.toolbar .menu,
.toolbar .primary-toolbar .menu,
.menu {
border-style: none;
background-image: none;
background-color: @menu_bg_color;
color: @menu_fg_color;
box-shadow: none;
text-shadow: none;
-unico-inner-stroke-width: 0;
}
.menu.button:hover,
.menu.button:active,
.menu.button:active:insensitive,
.menu.button:insensitive,
.menu.button {
background-color: @menu_bg_color;
background-image: none;
}
GtkTreeMenu .menuitem * {
color: @menu_fg_color;
}
.menuitem,
.menu .menuitem {
background-color: transparent;
}
.menu .menuitem:active,
.menu .menuitem:hover {
background-color: @theme_selected_bg_color;
}
.menuitem.check,
.menuitem.radio,
.menuitem.check:hover,
.menuitem.radio:hover,
.menuitem.check:active,
.menuitem.radio:active {
background-color: transparent;
}
.menu .menuitem:insensitive,
.menu .menuitem *:insensitive {
color: mix(@menu_fg_color,@menu_bg_color,0.5);
}
.menuitem.arrow {
color: alpha(@menu_fg_color, 0.6);
}
.menuitem .entry {
border-color: shade(@menu_bg_color,0.7);
border-image: none;
background-color: @menu_bg_color;
background-image: none;
color: @menu_fg_color;
}
.menuitem .accelerator {
color: alpha(@menu_fg_color,0.6);
}
.menuitem .accelerator:insensitive {
color: alpha(mix(@menu_fg_color,@menu_bg_color,0.5),0.6);
text-shadow: none;
}
.menuitem.separator {
background-color: transparent;
color: shade(@menu_bg_color, 0.9);
}
.menuitem GtkCalendar,
.menuitem GtkCalendar.button,
.menuitem GtkCalendar.header,
.menuitem GtkCalendar.view {
border-color: shade(@menu_bg_color,0.8);
border-image: none;
background-color: @menu_bg_color;
background-image: none;
color: @menu_fg_color;
}
.menuitem GtkCalendar:inconsistent {
color: mix(@menu_fg_color,@menu_bg_color,0.5);
}
menu-off */

16
.config/gtk-4.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://skrzat/" added="2022-11-06T15:19:47.205875Z" modified="2022-11-06T15:19:47.205893Z" visited="2022-11-06T15:19:47.205880Z">
<title>Windows shares on skrzat</title>
<info>
<metadata owner="http://freedesktop.org">
<bookmark:applications>
<bookmark:application name="org.gnome.Nautilus" exec="&apos;org.gnome.Nautilus %u&apos;" modified="2022-11-06T15:19:47.205885Z" count="1"/>
</bookmark:applications>
</metadata>
</info>
</bookmark>
</xbel>

View File

@ -1,2 +1,3 @@
[Settings]
gtk-hint-font-metrics=true
gtk-application-prefer-dark-theme=1

View File

@ -15,3 +15,9 @@ profile StreamSage {
output DP-7 mode 1920x1080@60Hz position 3830,0
output DP-6 mode 1920x1080@60Hz position 0,0
}
profile StreamSage_duzy {
output eDP-1 mode 1920x1080 position 1930,0
output DP-4 mode 1920x1080 position 0,0
output DP-5 mode 1920x1080 position 3870,0
}

View File

@ -64,7 +64,7 @@ font-1 = RobotoMono Nerd Font:antialias=true:size=12;2
font-2 = RobotoMono Nerd Font:antialias=false:size=14;2
font-3 = RobotoMono Nerd Font:antialias=true:size=18;0
modules-left = i3
modules-left = biurko_on
modules-center = xwindow
modules-right = cpu memory temperature date
@ -263,6 +263,9 @@ format-prefix="%{T1}%{T-} "
format-background = ${colors.primary}
exec = python /home/paramah/.config/polybar/polybar-spotify/spotify_status.py -f '{song} by {artist}'
[module/biurko_on]
type = custom/script
exec = /home/paramah/.config/polybar/webhooks/biurko_on.sh
[module/memory]
type = internal/memory

View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/ledy_on

View File

@ -15,16 +15,16 @@ def glyph(ws_number):
"""
# glyphs = ["", "", "", "", "", "", "", ""]
glyphs = [
".::term:::.",
".:::web:::.",
".:::work::.",
".::((4))::.",
".::debug::.",
".::((6))::.",
".::books::.",
".::meets::.",
".::music::.",
".::mail:::."
".::term[1]:::.",
".::web.[2]:::.",
".::work[3]::.",
".::code[4]::.",
".::debu[5]::.",
".::note[6]:::.",
".::read[7]::.",
".::meet[8]::.",
".::musi[9]::.",
".::mail[0]:::."
]
try:
return glyphs[ws_number - 1]

View File

@ -24,6 +24,8 @@ set $term alacritty
set $menu dmenu_path | dmenu | xargs swaymsg exec --
font Terminus 9
#font pango:SourceCodePro Medium 11
gaps inner 10
default_border none
default_border normal 0

View File

@ -27,4 +27,4 @@ client.unfocused $color2 $background $color1 $color2 $color2
client.urgent $foreground $background $color7 $foreground $foreground
output * bg $wallpaper fill
output * bg $wallpaper fill

View File

@ -1,13 +1,13 @@
# Define names for workspaces
set $ws1 "1: .>"
set $ws2 "2: (web)"
set $ws3 "3: (work)"
set $ws4 "4: (frontend)"
set $ws5 "5: (debug)"
set $ws1 "1: .::term[1]:::."
set $ws2 "2: .::web.[2]:::."
set $ws3 "3: .::work[3]:::."
set $ws4 "4: .::code[4]::."
set $ws5 "5: .::debu[5]::."
set $ws9 "9: (music)"
set $ws10 "10: (mail)"
set $ws9 "9: .::musi[9]::."
set $ws10 "10: .::mail[0]:::."
workspace 1 output eDP-1
workspace 2 output eDP-1

View File

@ -18,3 +18,8 @@
input "1:1:AT_Translated_Set_2_keyboard" {
xkb_layout pl
}
input "2:10:TPPS/2_Elan_TrackPoint" {
accel_profile "flat"
pointer_accel 0.2
}

View File

@ -1,10 +1,12 @@
#for_window [class="^.*"] title_format "%title [%class]"
#for_window [class="^.*"] border pixel 0
for_window [app_id="(.*)Telegram(.*)"] resize set 900 600, move scratchpad, border pixel 1
for_window [app_id="(.*)telegram(.*)"] resize set 900 600, move scratchpad, border pixel 1
for_window [class="Mattermost"] resize set 900 600, move scratchpad, border pixel 1
for_window [title="WhatsApp"] move scratchpad, border pixel 1
for_window [class="discord"] move scratchpad, border pixel 1
for_window [window_role="floating"] floating enable
for_window [class="QSyncthingTray"] floating enable
for_window [app_id="(.*)Calendar"] resize set 900 600, move scratchpad
for_window [class="Thunderbird" window_type="normal"] move scratchpad, floating enable, resize set 1600 1050, border pixel 2
for_window [class="Nautilus"] floating enable
for_window [class="Gnome-calculator"] floating enable
@ -17,4 +19,7 @@ for_window [app_id="zenity"] floating enable
for_window [app_id="gnome-calendar"] floating enable
for_window [class="Joplin"] move scratchpad, floating enable
for_window [class="Joplin"] move scratchpad, floating enable
for_window [class="Rofi"] output eDP-1
for_window [title="Firefox — Sharing Indicator"] kill

View File

@ -10,7 +10,7 @@
# Start your launcher
# bindsym $mod+d exec $menu
bindsym $mod+d exec --no-startup-id rofi -show drun
bindsym $mod+d exec --no-startup-id /home/paramah/.config/rofi/launchers/type-3/launcher.sh
# Drag floating windows by holding down $mod and left mouse button.
# Resize them with right mouse button + $mod.
@ -43,6 +43,7 @@
bindsym $mod+Shift+$down move down
bindsym $mod+Shift+$up move up
bindsym $mod+Shift+$right move right
# Ditto, with arrow keys
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
@ -164,6 +165,7 @@ bindsym --locked XF86MonBrightnessDown exec brightnessctl set 5%-
## Modify // Volume up // <XF86AudioRaiseVolume> ##
#bindsym XF86AudioRaiseVolume exec pactl set-sink-volume $(pacmd list-sinks |awk '/* index:/{print $3}') +5%
bindsym --locked XF86AudioRaiseVolume exec volumectl up
bindsym --locked $mod+Shift+i exec volumectl up
## Modify // Volume down // <XF86AudioLowerVolume> ##
#bindsym XF86AudioLowerVolume exec pactl set-sink-volume $(pacmd list-sinks |awk '/* index:/{print $3}') -5%
@ -199,7 +201,7 @@ bindsym $mod+x exec $BIN_DIR/dmenuscreenshare.sh
bindsym $mod+p [class="Mattermost"] scratchpad show
bindsym $mod+Shift+m [class="Thunderbird"] scratchpad show
bindsym $mod+i exec --no-startup-id rofi -show window -theme /usr/share/rofi-menus-git/themes/appsmenu.rasi
bindsym $mod+i exec --no-startup-id /home/paramah/.config/rofi/launchers/type-4/launcher.sh -show window
bindsym $mod+Shift+o exec --no-startup-id ~/.config/rofi/scripts/nmvpnmenu.sh
bindsym $mod+o exec --no-startup-id ~/.config/rofi/scripts/sound.sh
@ -211,3 +213,6 @@ bindsym $mod+u exec env RUST_BACKTRACE=1 swayr switch-window >> /tmp/swayr.log 2
bindsym $mod+Tab exec env RUST_BACKTRACE=1 swayr switch-to-urgent-or-lru-window >> /tmp/swayr.log 2>&1
bindsym $mod+$alt+Space exec env RUST_BACKTRACE=1 swayr switch-workspace-or-window >> /tmp/swayr.log 2>&1
bindsym $mod+c [app_id="(.*)Calendar"] scratchpad show

View File

@ -1,4 +1,4 @@
exec --no-startup-id swaymsg 'workspace number 1; exec alacritty; workspace number 10; exec thunderbird; workspace number 9; exec spotify; workspace number 2; exec brave'
exec --no-startup-id swaymsg 'workspace number 1; exec alacritty; workspace number 10; exec thunderbird; workspace number 9; exec spotify; workspace number 2; exec firefox'
exec wl-paste -t text --watch clipman store
exec nm-applet --indicator
@ -23,4 +23,5 @@ exec --no-startup-id swaymsg rename workspace number 10 to $ws10
exec ~/.config/sway/bin/session.sh
#exec ~/.config/sway/bin/assign-cgroups.py
#exec ~/.config/sway/bin/assign-cgroups.py
exec_always "systemctl --user restart kanshi.service"

View File

@ -1,5 +1,6 @@
[menu]
executable = 'wofi'
#executable = 'rofi'
args = [
'--show=dmenu',
'--allow-markup',

View File

@ -0,0 +1 @@
/dev/null

View File

@ -0,0 +1 @@
/dev/null

View File

@ -0,0 +1,736 @@
{{
"name": "vs-wal",
"type": "dark",
"colors": {{
"editor.background": "{background}",
"editor.foreground": "{foreground}",
"activityBarBadge.background": "{color9}",
"sideBarTitle.foreground": "{foreground}",
"activityBar.background": "{background}",
"activityBar.dropBackground": "{color3}",
"activityBar.foreground": "{foreground}",
"activityBarBadge.foreground": "{foreground}",
"badge.foreground": "{foreground}",
"badge.background": "{background}",
"terminal.background": "{background}",
"terminal.foreground": "{foreground}",
"terminal.ansiBlack": "{color0}",
"terminal.ansiRed": "{color1}",
"terminal.ansiGreen": "{color2}",
"terminal.ansiYellow": "{color3}",
"terminal.ansiBlue": "{color4}",
"terminal.ansiMagenta": "{color5}",
"terminal.ansiCyan": "{color6}",
"terminal.ansiWhite": "{color7}",
"terminal.ansiBrightBlack": "{color8}",
"terminal.ansiBrightRed": "{color9}",
"terminal.ansiBrightGreen": "{color10}",
"terminal.ansiBrightYellow": "{color11}",
"terminal.ansiBrightBlue": "{color12}",
"terminal.ansiBrightMagenta": "{color13}",
"terminal.ansiBrightCyan": "{color14}",
"terminal.ansiBrightWhite": "{color15}",
"sideBar.background": "{background}",
"sideBar.foreground": "{foreground}",
"statusBar.background": "{background}",
"statusBar.debuggingBackground": "{foreground}",
"statusBar.debuggingForeground": "{background}",
"statusBar.noFolderForeground": "{foreground}",
"statusBar.noFolderBackground": "{background}",
"statusBar.foreground": "{foreground}",
"tab.activeBorder": "{color0}",
"tab.unfocusedActiveBorder": "{color0}",
"tab.activeBackground": "{foreground}10",
"tab.activeForeground": "{foreground}",
"tab.inactiveBackground": "{background}",
"tab.inactiveForeground": "{foreground}",
"tab.unfocusedActiveForeground": "{color1}",
"tab.unfocusedInactiveForeground": "{background}",
"input.background": "{background}",
"input.foreground": "{foreground}",
"button.background": "{color1}",
"button.foreground": "{foreground}",
"editorGroupHeader.tabsBackground": "{background}",
"editorGroup.dropBackground": "{color1}60",
"textLink.activeForeground": "{color3}",
"textLink.foreground": "{color2}",
"list.activeSelectionBackground": "{color2}",
"list.focusBackground": "{color2}",
"list.hoverForeground": "{foreground}",
"list.hoverBackground": "{color2}30",
"list.dropBackground": "{color2}30"
}},
"tokenColors": [
{{
"settings": {{
"foreground": "{color1}",
"background": "{background}"
}}
}},
{{
"name": "Comment",
"scope": [
"comment",
"punctuation.definition.comment"
],
"settings": {{
"fontStyle": "italic",
"foreground": "{color8}"
}}
}},
{{
"name": "Variables",
"scope": [
"variable",
"string constant.other.placeholder"
],
"settings": {{
"foreground": "{color6}"
}}
}},
{{
"name": "Colors",
"scope": [
"constant.other.color"
],
"settings": {{
"foreground": "{color7}"
}}
}},
{{
"name": "Invalid",
"scope": [
"invalid",
"invalid.illegal"
],
"settings": {{
"foreground": "{color9}"
}}
}},
{{
"name": "Keyword, Storage",
"scope": [
"keyword",
"storage.type",
"storage.modifier"
],
"settings": {{
"foreground": "{color2}"
}}
}},
{{
"name": "Operator, Misc",
"scope": [
"keyword.control",
"constant.other.color",
"punctuation",
"meta.tag",
"punctuation.definition.tag",
"punctuation.separator.inheritance.php",
"punctuation.definition.tag.html",
"punctuation.definition.tag.begin.html",
"punctuation.definition.tag.end.html",
"punctuation.section.embedded",
"keyword.other.template",
"keyword.other.substitution"
],
"settings": {{
"foreground": "{color6}"
}}
}},
{{
"name": "Tag",
"scope": [
"entity.name.tag",
"meta.tag.sgml",
"markup.deleted.git_gutter"
],
"settings": {{
"foreground": "{color9}"
}}
}},
{{
"name": "Function, Special Method",
"scope": [
"entity.name.function",
"meta.function-call",
"variable.function",
"support.function",
"keyword.other.special-method"
],
"settings": {{
"foreground": "{color1}"
}}
}},
{{
"name": "Block Level Variables",
"scope": [
"meta.block variable.other"
],
"settings": {{
"foreground": "{color9}"
}}
}},
{{
"name": "Other Variable, String Link",
"scope": [
"support.other.variable",
"string.other.link"
],
"settings": {{
"foreground": "{color9}"
}}
}},
{{
"name": "Number, Constant, Function Argument, Tag Attribute, Embedded",
"scope": [
"constant.numeric",
"constant.language",
"support.constant",
"constant.character",
"constant.escape",
"variable.parameter",
"keyword.other.unit",
"keyword.other"
],
"settings": {{
"foreground": "{color3}"
}}
}},
{{
"name": "String, Symbols, Inherited Class, Markup Heading",
"scope": [
"string",
"constant.other.symbol",
"constant.other.key",
"entity.other.inherited-class",
"markup.heading",
"markup.inserted.git_gutter",
"meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js"
],
"settings": {{
"fontStyle": "normal",
"foreground": "{color4}"
}}
}},
{{
"name": "Class, Support",
"scope": [
"entity.name",
"support.type",
"support.class",
"support.orther.namespace.use.php",
"meta.use.php",
"support.other.namespace.php",
"markup.changed.git_gutter",
"support.type.sys-types"
],
"settings": {{
"foreground": "{color5}"
}}
}},
{{
"name": "Entity Types",
"scope": [
"support.type"
],
"settings": {{
"foreground": "{color14}"
}}
}},
{{
"name": "CSS Class and Support",
"scope": [
"source.css support.type.property-name",
"source.sass support.type.property-name",
"source.scss support.type.property-name",
"source.less support.type.property-name",
"source.stylus support.type.property-name",
"source.postcss support.type.property-name"
],
"settings": {{
"foreground": "{color14}"
}}
}},
{{
"name": "Sub-methods",
"scope": [
"entity.name.module.js",
"variable.import.parameter.js",
"variable.other.class.js"
],
"settings": {{
"foreground": "{color9}"
}}
}},
{{
"name": "Language methods",
"scope": [
"variable.language"
],
"settings": {{
"fontStyle": "italic",
"foreground": "{color9}"
}}
}},
{{
"name": "entity.name.method.js",
"scope": [
"entity.name.method.js"
],
"settings": {{
"fontStyle": "italic",
"foreground": "{color12}"
}}
}},
{{
"name": "meta.method.js",
"scope": [
"meta.class-method.js entity.name.function.js",
"variable.function.constructor"
],
"settings": {{
"foreground": "{color12}"
}}
}},
{{
"name": "Attributes",
"scope": [
"entity.other.attribute-name"
],
"settings": {{
"foreground": "{color13}"
}}
}},
{{
"name": "HTML Attributes",
"scope": [
"text.html.basic entity.other.attribute-name.html",
"text.html.basic entity.other.attribute-name"
],
"settings": {{
"fontStyle": "italic",
"foreground": "{color3}"
}}
}},
{{
"name": "CSS Classes",
"scope": [
"entity.other.attribute-name.class"
],
"settings": {{
"foreground": "{color3}"
}}
}},
{{
"name": "CSS ID's",
"scope": [
"source.sass keyword.control"
],
"settings": {{
"foreground": "{color12}"
}}
}},
{{
"name": "Inserted",
"scope": [
"markup.inserted"
],
"settings": {{
"foreground": "{color10}"
}}
}},
{{
"name": "Deleted",
"scope": [
"markup.deleted"
],
"settings": {{
"foreground": "{color9}"
}}
}},
{{
"name": "Changed",
"scope": [
"markup.changed"
],
"settings": {{
"foreground": "{color13}"
}}
}},
{{
"name": "Regular Expressions",
"scope": [
"string.regexp"
],
"settings": {{
"foreground": "{color14}"
}}
}},
{{
"name": "Escape Characters",
"scope": [
"constant.character.escape"
],
"settings": {{
"foreground": "{color14}"
}}
}},
{{
"name": "URL",
"scope": [
"*url*",
"*link*",
"*uri*"
],
"settings": {{
"fontStyle": "underline"
}}
}},
{{
"name": "Decorators",
"scope": [
"tag.decorator.js entity.name.tag.js",
"tag.decorator.js punctuation.definition.tag.js"
],
"settings": {{
"fontStyle": "italic",
"foreground": "{color12}"
}}
}},
{{
"name": "ES7 Bind Operator",
"scope": [
"source.js constant.other.object.key.js string.unquoted.label.js"
],
"settings": {{
"fontStyle": "italic",
"foreground": "{color9}"
}}
}},
{{
"name": "JSON Key - Level 0",
"scope": [
"source.json meta.structure.dictionary.json support.type.property-name.json"
],
"settings": {{
"foreground": "{color6}"
}}
}},
{{
"name": "JSON Key - Level 1",
"scope": [
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
],
"settings": {{
"foreground": "{color7}"
}}
}},
{{
"name": "JSON Key - Level 2",
"scope": [
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
],
"settings": {{
"foreground": "{color8}"
}}
}},
{{
"name": "JSON Key - Level 3",
"scope": [
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
],
"settings": {{
"foreground": "{color9}"
}}
}},
{{
"name": "JSON Key - Level 4",
"scope": [
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
],
"settings": {{
"foreground": "{color10}"
}}
}},
{{
"name": "JSON Key - Level 5",
"scope": [
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
],
"settings": {{
"foreground": "{color12}"
}}
}},
{{
"name": "JSON Key - Level 6",
"scope": [
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
],
"settings": {{
"foreground": "{color9}"
}}
}},
{{
"name": "JSON Key - Level 7",
"scope": [
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
],
"settings": {{
"foreground": "{color13}"
}}
}},
{{
"name": "JSON Key - Level 8",
"scope": [
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
],
"settings": {{
"foreground": "{color10}"
}}
}},
{{
"name": "Markdown - Plain",
"scope": [
"text.html.markdown",
"punctuation.definition.list_item.markdown"
],
"settings": {{
"foreground": "{color7}"
}}
}},
{{
"name": "Markdown - Markup Raw Inline",
"scope": [
"text.html.markdown markup.inline.raw.markdown"
],
"settings": {{
"foreground": "{color13}"
}}
}},
{{
"name": "Markdown - Markup Raw Inline Punctuation",
"scope": [
"text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown"
],
"settings": {{
"foreground": "{color8}"
}}
}},
{{
"name": "Markdown - Line Break",
"scope": [
"text.html.markdown meta.dummy.line-break"
],
"settings": {{
"foreground": ""
}}
}},
{{
"name": "Markdown - Heading",
"scope": [
"markdown.heading",
"markup.heading | markup.heading entity.name",
"markup.heading.markdown punctuation.definition.heading.markdown"
],
"settings": {{
"foreground": "{color10}"
}}
}},
{{
"name": "Markup - Italic",
"scope": [
"markup.italic"
],
"settings": {{
"fontStyle": "italic",
"foreground": "{color9}"
}}
}},
{{
"name": "Markup - Bold",
"scope": [
"markup.bold",
"markup.bold string"
],
"settings": {{
"fontStyle": "bold",
"foreground": "{color9}"
}}
}},
{{
"name": "Markup - Bold-Italic",
"scope": [
"markup.bold markup.italic",
"markup.italic markup.bold",
"markup.quote markup.bold",
"markup.bold markup.italic string",
"markup.italic markup.bold string",
"markup.quote markup.bold string"
],
"settings": {{
"fontStyle": "bold",
"foreground": "{color9}"
}}
}},
{{
"name": "Markup - Underline",
"scope": [
"markup.underline"
],
"settings": {{
"fontStyle": "underline",
"foreground": "{color10}"
}}
}},
{{
"name": "Markup - Strike",
"scope": [
"markup.strike"
],
"settings": {{
"fontStyle": "strike",
"foreground": ""
}}
}},
{{
"name": "Markdown - Blockquote",
"scope": [
"markup.quote punctuation.definition.blockquote.markdown"
],
"settings": {{
"background": "{color8}",
"foreground": "{color8}"
}}
}},
{{
"name": "Markup - Quote",
"scope": [
"markup.quote"
],
"settings": {{
"fontStyle": "italic",
"foreground": ""
}}
}},
{{
"name": "Markdown - Link",
"scope": [
"string.other.link.title.markdown"
],
"settings": {{
"foreground": "{color12}"
}}
}},
{{
"name": "Markdown - Link Description",
"scope": [
"string.other.link.description.title.markdown"
],
"settings": {{
"foreground": "{color13}"
}}
}},
{{
"name": "Markdown - Link Anchor",
"scope": [
"constant.other.reference.link.markdown"
],
"settings": {{
"foreground": "{color3}"
}}
}},
{{
"name": "Markup - Raw Block",
"scope": [
"markup.raw.block"
],
"settings": {{
"foreground": "{color13}"
}}
}},
{{
"name": "Markdown - Raw Block Fenced",
"scope": [
"markup.raw.block.fenced.markdown"
],
"settings": {{
"foreground": "{color15}50"
}}
}},
{{
"name": "Markdown - Fenced Bode Block",
"scope": [
"punctuation.definition.fenced.markdown"
],
"settings": {{
"foreground": "{color15}50"
}}
}},
{{
"name": "Markdown - Fenced Bode Block Variable",
"scope": [
"markup.raw.block.fenced.markdown",
"variable.language.fenced.markdown",
"punctuation.section.class.end"
],
"settings": {{
"foreground": "{color7}"
}}
}},
{{
"name": "Markdown - Fenced Language",
"scope": [
"variable.language.fenced.markdown"
],
"settings": {{
"foreground": "{color8}"
}}
}},
{{
"name": "Markdown - Separator",
"scope": [
"meta.separator"
],
"settings": {{
"fontStyle": "bold",
"background": "{color15}50",
"foreground": "{color8}"
}}
}},
{{
"name": "Markup - Table",
"scope": [
"markup.table"
],
"settings": {{
"foreground": "{color7}"
}}
}},
{{
"scope": "token.info-token",
"settings": {{
"foreground": "{color6}"
}}
}},
{{
"scope": "token.warn-token",
"settings": {{
"foreground": "{color3}"
}}
}},
{{
"scope": "token.error-token",
"settings": {{
"foreground": "{color9}"
}}
}},
{{
"scope": "token.debug-token",
"settings": {{
"foreground": "{color13}"
}}
}}
]
}}

View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/ledy_off

View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/ledy_on

View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/biurko_rainbow

View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/ledy_red

2
.config/waybar/bin/domofon.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/domofon

View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/tv_voldown

2
.config/waybar/bin/tv_volup.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
curl -X POST -d '' http://192.168.88.169:8123/api/webhook/tv_volup

View File

@ -1,11 +1,10 @@
// -*- mode: json -*-
[
{
"layer": "top",
"position": "top",
"modules-left": [
"sway/workspaces",
"sway/workspaces"
],
"modules-center": [
"sway/window"
@ -71,9 +70,15 @@
"custom/hum",
"custom/pressure",
"custom/pm_25",
"custom/pm_10",
"custom/pm_10"
],
"modules-center": [
"custom/biurko_on",
"custom/biurko_off",
"custom/biurko_rainbow",
"custom/domofon",
"custom/tv_volup",
"custom/tv_voldown"
],
"modules-right": [
"custom/rsyncnet",
@ -108,6 +113,42 @@
"exec": "$HOME/.config/waybar/bin/sensor.sh pm2_5"
},
"custom/biurko_on": {
"format": "ON",
"on-click": "$HOME/.config/waybar/bin/biurko_on.sh"
},
"custom/biurko_off": {
"format": "OFF",
"on-click": "$HOME/.config/waybar/bin/biurko_off.sh"
},
"custom/tv_volup": {
"format": "🔊",
"on-click": "$HOME/.config/waybar/bin/tv_volup.sh"
},
"custom/tv_voldown": {
"format": "🔈",
"on-click": "$HOME/.config/waybar/bin/tv_voldown.sh"
},
"custom/domofon": {
"format": "📷",
"on-click": "$HOME/.config/waybar/bin/domofon.sh"
},
"custom/biurko_rainbow": {
"format": "🎉",
"on-click": "$HOME/.config/waybar/bin/biurko_rainbow.sh"
},
"custom/biurko_red": {
"format": "RED",
"on-click": "$HOME/.config/waybar/bin/biurko_red.sh"
},
"custom/pm_10": {
"format": "pm10 {}",
"return-type": "text",
@ -115,14 +156,6 @@
"exec": "$HOME/.config/waybar/bin/sensor.sh pm10"
},
"custom/rsyncnet": {
"format": "{}",
"return-type": "text",
"interval": 60,
"exec": "cat /tmp/rsync.net"
},
"battery": {
"states": {
"good": 95,
@ -143,4 +176,4 @@
"spacing": 6
}
}
]
]

View File

@ -1,4 +1,12 @@
@import "../../.cache/wal/colors-waybar.css";
@define-color fore #dbcdac;
@define-color back #0f0e09;
@define-color inactive #9F8D5E;
@define-color dark #324443;
@define-color active #dbcdac;
@define-color orange #FFA500;
@define-color green #228b22;
@define-color blue #7cb9e8;
@define-color yellow #deb887;
* {
@ -38,6 +46,12 @@ window#waybar {
margin-left: 10px;
}
#custom-biurko_on,
#custom-biurko_off,
#custom-biurko_red,
#custom-tv_volup,
#custom-tv_voldown,
#custom-domofon,
#workspaces {
background: none;
color: white;
@ -75,7 +89,7 @@ window#waybar {
}
#workspaces button.focused {
color: #FFA500;
color: @orange;
margin: 0;
}
@ -98,3 +112,21 @@ window#waybar {
background: black;
padding: 0 10px;
}
#clock.2,
#custom-temperature {
color: @orange;
}
#custom-pressure {
color: @green;
}
#custom-hum {
color: @blue;
}
#custom-pm_25,
#custom-pm_10 {
color: @yellow;
}

View File

@ -1,9 +1,11 @@
[user]
email = aleksander@cynarski.pl
name = Aleksander Cynarski
signingkey = C4340BA42B9C173A
#signingkey = C4340BA42B9C173A
signingkey = 7C6540C5B18BF2930DDEDA4D6A7C0327F517CA88
[push]
default = matching
autoSetupRemote = true
[merge]
conflictstyle = diff3
tool = meld
@ -77,7 +79,13 @@
[includeIf "gitdir:~/Projects/CyfroweNiebo/"]
path = ~/Projects/CyfroweNiebo/.gitconfig
[includeIf "gitdir:~/Projects/streamsage/"]
[includeIf "gitdir:~/Projects/streamsage.io/"]
path = ~/Projects/streamsage.io/.gitconfig
[includeIf "gitdir:~/Projects/stream-sage/"]
path = ~/Projects/streamsage.io/.gitconfig
[includeIf "gitdir:~/Projects/cardboard.live/"]
path = ~/Projects/streamsage.io/.gitconfig
[includeIf "gitdir:~/Projects/GONG/"]
@ -107,3 +115,5 @@
[interactive]
diffFilter = delta --color-only
[safe]
directory = /opt/flutter

1
.gitignore vendored
View File

@ -4,7 +4,6 @@ compile
zeus/
_todos.md
.tmuxp.yaml
vendor/
./docker/docker-compose-elena.yml
.jira-url
.jira-prefix

48
.zshrc
View File

@ -10,6 +10,9 @@
#
#################################################################################
alias egrep="grep -E"
alias fgrep="grep -F"
#Load my environment exports
[ -f ~/.exports ] && source ~/.exports
@ -38,6 +41,7 @@ export PATH="/home/paramah/bin:$PATH"
#symfony
export PATH="$HOME/.symfony/bin:$PATH"
export PATH="/home/paramah/.linkerd2/bin:$PATH"
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
@ -53,6 +57,7 @@ source /usr/bin/virtualenvwrapper.sh
plugins=(
zsh-autosuggestions
virtualenvwrapper
virtualenv
taskwarrior
timewarrior
archlinux
@ -78,7 +83,7 @@ zplug 'ytet5uy4/fzf-widgets'
zplug 'zsh-users/zaw'
zplug "pbar1/zsh-terraform"
zplug 'voronkovich/project.plugin.zsh'
zplug romkatv/powerlevel10k, as:theme, depth:1
#zplug romkatv/powerlevel10k, as:theme, depth:1
zplug "jocelynmallon/zshmarks"
zplug "djui/alias-tips"
zplug "zpm-zsh/clipboard"
@ -166,6 +171,8 @@ export goinside;
##########################################################################################
alias egrep="grep -E"
alias fgrep="grep -F"
alias l="tmuxp load -y "
alias dc="docker-compose"
alias d="docker"
@ -202,6 +209,11 @@ alias vim="nvim"
alias j="jump"
alias b="bookmark"
alias r="ranger"
alias k="kubectl"
alias paste-online="wl-paste |lenpaste-cli"
dd_telegram-desktop () { # launch telegram and send it to scratchpad
(/usr/bin/telegram-desktop &)
@ -246,7 +258,7 @@ xset b off
#eval "$(starship init zsh)"
#eval "$(jira --completion-script-zsh)"
#eval "$(_JZ_COMPLETE=source_zsh jz)"
#eval "$(_HAJDUK_COMPLETE=source_zsh hajduk)"
eval "$(_HAJDUK_COMPLETE=source_zsh hajduk)"
#eval "$(_H_COMPLETE=source_zsh h)"
eval "$(direnv hook zsh)"
#eval "$(register-python-argcomplete gitlab)"
@ -289,14 +301,29 @@ function ec2-list(){
function ec2-connect(){
HOST=$(ec2-list | fzf --layout=reverse --border=none | awk '{print $4}' |sed 's/|//')
jssh $HOST
gum confirm "Add host to Stream Sage VPN route?" && skrzat mikrotik tovpn jazzy-l2tp jazzy ${HOST}
USER=$(gum choose "ec2-user" "admin" "ubuntu" "bitnami")
jssh $USER@$HOST
}
function ec2-vpc-connect(){
HOST=$(ec2-list | fzf --layout=reverse --border=none | awk '{print $6}')
jssh $HOST
USER=$(gum choose "ec2-user" "admin" "ubuntu" "bitnami")
jssh $USER@$HOST
}
function targetgroups-list(){
LB_ARN=$(aws elbv2 describe-load-balancers --query "LoadBalancers[*][LoadBalancerName, LoadBalancerArn]" --output table |fzf | awk '{print $4}')
echo LB_ARN
}
function tester-toogle(){
if [[ $(aws ec2 describe-instances --instance-ids $EC_TESTER_ID --query 'Reservations[].Instances[].State[].Name' --output text) = "running" ]] ; then \
aws ec2 stop-instances --instance-ids $EC_TESTER_ID; \
elif [[ $(aws ec2 describe-instances --instance-ids $EC_TESTER_ID --query 'Reservations[].Instances[].State[].Name' --output text) = "stopped" ]] ; then \
aws ec2 start-instances --instance-ids $EC_TESTER_ID ; \
fi
}
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
@ -311,7 +338,7 @@ source $HOME/.oh-my-zsh/custom/plugins/fzf-tab-completion/zsh/fzf-zsh-completion
autoload -Uz bashcompinit && bashcompinit
complete -C aws_completer aws
eval "$(_MOLECULE_COMPLETE=source molecule)"
# eval "$(_MOLECULE_COMPLETE=source molecule)"
#. ~/.cache/wal/colors.sh
#
#
@ -390,11 +417,16 @@ PERL_MM_OPT="INSTALL_BASE=/home/paramah/perl5"; export PERL_MM_OPT;
PATH="/home/paramah/.local/share/gem/ruby/3.0.0/bin${PATH:+${PATH}}"; export PATH;
#source <(clockify-cli completion zsh)
source <(kubectl completion zsh)
source <(helm completion zsh)
source <(kubectl completion zsh)
POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true
typeset -g POWERLEVEL9K_DIR_CLASSES=(
'~/Projects/jazzy.pro(|/*)' WORK ''
'~/Projects/streamsage(|/*)' WORKSS ''
'~/Projects/streamsage.io(|/*)' WORKSS ''
'~/Projects/stream-sage(|/*)' WORKSS ''
'~/Projects/Private(|/*)' PRIVATE ''
'~/Projects/cynarski.dev(|/*)' PRIVATE ''
'~/Projects/CyfroweNiebo(|/*)' NIEBO ''
@ -405,3 +437,9 @@ typeset -g POWERLEVEL9K_DIR_WORK_VISUAL_IDENTIFIER_EXPANSION='(j!)'
typeset -g POWERLEVEL9K_DIR_WORKSS_VISUAL_IDENTIFIER_EXPANSION='<<o>>'
typeset -g POWERLEVEL9K_DIR_PRIVATE_VISUAL_IDENTIFIER_EXPANSION='(℀ )'
typeset -g POWERLEVEL9K_DIR_NIEBO_VISUAL_IDENTIFIER_EXPANSION='[☰ ]'
typeset -g POWERLEVEL9K_AWS_SHOW_ON_DEMAND=''
#export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
#export GPG_TTY=$(tty)
#gpgconf --launch gpg-agent
#gpg-connect-agent updatestartuptty /bye >/dev/null

51
bin/ec2-tmux Executable file
View File

@ -0,0 +1,51 @@
#!/bin/bash -x
#set -o errexit
set -o nounset
set -o pipefail
SESSION=$AWS_PROFILE
EC2_INSTANCES=$(aws ec2 describe-instances --filter "Name=instance-state-name,Values=running" --query "Reservations[*].Instances[*].[PublicIpAddress, Tags[?Key=='Name'].Value|[0]]" --output text|sed -E 's/\s+/,/g')
get_window() {
NAME=$1
window_id=$(tmux list-windows -t $SESSION -F "#W:#I" |grep $NAME|cut -d':' -f2)
echo "$window_id"
}
create_window() {
NAME=$1
COUNT=$(tmux list-windows -t $SESSION|wc -l)
WINDOW_ID=$(($COUNT))
tmux new-window -t $SESSION:$WINDOW_ID -n $NAME
}
attach_to_window() {
NAME=$1
HOST=$2
WINDOW=$(get_window $NAME)
if [ "$WINDOW" = "" ]
then
create_window $NAME
tmux send-keys -t $NAME "jssh $HOST" C-m
else
tmux split-window -t $NAME
tmux send-keys -t $NAME "jssh $HOST" C-m
fi
}
tmux has-session -t $SESSION 2>/dev/null
if [ $? != 0 ]; then
tmux new-session -d -s $SESSION
for INSTANCE in $EC2_INSTANCES
do
HOST=$(echo $INSTANCE|cut -d',' -f1)
NAME=$(echo $INSTANCE|cut -d',' -f2)
attach_to_window $NAME $HOST
done
fi
tmux attach-session -t $SESSION

11
bin/pinentry Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
set -eu
PINENTRY_TERMINAL='/sbin/pinentry-curses'
PINENTRY_VAYLAND='/sbin/pinentry-gtk-2'
if [ -n "${DISPLAY-}" -a -z "${TERM-}" ]; then
exec "$PINENTRY_VAYLAND" "$@"
else
exec "$PINENTRY_TERMINAL" "$@"
fi

5
bin/ss-keys.sh Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
echo "Adding T O O L B O X KEYS"
ssh-add ~/Projects/streamsage.io/terraform-envs/toolbox/toolbox-swarm-ssh-key.pem

10
nvim/coc-settings.json Normal file
View File

@ -0,0 +1,10 @@
{
"languageserver": {
"go": {
"command": "gopls",
"rootPatterns": ["go.mod"],
"trace.server": "verbose",
"filetypes": ["go"]
}
}
}

View File

@ -120,10 +120,11 @@ Plug 'stephpy/vim-php-cs-fixer'
" Plug 'fatih/vim-hclfmt'
Plug 'hashivim/vim-terraform'
Plug 'hashivim/vim-consul'
Plug 'hashivim/vim-nomadproject'
" Plug 'b4b4r07/vim-hcl'
Plug 'vim-syntastic/syntastic'
Plug 'juliosueiras/vim-terraform-completion'
Plug 'jvirtanen/vim-hcl'
" Python
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@ -153,7 +154,7 @@ Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app && yarn install' }
" Plug 'neoclide/coc.nvim', {'branch': 'release'}
" Or build from source code by using yarn: https://yarnpkg.com
" Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
call plug#end()
"