Compare commits

...

15 Commits

42 changed files with 2320 additions and 1367 deletions

View File

@ -46,7 +46,7 @@ pad=6x5
[scrollback] [scrollback]
# lines=1000 # lines=1000
# multiplier=3.0 multiplier=25.0
# indicator-position=relative # indicator-position=relative
# indicator-format= # indicator-format=
@ -66,10 +66,10 @@ pad=6x5
[mouse] [mouse]
# hide-when-typing=no # hide-when-typing=no
# alternate-scroll-mode=yes alternate-scroll-mode=yes
[colors] [colors]
alpha=0.9 alpha=0.975
# foreground=dcdccc # foreground=dcdccc
# background=111111 # background=111111
@ -114,9 +114,9 @@ alpha=0.9
# -*- conf -*- # -*- conf -*-
# Gruvbox # Gruvbox
background=282828 background=2d2b2a
foreground=ebdbb2 foreground=ebdbb2
regular0=282828 regular0=2d2b2a
regular1=cc241d regular1=cc241d
regular2=98971a regular2=98971a
regular3=d79921 regular3=d79921

View File

@ -1,14 +1,10 @@
configuration { configuration {
combi-modi: "window,drun,run"; modes: [ combi ];
terminal: "kitty"; combi-modes: [ window, drun, run ];
show-icons: true;
sidebar-mode: true; show-icons: true;
color-normal: "#00383c4a, #c4cbd4, #96404552, #4084d6, #f9f9f9"; separator-style: "solid";
color-urgent: "#002d303b, #cc6666, #e52d303b, #a54242, #f9f9f9"; font: "Iosevka 11";
color-active: "#002d303b, #b5bd68, #e42d303b, #8c9440, #f9f9f9";
color-window: "#f22d303b, #7c8389, #1d1f21";
separator-style: "solid";
font: "Iosevka 11";
drun-icon-theme: "Papirus";
} }
@theme "~/.config/rofi/themes/gruvbox/gruvbox-dark.rasi"
@theme "gruvbox-dark-soft"

View File

@ -1,21 +0,0 @@
MIT License
Copyright (c) 2016 Brian Hardisty
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -1,76 +0,0 @@
# gruvbox-rofi
> Gruvbox dark and light color themes for Rofi
[Rofi](https://github.com/DaveDavenport/rofi) color themes based on the
[Gruvbox color scheme](https://github.com/morhetz/gruvbox).
Includes six versions to choose from:
- **[Gruvbox Dark](#dark-gruvbox-darkrasi)**
- [Gruvbox Dark (soft contrast)](#dark-soft-contrast-gruvbox-dark-softrasi)
- [Gruvbox Dark (hard contrast)](#dark-hard-contrast-gruvbox-dark-hardrasi)
- **[Gruvbox Light](#light-gruvbox-lightrasi)**
- [Gruvbox Light (soft contrast)](#light-soft-contrast-gruvbox-light-softrasi)
- [Gruvbox Light (hard contrast)](#light-hard-contrast-gruvbox-light-hardrasi)
## Screenshots
### Dark ([`gruvbox-dark.rasi`](gruvbox-dark.rasi))
![gruvbox dark theme screenshot](screenshots/gruvbox-dark.png "gruvbox dark theme")
#### Dark (soft contrast) ([`gruvbox-dark-soft.rasi`](gruvbox-dark-soft.rasi))
![gruvbox dark theme (soft contrast) screenshot](screenshots/gruvbox-dark-soft.png "gruvbox dark theme (soft contrast)")
#### Dark (hard contrast) ([`gruvbox-dark-hard.rasi`](gruvbox-dark-hard.rasi))
![gruvbox dark theme (hard contrast) screenshot](screenshots/gruvbox-dark-hard.png "gruvbox dark theme (hard contrast)")
### Light ([`gruvbox-light.rasi`](gruvbox-light.rasi))
![gruvbox light theme screenshot](screenshots/gruvbox-light.png "gruvbox light theme")
#### Light (soft contrast) ([`gruvbox-light-soft.rasi`](gruvbox-light-soft.rasi))
![gruvbox light theme (soft contrast) screenshot](screenshots/gruvbox-light-soft.png "gruvbox light theme (soft contrast)")
#### Light (hard contrast) ([`gruvbox-light-hard.rasi`](gruvbox-light-hard.rasi))
![gruvbox light theme (hard contrast) screenshot](screenshots/gruvbox-light-hard.png "gruvbox light theme (hard contrast)")
## Installation
These themes are included with Rofi as of version
[1.3.0](https://github.com/DaveDavenport/rofi/releases/tag/1.3.0). Run
`rofi-theme-selector` to preview/apply them with Rofi's theme selector
script.
See [Manual Installation](#manual-installation) if you wish to install the
themes manually. This may be preferable if you plan on customizing them.
### Manual Installation
1. [Download](https://github.com/bardisty/gruvbox-rofi/archive/master.zip)
or clone the repository:
```shell
git clone https://github.com/bardisty/gruvbox-rofi ~/.config/rofi/themes/gruvbox
```
2. Edit your Rofi configuration file (`~/.config/rofi/config`):
```xdefaults
rofi.theme: ~/.config/rofi/themes/gruvbox/gruvbox-dark.rasi
```
## Links
- [Rofi](https://github.com/DaveDavenport/rofi) window switcher, run
launcher, ssh dialog, and dmenu replacement
- [Gruvbox](https://github.com/morhetz/gruvbox) color scheme for Vim
## License
[MIT](LICENSE)

View File

@ -1 +0,0 @@
/home/g1smo/sredstva/dotfiles/.config/rofi/themes/gruvbox

View File

@ -1,127 +0,0 @@
/* ==========================================================================
File: gruvbox-common.rasi
Desc: Shared rules between all gruvbox themes
Author: bardisty <b@bah.im>
Source: https://github.com/bardisty/gruvbox-rofi
Modified: Mon Feb 12 2018 06:06:47 PST -0800
========================================================================== */
window {
background-color: @background;
border: 2;
padding: 2;
}
mainbox {
border: 0;
padding: 0;
}
message {
border: 2px 0 0;
border-color: @separatorcolor;
padding: 1px;
}
textbox {
highlight: @highlight;
text-color: @foreground;
}
listview {
border: 2px solid 0 0;
padding: 2px 0 0;
border-color: @separatorcolor;
spacing: 2px;
scrollbar: @scrollbar;
}
element {
border: 0;
padding: 2px;
}
element.normal.normal {
background-color: @normal-background;
text-color: @normal-foreground;
}
element.normal.urgent {
background-color: @urgent-background;
text-color: @urgent-foreground;
}
element.normal.active {
background-color: @active-background;
text-color: @active-foreground;
}
element.selected.normal {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
element.selected.urgent {
background-color: @selected-urgent-background;
text-color: @selected-urgent-foreground;
}
element.selected.active {
background-color: @selected-active-background;
text-color: @selected-active-foreground;
}
element.alternate.normal {
background-color: @alternate-normal-background;
text-color: @alternate-normal-foreground;
}
element.alternate.urgent {
background-color: @alternate-urgent-background;
text-color: @alternate-urgent-foreground;
}
element.alternate.active {
background-color: @alternate-active-background;
text-color: @alternate-active-foreground;
}
scrollbar {
width: 4px;
border: 0;
handle-color: @scrollbar-handle;
handle-width: 8px;
padding: 0;
}
sidebar {
border: 2px 0 0;
border-color: @separatorcolor;
}
inputbar {
spacing: 0;
text-color: @normal-foreground;
padding: 2px;
children: [ prompt, textbox-prompt-sep, entry, case-indicator ];
}
case-indicator,
entry,
prompt,
button {
spacing: 0;
text-color: @normal-foreground;
}
button.selected {
background-color: @selected-normal-background;
text-color: @selected-normal-foreground;
}
textbox-prompt-sep {
expand: false;
str: ":";
text-color: @normal-foreground;
margin: 0 0.3em 0 0;
}

View File

@ -1,62 +0,0 @@
/* ==========================================================================
Rofi color theme
Based on the Gruvbox color scheme for Vim by morhetz
https://github.com/morhetz/gruvbox
File: gruvbox-dark-hard.rasi
Desc: Gruvbox dark (hard contrast) color theme for Rofi
Author: bardisty <b@bah.im>
Source: https://github.com/bardisty/gruvbox-rofi
Modified: Mon Feb 12 2018 06:04:26 PST -0800
========================================================================== */
* {
/* Theme settings */
highlight: bold italic;
scrollbar: true;
/* Gruvbox dark colors */
gruvbox-dark-bg0-hard: #1d2021;
gruvbox-dark-bg0: #282828;
gruvbox-dark-bg2: #504945;
gruvbox-dark-fg0: #fbf1c7;
gruvbox-dark-fg1: #ebdbb2;
gruvbox-dark-red-dark: #cc241d;
gruvbox-dark-red-light: #fb4934;
gruvbox-dark-yellow-dark: #d79921;
gruvbox-dark-yellow-light: #fabd2f;
gruvbox-dark-gray: #a89984;
/* Theme colors */
background: @gruvbox-dark-bg0-hard;
background-color: @background;
foreground: @gruvbox-dark-fg1;
border-color: @gruvbox-dark-gray;
separatorcolor: @border-color;
scrollbar-handle: @border-color;
normal-background: @background;
normal-foreground: @foreground;
alternate-normal-background: @gruvbox-dark-bg0;
alternate-normal-foreground: @foreground;
selected-normal-background: @gruvbox-dark-bg2;
selected-normal-foreground: @gruvbox-dark-fg0;
active-background: @gruvbox-dark-yellow-dark;
active-foreground: @background;
alternate-active-background: @active-background;
alternate-active-foreground: @active-foreground;
selected-active-background: @gruvbox-dark-yellow-light;
selected-active-foreground: @active-foreground;
urgent-background: @gruvbox-dark-red-dark;
urgent-foreground: @background;
alternate-urgent-background: @urgent-background;
alternate-urgent-foreground: @urgent-foreground;
selected-urgent-background: @gruvbox-dark-red-light;
selected-urgent-foreground: @urgent-foreground;
}
@import "gruvbox-common.rasi"

View File

@ -1,62 +0,0 @@
/* ==========================================================================
Rofi color theme
Based on the Gruvbox color scheme for Vim by morhetz
https://github.com/morhetz/gruvbox
File: gruvbox-dark-soft.rasi
Desc: Gruvbox dark (soft contrast) color theme for Rofi
Author: bardisty <b@bah.im>
Source: https://github.com/bardisty/gruvbox-rofi
Modified: Mon Feb 12 2018 06:04:37 PST -0800
========================================================================== */
* {
/* Theme settings */
highlight: bold italic;
scrollbar: true;
/* Gruvbox dark colors */
gruvbox-dark-bg0-soft: #32302f;
gruvbox-dark-bg1: #3c3836;
gruvbox-dark-bg3: #665c54;
gruvbox-dark-fg0: #fbf1c7;
gruvbox-dark-fg1: #ebdbb2;
gruvbox-dark-red-dark: #cc241d;
gruvbox-dark-red-light: #fb4934;
gruvbox-dark-yellow-dark: #d79921;
gruvbox-dark-yellow-light: #fabd2f;
gruvbox-dark-gray: #a89984;
/* Theme colors */
background: @gruvbox-dark-bg0-soft;
background-color: @background;
foreground: @gruvbox-dark-fg1;
border-color: @gruvbox-dark-gray;
separatorcolor: @border-color;
scrollbar-handle: @border-color;
normal-background: @background;
normal-foreground: @foreground;
alternate-normal-background: @gruvbox-dark-bg1;
alternate-normal-foreground: @foreground;
selected-normal-background: @gruvbox-dark-bg3;
selected-normal-foreground: @gruvbox-dark-fg0;
active-background: @gruvbox-dark-yellow-dark;
active-foreground: @background;
alternate-active-background: @active-background;
alternate-active-foreground: @active-foreground;
selected-active-background: @gruvbox-dark-yellow-light;
selected-active-foreground: @active-foreground;
urgent-background: @gruvbox-dark-red-dark;
urgent-foreground: @background;
alternate-urgent-background: @urgent-background;
alternate-urgent-foreground: @urgent-foreground;
selected-urgent-background: @gruvbox-dark-red-light;
selected-urgent-foreground: @urgent-foreground;
}
@import "gruvbox-common.rasi"

View File

@ -1,62 +0,0 @@
/* ==========================================================================
Rofi color theme
Based on the Gruvbox color scheme for Vim by morhetz
https://github.com/morhetz/gruvbox
File: gruvbox-dark.rasi
Desc: Gruvbox dark color theme for Rofi
Author: bardisty <b@bah.im>
Source: https://github.com/bardisty/gruvbox-rofi
Modified: Mon Feb 12 2018 04:08:43 PST -0800
========================================================================== */
* {
/* Theme settings */
highlight: bold italic;
scrollbar: true;
/* Gruvbox dark colors */
gruvbox-dark-bg0: #282828;
gruvbox-dark-bg0-soft: #32302f;
gruvbox-dark-bg3: #665c54;
gruvbox-dark-fg0: #fbf1c7;
gruvbox-dark-fg1: #ebdbb2;
gruvbox-dark-red-dark: #cc241d;
gruvbox-dark-red-light: #fb4934;
gruvbox-dark-yellow-dark: #d79921;
gruvbox-dark-yellow-light: #fabd2f;
gruvbox-dark-gray: #a89984;
/* Theme colors */
background: @gruvbox-dark-bg0;
background-color: @background;
foreground: @gruvbox-dark-fg1;
border-color: @gruvbox-dark-gray;
separatorcolor: @border-color;
scrollbar-handle: @border-color;
normal-background: @background;
normal-foreground: @foreground;
alternate-normal-background: @gruvbox-dark-bg0-soft;
alternate-normal-foreground: @foreground;
selected-normal-background: @gruvbox-dark-bg3;
selected-normal-foreground: @gruvbox-dark-fg0;
active-background: @gruvbox-dark-yellow-dark;
active-foreground: @background;
alternate-active-background: @active-background;
alternate-active-foreground: @active-foreground;
selected-active-background: @gruvbox-dark-yellow-light;
selected-active-foreground: @active-foreground;
urgent-background: @gruvbox-dark-red-dark;
urgent-foreground: @background;
alternate-urgent-background: @urgent-background;
alternate-urgent-foreground: @urgent-foreground;
selected-urgent-background: @gruvbox-dark-red-light;
selected-urgent-foreground: @urgent-foreground;
}
@import "gruvbox-common.rasi"

View File

@ -1,62 +0,0 @@
/* ==========================================================================
Rofi color theme
Based on the Gruvbox color scheme for Vim by morhetz
https://github.com/morhetz/gruvbox
File: gruvbox-light-hard.rasi
Desc: Gruvbox light (hard contrast) color theme for Rofi
Author: bardisty <b@bah.im>
Source: https://github.com/bardisty/gruvbox-rofi
Modified: Mon Feb 12 2018 06:04:48 PST -0800
========================================================================== */
* {
/* Theme settings */
highlight: bold italic;
scrollbar: true;
/* Gruvbox light colors */
gruvbox-light-bg0-hard: #f9f5d7;
gruvbox-light-bg0: #fbf1c7;
gruvbox-light-bg1: #ebdbb2;
gruvbox-light-fg0: #282828;
gruvbox-light-fg1: #3c3836;
gruvbox-light-red-dark: #9d0006;
gruvbox-light-red-light: #cc241d;
gruvbox-light-yellow-dark: #b57614;
gruvbox-light-yellow-light: #d79921;
gruvbox-light-gray: #7c6f64;
/* Theme colors */
background: @gruvbox-light-bg0-hard;
background-color: @background;
foreground: @gruvbox-light-fg1;
border-color: @gruvbox-light-gray;
separatorcolor: @border-color;
scrollbar-handle: @border-color;
normal-background: @background;
normal-foreground: @foreground;
alternate-normal-background: @gruvbox-light-bg0;
alternate-normal-foreground: @foreground;
selected-normal-background: @gruvbox-light-bg1;
selected-normal-foreground: @gruvbox-light-fg0;
active-background: @gruvbox-light-yellow-dark;
active-foreground: @background;
alternate-active-background: @active-background;
alternate-active-foreground: @active-foreground;
selected-active-background: @gruvbox-light-yellow-light;
selected-active-foreground: @active-foreground;
urgent-background: @gruvbox-light-red-dark;
urgent-foreground: @background;
alternate-urgent-background: @urgent-background;
alternate-urgent-foreground: @urgent-foreground;
selected-urgent-background: @gruvbox-light-red-light;
selected-urgent-foreground: @urgent-foreground;
}
@import "gruvbox-common.rasi"

View File

@ -1,62 +0,0 @@
/* ==========================================================================
Rofi color theme
Based on the Gruvbox color scheme for Vim by morhetz
https://github.com/morhetz/gruvbox
File: gruvbox-light-soft.rasi
Desc: Gruvbox light (soft contrast) color theme for Rofi
Author: bardisty <b@bah.im>
Source: https://github.com/bardisty/gruvbox-rofi
Modified: Mon Feb 12 2018 06:05:38 PST -0800
========================================================================== */
* {
/* Theme settings */
highlight: bold italic;
scrollbar: true;
/* Gruvbox light colors */
gruvbox-light-bg0-soft: #f2e5bc;
gruvbox-light-bg1: #ebdbb2;
gruvbox-light-bg2: #d5c4a1;
gruvbox-light-fg0: #282828;
gruvbox-light-fg1: #3c3836;
gruvbox-light-red-dark: #9d0006;
gruvbox-light-red-light: #cc241d;
gruvbox-light-yellow-dark: #b57614;
gruvbox-light-yellow-light: #d79921;
gruvbox-light-gray: #7c6f64;
/* Theme colors */
background: @gruvbox-light-bg0-soft;
background-color: @background;
foreground: @gruvbox-light-fg1;
border-color: @gruvbox-light-gray;
separatorcolor: @border-color;
scrollbar-handle: @border-color;
normal-background: @background;
normal-foreground: @foreground;
alternate-normal-background: @gruvbox-light-bg1;
alternate-normal-foreground: @foreground;
selected-normal-background: @gruvbox-light-bg2;
selected-normal-foreground: @gruvbox-light-fg0;
active-background: @gruvbox-light-yellow-dark;
active-foreground: @background;
alternate-active-background: @active-background;
alternate-active-foreground: @active-foreground;
selected-active-background: @gruvbox-light-yellow-light;
selected-active-foreground: @active-foreground;
urgent-background: @gruvbox-light-red-dark;
urgent-foreground: @background;
alternate-urgent-background: @urgent-background;
alternate-urgent-foreground: @urgent-foreground;
selected-urgent-background: @gruvbox-light-red-light;
selected-urgent-foreground: @urgent-foreground;
}
@import "gruvbox-common.rasi"

View File

@ -1,62 +0,0 @@
/* ==========================================================================
Rofi color theme
Based on the Gruvbox color scheme for Vim by morhetz
https://github.com/morhetz/gruvbox
File: gruvbox-light.rasi
Desc: Gruvbox light color theme for rofi
Author: bardisty <b@bah.im>
Source: https://github.com/bardisty/gruvbox-rofi
Modified: Mon Feb 12 2018 06:06:06 PST -0800
========================================================================== */
* {
/* Theme settings */
highlight: bold italic;
scrollbar: true;
/* Gruvbox light colors */
gruvbox-light-bg0: #fbf1c7;
gruvbox-light-bg0-soft: #f2e5bc;
gruvbox-light-bg2: #d5c4a1;
gruvbox-light-fg0: #282828;
gruvbox-light-fg1: #3c3836;
gruvbox-light-gray: #7c6f64;
gruvbox-light-red-dark: #9d0006;
gruvbox-light-red-light: #cc241d;
gruvbox-light-yellow-dark: #b57614;
gruvbox-light-yellow-light: #d79921;
/* Theme colors */
background: @gruvbox-light-bg0;
background-color: @background;
foreground: @gruvbox-light-fg1;
border-color: @gruvbox-light-gray;
separatorcolor: @border-color;
scrollbar-handle: @border-color;
normal-background: @background;
normal-foreground: @foreground;
alternate-normal-background: @gruvbox-light-bg0-soft;
alternate-normal-foreground: @foreground;
selected-normal-background: @gruvbox-light-bg2;
selected-normal-foreground: @gruvbox-light-fg0;
active-background: @gruvbox-light-yellow-dark;
active-foreground: @background;
alternate-active-background: @active-background;
alternate-active-foreground: @active-foreground;
selected-active-background: @gruvbox-light-yellow-light;
selected-active-foreground: @active-foreground;
urgent-background: @gruvbox-light-red-dark;
urgent-foreground: @background;
alternate-urgent-background: @urgent-background;
alternate-urgent-foreground: @urgent-foreground;
selected-urgent-background: @gruvbox-light-red-light;
selected-urgent-foreground: @urgent-foreground;
}
@import "gruvbox-common.rasi"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

View File

@ -16,6 +16,9 @@ set $term foot
# Font # Font
font pango:Iosevka SS05 Medium 10 font pango:Iosevka SS05 Medium 10
# Kurzor
seat * xcursor_theme Bibata-Modern-Classic 24
# Launcher # Launcher
set $menu "rofi -combi-modi window,drun,run -show combi -modi combi" set $menu "rofi -combi-modi window,drun,run -show combi -modi combi"
#set $menu j4-dmenu-desktop #set $menu j4-dmenu-desktop
@ -32,11 +35,22 @@ output eDP-1 {
#output "*" background ~/Slike/Wallpapers/1596344206877.jpg fill #output "*" background ~/Slike/Wallpapers/1596344206877.jpg fill
#output "*" background "~/riz0m/Photos/sri lanka/IMG_20220220_120730.jpg" fill #output "*" background "~/riz0m/Photos/sri lanka/IMG_20220220_120730.jpg" fill
#output "*" background "~/Slike/☭/bigstock-Sutjeska-National-Park-Bosnia-63011269.jpg" fill #output "*" background "~/Slike/☭/bigstock-Sutjeska-National-Park-Bosnia-63011269.jpg" fill
output "*" background "~/sredstva/dotfiles/ozadje.jpg" fill output "*" background "~/sredstva/dotfiles/ozadje4.jpg" fill
# Zamik dobimo z SIRINA / SCALE # Zamik dobimo z SIRINA / SCALE
output HDMI-A-2 pos 1600 0 scale 1 output HDMI-A-2 pos 1601 0 scale 1
output HDMI-A-1 pos 1600 0 scale 1 output HDMI-A-1 pos 1601 0 scale 1
output DP-5 pos 1600 0 scale 1 output DP-5 pos 1601 0 scale 1
output DP-2 pos 1601 0 scale 1
# wayVNC izhod za pinenote
#output HEADLESS-1 {
# pos 1601 0 scale 2
# mode 1404x1872
# transform 90
# scale_filter smart
#}
# swaymsg create_output HEADLESS-1 post 1601 0 scale 2 mode 1404x1872 transform 90 scale_filter smart
# wayvnc --output=HEADLESS-1 --max-fps=20 192.168.8.20 5900 &
# start a terminal # start a terminal
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
@ -90,8 +104,9 @@ bindsym $mod+d exec $menu
# #
# name workspaces # name workspaces
set $w0 0:
set $w1 1: set $w1 1:
set $w2 2:λ set $w2 2:
set $w3 3: set $w3 3:
set $w4 4: set $w4 4:
set $w5 5: set $w5 5:
@ -99,7 +114,6 @@ set $w6 6:
set $w7 7:✭❀❤♫ set $w7 7:✭❀❤♫
set $w8 8:☭ set $w8 8:☭
set $w9 9: set $w9 9:
set $w0 0:
# switch to workspace # switch to workspace
bindsym $mod+1 workspace $w1 bindsym $mod+1 workspace $w1
@ -211,38 +225,47 @@ mode "resize" {
} }
bindsym $mod+r mode "resize" bindsym $mod+r mode "resize"
set $ospredje #cccccc
set $ospredjeTrans #cccccccc
set $ospredjeNefokusiran #ebdbb2cc
set $ozadje #32302f
set $ozadjeTrans #32302fcc
# #
# Status Bar: # Status Bar:
# #
# Read `man 5 sway-bar` for more information about this section. # Read `man 5 sway-bar` for more information about this section.
bar { bar {
position top position top
# status_command i3blocks
# status_command i3status-rs
status_command i3status status_command i3status
colors { colors {
focused_background #272727E5 focused_background $ozadje
background #272727B8 background $ozadjeTrans
#statusline #ebdbb2E5 statusline $ospredje
statusline #DCDCDC
focused_workspace #555555E5 #555555E5 #ffffff focused_workspace $ospredje $ospredje $ozadje
inactive_workspace #272727E5 #272727E5 #888888 active_workspace $ospredjeTrans $ospredjeTrans $ozadje
inactive_workspace $ozadje $ozadje $ospredje
} }
font pango:FontAwesome Regular 12, Iosevka SS01 Medium 12 font pango:FontAwesome, Iosevka SS01 Medium 12
strip_workspace_numbers yes strip_workspace_numbers yes
height 26 height 26
#tray_padding 2 #tray_padding 2
separator_symbol " " separator_symbol ""
} }
include /etc/sway/config.d/* #include /etc/sway/config.d/*
set $zelena #b8bb26
set $temnoZelena #98971a
set $okvir #665c54
set $bg0_s #32302f
set $fg3 #bdae93
# Colors # Colors
client.focused #444444 #444444 #A9D000 #8c9825 #444444 client.focused $okvir $ozadje $ospredje $ospredje $okvir
client.focused_inactive #444444 #444444 #A9D000 #5c7825 #444444 client.focused_inactive #444444 #444444 #A9D000 $fg3 $bg0_s
client.unfocused #222222 #222222 #888888 #292d2e #222222 client.unfocused #222222 #222222 #888888 #292d2e #222222
client.background #222222
# gaps between windows # gaps between windows
gaps inner 6 gaps inner 6
@ -258,6 +281,9 @@ hide_edge_borders smart
# Mouse focus # Mouse focus
focus_follows_mouse yes focus_follows_mouse yes
# Premik kurzorja v aktivno okno
#mouse_warping container
# KBD layouti # KBD layouti
input "type:keyboard" { input "type:keyboard" {
xkb_layout us,si xkb_layout us,si
@ -281,9 +307,9 @@ bindsym Mod1+shift+x exec playerctl play-pause
bindsym Mod1+shift+c exec playerctl play-pause bindsym Mod1+shift+c exec playerctl play-pause
# Zvok # Zvok
set $vol_down_cmd amixer -q sset Master 5%- set $vol_down_cmd pamixer -d 5
set $vol_up_cmd amixer -q sset Master 5%+ set $vol_up_cmd pamixer -i 5
set $vol_toggle_cmd amixer -q sset Master toggle set $vol_toggle_cmd pamixer -t
bindsym $mod+shift+d exec "$vol_up_cmd" bindsym $mod+shift+d exec "$vol_up_cmd"
bindsym XF86AudioRaiseVolume exec "$vol_up_cmd" bindsym XF86AudioRaiseVolume exec "$vol_up_cmd"
@ -301,8 +327,8 @@ exec_always {
} }
# Zvetlost zaslona # Zvetlost zaslona
bindsym XF86MonBrightnessUp exec "light -A 3" bindsym XF86MonBrightnessUp exec "brightnessctl set 3%+"
bindsym XF86MonBrightnessDown exec "light -U 3" bindsym XF86MonBrightnessDown exec "brightnessctl set 3%-"
# Zunanji skrin # Zunanji skrin
bindsym $mod+p exec "swaymsg output HDMI-A-2 enable" bindsym $mod+p exec "swaymsg output HDMI-A-2 enable"
@ -330,7 +356,7 @@ exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSO
exec ~/bin/inactive-windows-transparency.py exec ~/bin/inactive-windows-transparency.py
# Desktop notifikacije # Desktop notifikacije
exec mako --default-timeout=10000 --icon-path /usr/share/icons/Numix exec mako --default-timeout=5000 --icon-path /usr/share/icons/Numix
# Autotiling https://github.com/nwg-piotr/autotiling # Autotiling https://github.com/nwg-piotr/autotiling
exec ~/bin/autotiling.py exec ~/bin/autotiling.py
@ -339,15 +365,16 @@ exec ~/bin/autotiling.py
exec gammastep -m wayland -l 46.05108:14.50513 exec gammastep -m wayland -l 46.05108:14.50513
# Zagoni programov razporejeni na workspejse # Zagoni programov razporejeni na workspejse
workspace 0:
workspace 1: workspace 1:
#exec firefox #exec firefox
exec librewolf exec librewolf
workspace 2:λ workspace 2:
exec emacs exec emacs
workspace 3: workspace 3:
exec thunderbird exec icedove
workspace 4: workspace 4:
#exec revolt #exec revolt

View File

@ -2,16 +2,13 @@
;;; This format is meant to be slightly human-readable; ;;; This format is meant to be slightly human-readable;
;;; nevertheless, you probably don't want to edit it. ;;; nevertheless, you probably don't want to edit it.
;;; -*- End Of Bookmark File Format Version Stamp -*- ;;; -*- End Of Bookmark File Format Version Stamp -*-
(("org-capture-last-stored" (("org-capture-last-stored" (filename . "~/org/zapiski.org")
(filename . "~/.notes") (front-context-string . "** TODO Vrstni r")
(front-context-string . "** TODO Zaraščen") (rear-context-string . "2024-01-05 pet]\n") (position . 661)
(rear-context-string) (last-modified 26008 34892 637157 892000))
(position . 9) ("FLUXUS navodilo"
(last-modified 25598 13456 906334 599000)) (filename . "~/sredstva/fluxus/docs/fluxus-manual.[en].org")
("IRS" (front-context-string . "#+TITLE: Fluxus:") (rear-context-string)
(filename . "~/rs/megla-sync/org/irs.org") (position . 1) (last-modified 25693 29993 875550 300000))
(front-context-string . "- nov X, dizajn\n") ("IRS" (filename . "~/rs/megla-sync/org/irs.org"))
(rear-context-string . "fadeout teksta)\n")
(position . 359)
(last-modified 25583 44635 333675 223000))
) )

1412
.emacs.d/config.org 100644

File diff suppressed because it is too large Load Diff

View File

@ -1,566 +1,109 @@
;;;;;;;;;;;; ;;; init --- naloži org konfiguracijo in še kaj -*- lexical-binding: t -*-
;; PAKETI ;;
;;;;;;;;;;;;
;(setq use-package-compute-statistics t) ;;; Commentary:
;; Naloži konfiguracije iz ORG datoteke, ostanki nerazvrščenih zadev
;; ter kustomizacije.
(setq debug-on-error t) (setq warning-minimum-level :error)
;; Loudamo melpa paketice
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
;; Set up package.el to work with MELPA
(require 'package)
(package-initialize)
;; Stare funkcije za namescanje paketov. Od use-package z :ensure naprej vec ne
;; Sekvence n'shiat
;(require 'seq)
;; Kaj vse naj bo namesceno?
;(setq paketi '())
;(setq nema (seq-filter (lambda (p) (not (package-installed-p p))) paketi))
;(when nema
; (package-initialize)
; (package-refresh-contents)
; (dolist (p nema)
; (package-install p)))
;(use-package benchmark-init
; :ensure t
; :config
; :disabled t
; (benchmark-init/activate)
; (add-hook 'after-init-hook 'benchmark-init/deactivate))
;;;;;;;;;;
;; EVIL ;;
;;;;;;;;;;
(use-package evil
:ensure t
:init (setq evil-want-integration t
evil-want-keybinding nil)
:config
;; Evil mode toggle <3
(evil-mode 1)
(defvar my-header-map (make-sparse-keymap)
"Mapiranje za evil bliznjice (leader trigger)")
;; Keybindings!
(defvar my-leader-map (make-sparse-keymap)
"Mapiranje za evil bliznjice (leader trigger)")
;; WINDOW ukazi
(define-prefix-command 'evil-window-map)
(define-key evil-window-map "j" 'windmove-down)
(define-key evil-window-map "k" 'windmove-up)
(define-key evil-window-map "h" 'windmove-left)
(define-key evil-window-map "l" 'windmove-right)
(define-key evil-window-map "s" 'split-window-below)
(define-key evil-window-map "v" 'split-window-right)
(define-key my-leader-map "w" 'evil-window-map)
;; BUFFER ukazi
(define-prefix-command 'evil-buffer-map)
(define-key evil-buffer-map "b" 'ivy-switch-buffer)
(define-key evil-buffer-map "p" 'previous-buffer)
(define-key evil-buffer-map "n" 'next-buffer)
(define-key evil-buffer-map "e" 'eval-buffer)
(defun switch-to-scratch () (interactive) (switch-to-buffer "*scratch*"))
(define-key evil-buffer-map "s" 'switch-to-scratch)
(defun switch-to-home () (interactive) (switch-to-buffer "*GNU Emacs*"))
(define-key evil-buffer-map "h" 'switch-to-home)
(defun open-config () (interactive) (find-file-literally "~/.emacs.d/init.el"))
(define-key evil-buffer-map "c" 'open-config)
(define-key my-leader-map "b" 'evil-buffer-map)
;; EVAL ukazi
(define-prefix-command 'eval-eval-map)
(define-key evil-eval-map "b" 'eval-buffer)
(define-key evil-eval-map "e" 'eval-expression)
(define-key evil-eval-map "r" 'eval-region)
(define-key my-leader-map "e" 'evil-eval-map)
;; FILE ukazi
(define-prefix-command 'evil-file-map)
(define-key evil-file-map "f" 'counsel-find-file)
(defun load-config () (interactive) (find-file "~/.emacs.d/init.el"))
(define-key evil-file-map "c" 'load-config)
(define-key my-leader-map "f" 'evil-file-map)
;; ORG ukazi
(define-prefix-command 'evil-org-map)
(define-key evil-org-map "c" 'org-capture)
(define-key evil-org-map "a" 'org-agenda)
(define-key my-leader-map "o" 'evil-org-map)
;; Projectile map!
(define-key my-leader-map "p" 'projectile-command-map)
;; Odpri ORG linke kar s tipko enter
(defun odpri-org-link ()
(interactive)
(if (org-in-regexp org-link-any-re nil t)
(org-open-at-point)
nil))
(define-key evil-normal-state-map (kbd "RET") 'odpri-org-link)
;; Mapiranje ukazov
;(define-key evil-normal-state-map (kbd "SPC") my-leader-map)
;(evil-global-set-key 'motion (kbd "SPC") my-leader-map)
;(evil-local-set-key 'motion (kbd "SPC") my-leader-map)
;(define-key evil-normal-state-map (kbd "SPC") my-leader-map)
)
(use-package general
:ensure t
:after evil
:config
(general-evil-setup)
(general-nmap
:prefix "SPC"
:prefix-map 'my-leader-map
;; Hitri buffer shortcuti
"[" 'previous-buffer
"]" 'next-buffer
"," 'ivy-switch-buffer
"RET" 'counsel-bookmark
"/" 'counsel-rg
"t" 'treemacs-add-and-display-current-project)
(general-nmap
:prefix "SPC"
:states 'normal
:keymaps 'dired-mode-map
:prefix-map 'my-leader-map
;; Hitri buffer shortcuti
"[" 'previous-buffer
"]" 'next-buffer
"," 'ivy-switch-buffer
"RET" 'counsel-bookmark
"/" 'counsel-rg
"t" 'treemacs-add-and-display-current-project))
;; Dodatne evil bližnjice
(use-package evil-collection
:ensure t
:after evil
:config
(evil-collection-init))
;; Evil orgmode
(use-package evil-org
:ensure t
:after (evil org)
:hook ((org-mode . (lambda () evil-org-mode)))
:init
(setq org-src-fontify-natively t)
:config
(require 'evil-org-agenda)
(evil-org-set-key-theme '(navigation insert textobjects additional calendar))
(evil-org-agenda-set-keys))
(use-package treemacs-evil :ensure t :after treemacs)
;;;;;;;;;
;; GUI ;;
;;;;;;;;;
;; Menu bar off
(menu-bar-mode -1)
(tool-bar-mode -1)
;; Brez ikon zgoraj
(setq ns-use-proxy-icon nil)
(setq frame-title-format nil)
; Skrij scrollbar
(scroll-bar-mode -1)
;; Razmiki med okni
(setq window-divider-default-bottom-width 3)
(window-divider-mode t)
;; No dialog box plx
(setq use-dialog-box nil)
;; Barvna tema
(use-package gruvbox-theme
:ensure t
:config
(load-theme 'gruvbox-dark-medium t))
;(load-theme 'hemisu-light t) ;; hemisu-theme paket
;(require 'doom-themes)
;(setq doom-themes-enable-bold t ; if nil, bold is universally disabled
; doom-themes-enable-italic t) ; if nil, italics is universally disabled
;(load-theme 'doom-gruvbox t)
;(doom-themes-org-config)
;; Doom modeline - lepsi status bar spodaj
(use-package doom-modeline
:ensure t
; :disabled t
:config
(doom-modeline-mode))
;; Lepse ikone!
(use-package all-the-icons :ensure t)
;; !!! ;;
;; !!! Pognat je treba (1x) all-the-icons-install-fonts !!! ;;
;; !!! ;;
;; y/n namesto yes / no
(fset 'yes-or-no-p 'y-or-n-p)
;; Oooo gladko skrolanje! (Emacs 29+)
(pixel-scroll-precision-mode)
;;;;;;;;;;;
;; TEKST ;;
;;;;;;;;;;;
;; Sirina taba ter spejsi kot distancniki
(setq-default tab-width 2)
(setq-default indent-tabs-mode nil)
;; Editorconfig formatiranje fajlov
(use-package editorconfig
:ensure t
:config
(editorconfig-mode 1))
;; Text wrap na sirino oken
(global-visual-line-mode)
;; Stevilke vrstic
(global-display-line-numbers-mode)
;; Lepse file drevo
(use-package treemacs
:ensure t
:defer t
:hook ((treemacs-mode . (lambda () ;; Brez stevilk vrstic v file drevesu!
(display-line-numbers-mode -1)))))
(use-package treemacs-projectile :ensure t :after treemacs)
;; Uporabi drevesne razveljavitve, undo tree
(use-package undo-tree
:ensure t
:config
(global-undo-tree-mode)
(evil-set-undo-system 'undo-tree)
;; Drevo razveljavitev shrani v emacsov folder
(setq undo-tree-history-directory-alist '(("." . "~/.emacs.d/undo"))))
;; Markdown podpora
(use-package markdown-mode :ensure t)
;; Zapiraj zaklepaje
(use-package smartparens
:ensure t
:config
(smartparens-global-mode 1))
;;;;;;;;;;;;;;;;;;;
;; PROGRAMIRANJE ;;
;;;;;;;;;;;;;;;;;;;
;; Pametni tabi
(use-package smart-tabs-mode
:ensure t
:disabled t
:after js2-mode
:config
;(smart-tabs-insinuate javascript scheme)
;; Pametni tabi za js2-mode
(smart-tabs-advice js2-indent-line js2-basic-offset))
;; Twig nacin (in drug web)
(use-package web-mode :ensure t)
;; Lepšanje web kode
(use-package web-beautify :ensure t)
;; Kompletiranje ukazov
(use-package company
:ensure t
:defer t
:config
(setq lsp-completion-provider :capf)
(company-mode))
;; LSP potrebuje dependency iz npm: "sudo npm install -g vue-language-server
(use-package lsp-mode
:ensure t
:after company)
;; Vuejs moud
(use-package vue-mode
:ensure t
:mode "\\.vue\\'"
:config (add-hook 'vue-mode-hook #'lsp))
;; PHP ko je treba
(use-package php-mode
:ensure t
:mode "\\.(php|module)\\'")
;; Guile scheme
(use-package geiser
:ensure t
:mode "\\.scm\\'")
(use-package geiser-guile
:ensure t
:after geiser
:init (setq scheme-program-name "guile"))
;; Racket podpora
(use-package racket-mode
:ensure t
:mode "\\.rkt\\'")
;; Rainbowz
(use-package rainbow-delimiters
:ensure t
:hook ((prog-mode . rainbow-delimiters-mode)))
;; YAML konfiguracije
(use-package yaml-mode
:ensure t
:mode "\\.yaml\\'")
;; Extempore lajv kodiranje!
(use-package extempore-mode
:ensure t
:mode "\\.xtm\\'")
;; Syntax checker
(use-package flycheck
:ensure t
:defer t)
;; Vmesnik za GIT
(use-package magit
:ensure t
:defer t)
;; Drupal pomocnik
(use-package drupal-mode
:ensure t
:after php-mode)
;; Oblikovanje kode za razne jezike
(use-package format-all :ensure t)
;; Tidal cycles live coding
(use-package tidal
:ensure t
:defer t
:init
;; Tidal cycles lokacija
(setq tidal-boot-script-path "~/.cabal/store/ghc-9.0.2/tidal-1.9.2-8e9cf9a217d87a6950880512f51893a6434970cd0690e831c563fc64ebd5de8f/share/BootTidal.hs"))
;; Config fajli
(use-package toml-mode
:ensure t)
;; js2 za javascript
(use-package js2-mode
:ensure t
:mode "\\.js\\'"
:config
;(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
(setq js2-strict-missing-semi-warning nil
js2-missing-semi-one-line-override nil
js2-basic-offset 2
js-indent-level 2
indent-tabs-mode nil
tab-width 2))
;; Še en mode za JS, bolj react
(use-package rjsx-mode
:ensure t
:after js2-mode)
;; css indent
(setq css-indent-level 2)
(setq css-indent-offset 2)
;;;;;;;;;;;;;
;; ORGMODE ;;
;;;;;;;;;;;;;
;; Stanja taskov
(setq org-todo-keywords
'((sequence "TODO" "V DELU" "TESTIRANJE" "DOKUMENTIRANJE" "KONČANO")))
;; Aktiviraj ob .org fajlih
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
;; CalDav v orgmode!
(use-package org-caldav
:ensure t
:after org-mode
:init
(setq org-caldav-calendar-id "org"
org-caldav-files '("~/Dokumenti/todo.org")
org-caldav-inbox "~/Dokumenti/koledar-in.org"
org-caldav-url "https://goba.rhiz0.me/remote.php/dav/calendars/g1smo"
org-icalendar-timezone "Europe/Ljubljana"))
;; Nacin za pisanje brez distrakcij
(use-package writeroom-mode
:ensure t
:config
:hook ((org-mode . (lambda ()
(display-line-numbers-mode -1)))))
;; HTMLize za barvanje kode v org izvozu v HTML
(use-package htmlize
:after org-mode
:ensure t)
;; Lokacije ORG agenda vnosov
(setq org-agenda-files (list "~/rs/org" "~/Dokumenti"))
;; Zapiski
(setq org-default-notes-file "~/Dokumenti/zapiski.org")
;; Zacnimo na ponedeljek, kot se spodobi
(setq calendar-week-start-day 1)
;; DOT diagrami
(org-babel-do-load-languages
'org-babel-load-languages
'((dot . t)))
;; enable ditaa
(org-babel-do-load-languages
'org-babel-load-languages
'((ditaa . t)))
;; Mermaid v orgmode (diagrami)
(use-package ob-mermaid
:ensure t
:defer t
:config
;; sudo npm install -g @mermaid-js/mermaid-cli
(setq ob-mermaid-cli-path "/usr/local/bin/mmdc")
(org-babel-do-load-languages
'org-babel-load-languages
'((mermaid . t)
(scheme . t))))
;; Swiper search
(use-package swiper
:ensure t
:config
(global-set-key "\C-s" 'swiper))
;; Izboljsani default ukazi bolj prijazni
(use-package counsel
:ensure t
:config
(global-set-key (kbd "M-x") 'counsel-M-x)
(global-set-key (kbd "C-x C-f") 'counsel-find-file)
(global-set-key (kbd "<f1> f") 'counsel-describe-function)
(global-set-key (kbd "<f1> v") 'counsel-describe-variable)
(global-set-key (kbd "<f1> o") 'counsel-describe-symbol)
(global-set-key (kbd "<f1> l") 'counsel-find-library)
(global-set-key (kbd "<f2> i") 'counsel-info-lookup-symbol)
(global-set-key (kbd "<f2> u") 'counsel-unicode-char)
(global-set-key (kbd "C-c g") 'counsel-git)
(global-set-key (kbd "C-c j") 'counsel-git-grep)
(global-set-key (kbd "C-c k") 'counsel-ag)
(global-set-key (kbd "C-x l") 'counsel-locate)
(global-set-key (kbd "C-S-o") 'counsel-rhythmbox)
(define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history))
;; Iskanje po fajlih (fulltext)
(use-package rg
:ensure t
:defer t
:config
(rg-enable-default-bindings))
;;; Code:
(org-babel-load-file "~/.emacs.d/config.org")
;;;;;;;;;;; ;;;;;;;;;;;
;; Razno ;; ;; Razno ;;
;;;;;;;;;;; ;;;;;;;;;;;
;; IVY ;; Izboljsani default ukazi bolj prijazni
(use-package ivy
:ensure t ;; Iskanje po fajlih (fulltext)
;(use-package rg
; :defer t
; :config
; (rg-enable-default-bindings))
;; ELISP test
(defun odpri-dnevnik ()
"Dodaj dnevniški zapis v tmp folder sistema."
(interactive)
(find-file (format-time-string "/tmp/%Y-%m-%d_dnevnik.org"))
(insert (concat "\n=====================\n"
(shell-command-to-string "date") "\n"
(format-time-string "%Y-%m-%d") "\n"
"ŠE VEČ TEKSTA!" "\n")))
(global-set-key (kbd "C-M-d") 'odpri-dnevnik)
;; GNU guix
(use-package guix :defer t)
;; Dashboard - homescreen
(use-package dashboard
:general
(start/leader-keys
"b h" 'dashboard-open)
;:after nerd-icons
:init
(dashboard-setup-startup-hook)
(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*")))
(setq dashboard-banner-logo-title "EMA☭S")
(setq dashboard-startup-banner 3)
(setq dashboard-center-content t)
(setq dashboard-items '((agenda . 5)
(recents . 5)))
;(setq dashboard-display-icons-p t) ;; display icons on both GUI and terminal
;(setq dashboard-icon-type 'nerd-icons) ;; use `nerd-icons' package
(setq dashboard-set-heading-icons t)
(setq dashboard-set-file-icons t)
(setq dashboard-set-navigator t)
(setq dashboard-set-init-info t))
;; Bolj fajni IELM REPL
(defun g-ielm-init-history ()
"Obstojna ielm zgodovina."
(let ((path (expand-file-name "ielm/history" user-emacs-directory)))
(make-directory (file-name-directory path) t)
(setq-local comint-input-ring-file-name path))
(setq-local comint-input-ring-size 10000)
(setq-local comint-input-ignoredups t)
(comint-read-input-ring))
(defun g-ielm-write-history (&rest _args)
"Tole je povezano z obstojno ielm zgodovino."
(with-file-modes #o600
(comint-write-input-ring)))
(use-package ielm
:defer t
:hook (ielm-mode-hook . (lambda ()
(eldoc-mode)
;(paredit-mode)
(g-ielm-init-history)))
:config :config
(ivy-mode) (advice-add 'ielm-send-input :after 'g-ielm-write-history)
(setq ivy-use-virtual-buffers t) (define-key inferior-emacs-lisp-mode-map (kbd "C-l")
(setq enable-recursive-minibuffers t) 'comint-clear-buffer)
(local-set-key (kbd "C-j") 'ivy-next-line) (define-key inferior-emacs-lisp-mode-map (kbd "C-r")
(local-set-key (kbd "C-k") 'ivy-prevous-line) 'helm-comint-input-ring))
(global-set-key (kbd "C-c C-r") 'ivy-resume)
(global-set-key (kbd "<f6>") 'ivy-resume))
;; Vedno sledi symlinkom v git ;; Sinhronizacija podnapisov (uporablja mpv!)
(setq vc-follow-symlinks t) (use-package subed
:defer t
;; Projektni mgmt
(use-package projectile
:ensure t
:config (projectile-mode t))
;; Pomoc
;(use-package 'helpful :ensure t)
;; Prikazi nedavne ukaze prej v M-x
(use-package smex :ensure t)
;; Pomoc za keybinde
(use-package which-key
:ensure t
:config :config
;; Allow C-h to trigger which-key before it is done automatically ;; Remember cursor position between sessions
(setq which-key-show-early-on-C-h t) (add-hook 'subed-mode-hook 'save-place-local-mode)
;; make sure which-key doesn't show normally but refreshes quickly after it is ;; Break lines automatically while typing
;; triggered. (add-hook 'subed-mode-hook 'turn-on-auto-fill)
(setq which-key-idle-delay 0.4) ;; Break lines at 40 characters
(setq which-key-idle-secondary-delay 0.05) (add-hook 'subed-mode-hook (lambda () (setq-local fill-column 40)))
(which-key-mode)) ;; Some reasonable defaults
(add-hook 'subed-mode-hook 'subed-enable-pause-while-typing)
;; Prikazi startup time ;; As the player moves, update the point to show the current subtitle
(add-to-list 'after-init-hook (add-hook 'subed-mode-hook 'subed-enable-sync-point-to-player)
(lambda () ;; As your point moves in Emacs, update the player to start at the current subtitle
(message (concat "emacs (" (number-to-string (emacs-pid)) ") started in " (emacs-init-time))))) (add-hook 'subed-mode-hook 'subed-enable-sync-player-to-point)
;; Replay subtitles as you adjust their start or stop time with M-[, M-], M-{, or M-}
;; Backup fajli emacsa (add-hook 'subed-mode-hook 'subed-enable-replay-adjusted-subtitle)
(setq ;; Loop over subtitles
backup-by-copying t ; don't clobber symlinks (add-hook 'subed-mode-hook 'subed-enable-loop-over-current-subtitle)
backup-directory-alist ;; Show characters per second
`(("." . ,(concat user-emacs-directory "backups"))) (add-hook 'subed-mode-hook 'subed-enable-show-cps))
backup-directory-alist
`(("." . ,(concat user-emacs-directory "saves")))
delete-old-versions t
kept-new-versions 6
kept-old-versions 2
version-control t) ; use versioned backups
;; Ne delaj lock fajlov (smetijo namrec)
(setq create-lockfiles nil)
;; File asociacije
(use-package openwith
:ensure t
:config
(setq openwith-associations '(("\\.pdf\\'" "xdg-open" (file))))
(openwith-mode t))
;; Kolaborativno urejanje
(use-package crdt
:ensure t)
@ -572,19 +115,35 @@
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(custom-safe-themes
'("db3e80842b48f9decb532a1d74e7575716821ee631f30267e4991f4ba2ddf56e" "d14f3df28603e9517eb8fb7518b662d653b25b26e83bd8e129acea042b774298" "7661b762556018a44a29477b84757994d8386d6edee909409fabe0631952dad9" default))
'(iswitchb-mode t)
'(org-agenda-files
'("~/Dokumenti/todo.org" "/home/g1smo/Dokumenti/plac.org" "/home/g1smo/rs/org/2021-05-25-spletna-stran.org" "/home/g1smo/rs/org/2021-07-02-spletna.org" "/home/g1smo/rs/org/README.org" "/home/g1smo/rs/org/git-delavnica.org" "/home/g1smo/rs/org/irs-plan-period.org" "/home/g1smo/rs/org/irs-plan.org" "/home/g1smo/rs/org/irs.org" "/home/g1smo/rs/org/irs_old.org" "/home/g1smo/rs/org/kaki.org" "/home/g1smo/rs/org/prepoznava-komadov.org" "/home/g1smo/Dokumenti/agenda.org" "/home/g1smo/Dokumenti/blurb.org" "/home/g1smo/Dokumenti/delo.org" "/home/g1smo/Dokumenti/emanat.org" "/home/g1smo/Dokumenti/kompot.org" "/home/g1smo/Dokumenti/ljudmila.org" "/home/g1smo/Dokumenti/mu4e-setup.org" "/home/g1smo/Dokumenti/muska.org" "/home/g1smo/Dokumenti/org.org" "/home/g1smo/Dokumenti/projekti.org" "/home/g1smo/Dokumenti/recepti.org" "/home/g1smo/Dokumenti/samozaposlitev-prijava.org" "/home/g1smo/Dokumenti/shta.org" "/home/g1smo/Dokumenti/wtf.org" "/home/g1smo/Dokumenti/zapisi.org"))
'(package-selected-packages '(package-selected-packages
'(toml-mode smartparens crdt.el openwith evil-org-agenda company-org-block org-block-capf writeroom-mode racket-mode htmlize company-lsp web-mode tidal org-caldav format-all company-phpactor phpactor extempore-mode ob-mermaid use-package lsp-mode yaml-mode drupal-mode magit markdown-mode flycheck arduino-mode rjsx-mode gdscript-mode rainbow-delimiters which-key paredit geiser-guile geiser web-beautify vue-mode treemacs-evil treemacs-projectile treemacs smart-tabs-mode smart-tabs js2-mode smex clojure-mode helpful doom-themes counsel swiper all-the-icons doom-modeline evil-collection fennel-mode rg ivy company projectile evil)) '(2bit aggressive-indent all-the-icons arduino-mode benchmark-init
'(tool-bar-mode nil) company counsel-projectile crdt dap-mode dashboard direnv
'(warning-minimum-level :error) doom-modeline drupal-mode eat editorconfig elpher eros
'(which-key-mode t)) evil-collection evil-org extempore-mode fluxus-mode flycheck
format-all geben geiser-guile general gruvbox-theme guix
helpful htmlize lsp-mode magit-todos marginalia
mu4e-dashboard mu4e-marker-icons mu4e-thread-folding
ob-mermaid openwith orderless org-bullets org-caldav pyvenv
quelpa-use-package racket-mode rainbow-delimiters restclient
rg rjsx-mode sclang-extensions sesman slime smartparens smex
subed svg-icon svg-lib tidal toml-mode treemacs-evil
treemacs-projectile treesit-auto undo-tree vertico vue-mode
web-beautify web-mode which-key writeroom-mode yaml-mode
zone-nyan))
'(package-vc-selected-packages
'((svg-icon :url "https://github.com/rougier/emacs-svg-icon"))))
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(default ((t (:family "Iosevka SS01" :foundry "BE5N" :slant normal :weight semi-bold :height 120 :width normal))))) '(org-document-title ((t (:inherit default :weight bold :family "Sans Serif" :height 2.0 :underline nil))))
'(org-level-1 ((t (:inherit default :weight bold :family "Sans Serif" :height 1.75))))
'(org-level-2 ((t (:inherit default :weight bold :family "Sans Serif" :height 1.45))))
'(org-level-3 ((t (:inherit default :weight bold :family "Sans Serif" :height 1.25))))
'(org-level-4 ((t (:inherit default :weight bold :family "Sans Serif" :height 1.1)))))
;; supercollider mode load
;(require 'sclang)

View File

@ -0,0 +1 @@
("~/projekti/jugofuturizem/" "~/projekti/coopcycle-app/" "~/projekti/coopcycle-web/" "~/sredstva/dotfiles/" "~/projekti/waveywind/" "~/.local/share/SuperCollider/downloaded-quarks/MathLib/" "~/.local/share/SuperCollider/downloaded-quarks/SLIPDecoder/")

View File

@ -11,35 +11,41 @@ general {
interval = 5 interval = 5
color_good = "#2AA198" color_good = "#2AA198"
color_bad = "#586E75" color_bad = "#586E75"
color_degraded = "#DC322F" color_degraded = "#D79921"
separator = "" separator = ""
} }
order += "ipv6" order += "wireless _first_"
order += "ethernet _first_" order += "ethernet _first_"
order += "path_exists VPN"
order += "ipv6"
order += "disk /" order += "disk /"
order += "disk /home" order += "disk /home"
order += "wireless _first_"
order += "load" order += "load"
order += "memory" order += "memory"
order += "volume master" order += "volume master"
order += "battery all" order += "battery all"
order += "tztime local" order += "tztime local"
path_exists VPN {
path = "/proc/sys/net/ipv4/conf/ppp0"
format = " %status"
}
wireless _first_ { wireless _first_ {
#format_up = "W: (%quality at %essid) %ip" #format_up = "W: (%quality at %essid) %ip"
format_up = " %essid %ip %bitrate " format_up = " %essid %bitrate"
format_down = "  " format_down = " "
} }
ethernet _first_ { ethernet _first_ {
# if you use %speed, i3status requires root privileges # if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)" format_up = " (%speed)"
format_down = "E: " format_down = " "
} }
battery all { battery all {
format = " %status %percentage %remaining " format = " %status %percentage %remaining "
status_bat = "" status_bat = ""
status_chr = "" status_chr = ""
status_full = "" status_full = ""
@ -48,7 +54,7 @@ battery all {
} }
tztime local { tztime local {
format = "%d.%m.%Y  %H:%M" format = "%d.%m.%Y  %H:%M "
} }
load { load {
@ -56,25 +62,25 @@ load {
} }
disk "/" { disk "/" {
format = " %avail" format = "  %avail"
} }
disk "/home" { disk "/home" {
format = " %avail " format = " %avail "
} }
ipv6 { ipv6 {
format_up = "IPv6 up" format_up = "IPv6"
#format_down = "no IPv6" format_down = " IPv6"
} }
memory { memory {
format = " %used " format = " %used "
} }
volume master { volume master {
device = "pulse" device = "pulse"
format = " %volume" format = " %volume "
format_muted = "" format_muted = " "
mixer = "Master" mixer = "Master"
} }

View File

@ -37,7 +37,7 @@ export MOZ_ENABLE_WAYLAND=1
export QT_QPA_PLATFORMTHEME=gtk export QT_QPA_PLATFORMTHEME=gtk
export QT_FONT_DPI=95 export QT_FONT_DPI=95
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel $_JAVA_OPTIONS" #export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel $_JAVA_OPTIONS"
export JAVA_FONTS="/usr/share/fonts/TTF" export JAVA_FONTS="/usr/share/fonts/TTF"
#export QT_QPA_PLATFORM=wayland-egl #export QT_QPA_PLATFORM=wayland-egl
export QT_WAYLAND_FORCE_DPI=physical export QT_WAYLAND_FORCE_DPI=physical
@ -65,3 +65,4 @@ export PATH="$HOME/.config/guix/current/bin:$PATH"
#if [ "$(tty)" = "/dev/tty1" ]; then #if [ "$(tty)" = "/dev/tty1" ]; then
# QT_QPA_PLATFORM=wayland-egl SDL_VIDEODRIVER=wayland exec sway # QT_QPA_PLATFORM=wayland-egl SDL_VIDEODRIVER=wayland exec sway
#fi #fi
. "$HOME/.cargo/env"

View File

@ -10,3 +10,10 @@ Host felis.kreten.si
Host a2z.si Host a2z.si
HostkeyAlgorithms ssh-dss,ssh-rsa HostkeyAlgorithms ssh-dss,ssh-rsa
KexAlgorithms +diffie-hellman-group1-sha1 KexAlgorithms +diffie-hellman-group1-sha1
Host 192.168.64.100
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa
Host 192.168.32.1
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa

55
.zshrc
View File

@ -62,10 +62,11 @@ bindkey '^R' history-incremental-pattern-search-backward
#} #}
# Aliasi # Aliasi
alias ll='ls -l'
alias grep='grep --color=auto'
alias ls='ls --color -C' alias ls='ls --color -C'
alias vi='vim' alias vi='vim'
alias sudo='sudo env PATH=$PATH ' alias sudo='sudo '
alias grep="grep --color=auto"
alias ag="rg" alias ag="rg"
alias less="less -R" alias less="less -R"
@ -78,9 +79,6 @@ alias offer-files="python3 -m http.server"
# X on wayland # X on wayland
alias wxon="xhost +local:" alias wxon="xhost +local:"
# RŠ aliasi
alias omnom="ssh root@debeli"
# Ljudmila # Ljudmila
alias scdev="ssh culture@milci.ljudmila.org" alias scdev="ssh culture@milci.ljudmila.org"
alias scnew="ssh culture@zala.ljudmila.org" alias scnew="ssh culture@zala.ljudmila.org"
@ -99,7 +97,8 @@ alias srs='f(){ ssh jurijp@$1.radiostudent.local };f'
alias srr='f(){ ssh root@$1.radiostudent.local };f' alias srr='f(){ ssh root@$1.radiostudent.local };f'
alias rss='f(){ ssh jurijp@$1.radiostudent.si };f' alias rss='f(){ ssh jurijp@$1.radiostudent.si };f'
alias rsr='f(){ ssh root@$1.radiostudent.si };f' alias rsr='f(){ ssh root@$1.radiostudent.si };f'
alias zw="ssh zeljko@dev.radiostudent.si" alias rs='ssh radiostudent.si'
alias rr='ssh root@radiostudent.si'
# Poslusaj snemanje # Poslusaj snemanje
alias poslusaj='pactl load-module module-loopback latency_msec=1' alias poslusaj='pactl load-module module-loopback latency_msec=1'
@ -127,11 +126,51 @@ alias deb-build="dpkg-buildpackage -b -rfakeroot -us -uc"
alias run-gamma="pkill -f gammastep; sleep 3; screen -dm -- gammastep -m wayland -l 46.05108:14.50513" alias run-gamma="pkill -f gammastep; sleep 3; screen -dm -- gammastep -m wayland -l 46.05108:14.50513"
# Spanje / nespanje
alias insomnia="sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target"
alias pocivanje="sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target"
alias lowdelay="PIPEWIRE_LATENCY=128/48000 "
# zvok prek mreze!
alias pulse-listen="pactl load-module module-native-protocol-tcp port=4656 listen="
alias pulse-connect="pactl load-module module-tunnel-sink server=tcp:${PULSEIP}:4656"
alias pulse-virtual-sink="pactl load-module module-null-sink media.class=Audio/Source/Virtual sink_name=my-virtualmic channel_map=front-left,front-right"
alias sardon="source $HOME/mska/sardine/venv/bin/activate"
alias powersave="sudo cpupower frequency-set -g powersave"
alias powerfull="sudo cpupower frequency-set -g ondemand"
alias imgcrop1920="mogrify -resize 1920x1920 "
alias ustvari-drupal="composer create-project drupal/recommended-project "
# Za LXD! # Za LXD!
export PATH="${PATH}:$(go env GOPATH)/bin:/sbin:/usr/sbin" if command -v go &> /dev/null; then
export LD_LIBRARY_PATH="$(go env GOPATH)/deps/dqlite/.libs/:$(go env GOPATH)/deps/raft/.libs/:${LD_LIBRARY_PATH}" export PATH="${PATH}:$(go env GOPATH)/bin:/sbin:/usr/sbin"
fi
#export LD_LIBRARY_PATH="$(go env GOPATH)/deps/dqlite/.libs/:$(go env GOPATH)/deps/raft/.libs/:${LD_LIBRARY_PATH}"
# ??? fix crashanja
#export LD_LIBRARY_PATH="/lib/x86_64-linux-gnu:/lib/i386-linux-gnu"
# JS fix (prevec nov za openssl) # JS fix (prevec nov za openssl)
#export NODE_OPTIONS="--openssl-legacy-provider" #export NODE_OPTIONS="--openssl-legacy-provider"
# Terminal podpora
alias termfix="TERM=rxvt-256color "
#export TERM=rxvt-256color
# Deli internet (iz wifi na eth)
alias share-internet="sudo iptables --table nat -A POSTROUTING --out-interface enp5s0 -j MASQUERADE && sudo iptables -A FORWARD --in-interface eth1 -j ACCEPT"
# Android studio in SDK
export ANDROID_HOME="$HOME/Android/Sdk"
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
#export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin/
export PATH=$PATH:$HOME/android-studio/bin
export PATH=$PATH:/opt/gradle-8.7/bin
# Cargo!
export PATH=$HOME/.cargo/bin:$PATH

View File

@ -0,0 +1,12 @@
[Desktop Entry]
Name=Arduino IDE 2
Comment=Open-source electronics prototyping platform
GenericName=Arduino IDE 2
Exec=env LD_LIBRARY_PATH=/lib/x86_64-linux-gnu /home/g1smo/apps/arduino-ide_2.3.2_Linux_64bit.AppImage %f
Icon=arduino
Type=Application
Terminal=false
Categories=Development;Engineering;Electronics;IDE;
MimeType=text/x-arduino
Keywords=embedded electronics;electronics;avr;microcontroller;
StartupWMClass=processing-app-Base

View File

@ -1,4 +1,4 @@
#!/usr/bin/python3 #!/usr/bin/env python3
# This script requires i3ipc-python package (install it from a system package manager # This script requires i3ipc-python package (install it from a system package manager

View File

@ -1,74 +0,0 @@
;; This is an operating system configuration template
;; for a "desktop" setup with GNOME and Xfce.
(use-modules (gnu) (srfi srfi-1) (gnu system nss))
(use-service-modules desktop networking)
(use-package-modules bootloaders certs shells ssh version-control emacs vim wm freedesktop xorg fontutils)
;; ZSH location G-expr
(define zsh-location
#~(string-append #$zsh "/bin/zsh"))
;; Replace wicd with NetworkManager
(define %desktop-services-nm
(cons* (service network-manager-service-type (network-manager-configuration))
(service wpa-supplicant-service-type)
;;(service account-service-type)
(remove (lambda (service) (eq? wicd-service-type (service-kind service))) %desktop-services)))
(operating-system
(host-name "gpnx")
(timezone "Europe/Ljubljana")
(locale "en_US.UTF-8")
;; Assuming /dev/sdX is the target hard disk, and "my-root"
;; is the label of the target root file system.
(bootloader (grub-configuration (grub grub);;-efi)
;;(device "/dev/sda1")))
(device "/dev/sda")))
(file-systems (cons* (file-system
(device "gpnx")
(title "GNU Guix SD pnx")
(mount-point "/")
(type "ext4"))
(file-system
(device "/dev/sda1")
(mount-point "/boot/efi")
(type "vfat"))
%base-file-systems))
(users (cons* (user-account
(name "yuri")
(comment "Silly Yuri")
(group "users")
(shell zsh-location)
(supplementary-groups '("wheel" "netdev"
"audio" "video"))
(home-directory "/home/yuri"))
%base-user-accounts))
;; This is where we specify system-wide packages.
(packages (cons* nss-certs ;for HTTPS access
zsh ;Z shell
openssh
git
emacs
vim
bspwm
libinput
xf86-input-libinput
freetype
%base-packages))
;; Add GNOME and/or Xfce---we can choose at the log-in
;; screen with F1. Use the "desktop" services, which
;; include the X11 log-in service, networking with Wicd,
;; and more.
(services (cons* ;;(xfce-desktop-service)
(gnome-desktop-service)
%desktop-services-nm))
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss))

136
guix/config.scm 100644
View File

@ -0,0 +1,136 @@
;; -*- mode: scheme; -*-
;; This is an operating system configuration template
;; for a "desktop" setup with GNOME and Xfce.
(use-modules (gnu)
(gnu system nss)
(guix utils)
(nongnu packages linux)
(nongnu system linux-initrd)
(srfi srfi-1))
(use-service-modules desktop xorg dns networking)
(use-package-modules bootloaders certs shells ssh version-control emacs vim wm freedesktop xorg fontutils)
(operating-system
(host-name "apnx")
(timezone "Europe/Ljubljana")
(locale "sl_SI.utf8")
;; Use the UEFI variant of GRUB with the EFI System
;; Partition mounted on /boot/efi.
(bootloader (bootloader-configuration
(bootloader grub-efi-bootloader)
(targets '("/boot/efi"))))
(kernel linux)
(initrd microcode-initrd)
(firmware (list linux-firmware))
(file-systems (cons* (file-system
(device "/dev/sda3")
(mount-point "/")
(type "btrfs")
(options "compress"))
(file-system
(device "/dev/sda2")
(mount-point "/boot/efi")
(type "vfat"))
%base-file-systems))
(users (cons* (user-account
(name "yuri")
(comment "Yuri")
(group "users")
(supplementary-groups '("wheel" "netdev"
"audio" "video"
"dialout" "users"))
(home-directory "/home/g1smo"))
%base-user-accounts))
(packages (append (list (specification->package "i3-wm")
(specification->package "i3status")
(specification->package "dmenu")
(specification->package "st")
(specification->package "nss-certs")
;; sistem
(specification->package "lvm2")
;; WM zadeve
(specification->package "sway")
(specification->package "swaybg")
(specification->package "rofi")
(specification->package "i3-autotiling")
(specification->package "waybar")
(specification->package "gammastep")
(specification->package "kitty")
(specification->package "eog")
(specification->package "nautilus")
;; Urejevalniki teksta
(specification->package "emacs")
(specification->package "vim")
;; Razno
(sepcification->package "zsh")
(specification->package "git")
(specification->package "file"))
%base-packages))
(services (cons* (service xfce-desktop-service-type)
(service gnome-desktop-service-type)
(service dnsmasq-service-type
(dnsmasq-configuration
(cache-size 1500)))
(service network-manager-service-type
(network-manager-configuration
(dns "dnsmasq")))
(service pam-limits-service-type
(list
(pam-limits-entry "@audio" 'both 'rtprio 99)
(pam-limits-entry "@audio" 'both 'memlock 'unlimited)))
(remove
(lambda (service)
(eq? network-manager-service-type (service-kind service)))
%desktop-services)))
(swap-devices (list (swap-space
(target (uuid
"76019829-e8eb-477c-a08a-d2ccff3fcdd5")))))
;(mapped-devices (list (mapped-device
; (source (uuid
; "52c83c72-c391-4a71-8405-897603f61363"))
; (target "gpnx-root")
; (type luks-device-mapping))
; (mapped-device
; (source (uuid
; "3020ad8b-ee01-49e2-8a46-3f66c902ef67"))
; (target "dbn-home")
; (type luks-device-mapping))
; (mapped-device
; (source "dbn-vg")
; (targets (list "home"))
; (type lvm-device-mapping))
; ))
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss)
(file-systems (cons* (file-system
(mount-point "/")
(device "/dev/mapper/gpnx-root")
(type "ext4")
(dependencies mapped-devices))
(file-system
(mount-point "/boot")
(device (uuid "65689a28-4afb-4c40-9ff2-2a0df1168a86"))
(type "ext2"))
(file-system
(mount-point "/boot/efi")
(device (uuid "3F44-75AB"
'fat16))
(type "vfat"))
;(file-system
;(mount-point "/home/g1smo/dbn")
;(device "/dev/mapper/dbn-home")
;(type "ext4")
;(dependencies mapped-devices))
%base-file-systems)))

View File

@ -0,0 +1,7 @@
# ~/.bash_logout: executed by bash(1) when login shell exits.
# when leaving the console clear the screen to increase privacy
if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
fi

113
guix/home/.bashrc 100644
View File

@ -0,0 +1,113 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
#alias grep='grep --color=auto'
#alias fgrep='fgrep --color=auto'
#alias egrep='egrep --color=auto'
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi

View File

@ -0,0 +1,107 @@
;; This "home-environment" file can be passed to 'guix home reconfigure'
;; to reproduce the content of your profile. This is "symbolic": it only
;; specifies package names. To reproduce the exact same profile, you also
;; need to capture the channels being used, as returned by "guix describe".
;; See the "Replicating Guix" section in the manual.
(use-modules (gnu home)
(gnu packages)
(gnu services)
(guix gexp)
(gnu home services shells)
(gnu home services pm))
(home-environment
;; Below is the list of packages that will show up in your
;; Home profile, under ~/.guix-home/profile.
(packages (specifications->packages (list "element-desktop"
"emacs-next-pgtk-xwidgets"
"nyxt"
"gnome-tweaks"
"calibre"
"arc-theme"
"nautilus"
"thunar"
"numix-gtk-theme"
"wine64"
"guile-goblins"
"xdg-desktop-portal"
"transmission:gui"
"transmission"
"nicotine+"
"gammastep"
"hyprland"
"mako"
"gimp-resynthesizer"
"gzdoom"
"irssi"
"gnubg"
"freegish"
"eog"
"qpwgraph"
"libreoffice"
"evince"
"krita"
"kigo"
"keepassxc"
"gedit"
"gimp"
"seahorse"
"pavucontrol"
"guile-chickadee"
"inkscape"
"pipewire"
"gdk-pixbuf-xlib"
"i3status"
"kitty"
"mesa-utils"
"mesa"
"foot"
"i3-wm"
"tumbler"
"gdk-pixbuf"
"mu"
"rust"
"sway"
"rofi-wayland"
"xorg-server-xwayland"
"non-mixer"
"swaybg"
"gnupg"
"wfetch"
"emacs-next-pgtk"
"guile3-dbd-mysql"
"artanis"
"texlive-etbb"
"hyfetch"
"guile3-dbd-sqlite3"
"guile3-dbi"
"surfraw"
"valgrind"
"guile-readline"
"emacs-scel"
"xxd"
"basu"
"icedove-wayland"
"icedove-l10n:sl"
"guile"
"nss-certs"
"glibc-locales")))
;; Below is the list of Home services. To search for available
;; services, run 'guix home search KEYWORD' in a terminal.
(services
(list (service home-bash-service-type
(home-bash-configuration
(aliases '(("ls" . "ls --color=auto")))
(bashrc (list (local-file ".bashrc" "bashrc")))
(bash-logout (list (local-file ".bash_logout"
"bash_logout")))))
(service home-batsignal-service-type)
(service home-redshift-service-type
(home-redshift-configuration
(location-provider 'manual)
(latitude 46.05108)
(longitude 14.50513)))
(service home-dbus-configuration)
(service home-pipewire-service-type)))

32
guix/manifest.scm 100644
View File

@ -0,0 +1,32 @@
;; This "manifest" file can be passed to 'guix package -m' to reproduce
;; the content of your profile. This is "symbolic": it only specifies
;; package names. To reproduce the exact same profile, you also need to
;; capture the channels being used, as returned by "guix describe".
;; See the "Replicating Guix" section in the manual.
(specifications->manifest
(list "screen"
"emacs-web-mode"
"emacs-php-mode"
"emacs-treemacs"
"emacs-general"
"emacs-projectile"
"emacs-lsp-mode"
"emacs-dashboard"
"emacs-writeroom"
"emacs-ivy"
"emacs-pyvenv"
"emacs-geiser"
"emacs-company"
"emacs-editorconfig"
"emacs-all-the-icons"
"emacs-doom-modeline"
"emacs-autothemer"
"emacs-annalist"
"emacs-rainbow-delimiters"
"sway"
"emacs-next-pgtk"
"glibc-locales@2.35"
"font-fira-code"
"foot"
"rofi-wayland"))

View File

@ -0,0 +1,75 @@
(define-module (home services mako)
#:use-module (ice-9 match)
#:use-module (gnu home services)
#:use-module (gnu services configuration)
#:use-module (guix packages)
#:use-module (guix gexp)
#:use-module (gnu packages wm)
#:use-module (guix import utils)
#:use-module ((gnu home-services-utils) #:select (maybe-object->string))
#:export (home-mako-service-type
home-mako-configuration))
(define-configuration/no-serialization home-mako-configuration
(package
(package mako)
"mako package to use")
(config
(alist '())
""))
(define (serialize-mako-config config)
(define* (serialize-criteria criteria #:optional (res '()))
(match criteria
((field value)
(format #f "[~a]\n"
(string-join
(cons (format #f "~a=\"~a\"" field value) res))))
((field value . rest)
(serialize-criteria
rest
(cons (format #f "~a=\"~a\"" field value) res)))))
(define (serialize-key key)
(if (list? key)
(serialize-criteria key)
(string-append (maybe-object->string key) "=")))
(define (serialize-val val)
(cond
((or (number? val) (symbol? val)) (maybe-object->string val))
((list? val) (serialize-mako-config val))
(else val)))
(define (serialize-field key val)
(let ((val (serialize-val val))
(key (serialize-key key)))
(list key val)))
(generic-serialize-alist
(lambda args (flatten (interpose args)))
serialize-field
config))
(define (add-mako-configuration config)
(let ((cfg (home-mako-configuration-config config)))
`(("mako/config"
,(apply mixed-text-file
"config"
(serialize-mako-config cfg))))))
(define add-mako-package
(compose list home-mako-configuration-package))
(define home-mako-service-type
(service-type
(name 'home-mako)
(extensions
(list (service-extension
home-xdg-configuration-files-service-type
add-mako-configuration)
(service-extension
home-profile-service-type
add-mako-package)))
(default-value (home-mako-configuration))
(description "")))

View File

@ -0,0 +1,87 @@
(define-module (home services pipewire)
#:use-module (guix gexp)
#:use-module (gnu packages linux)
#:use-module (gnu packages pulseaudio)
#:use-module (gnu home services)
#:use-module (gnu home services shepherd))
(define (home-pipewire-files-service _)
`(("alsa/asoundrc"
,(mixed-text-file
"asoundrc"
#~(string-append
"<"
#$(file-append
pipewire
"/share/alsa/alsa.conf.d/50-pipewire.conf")
">\n<"
#$(file-append
pipewire
"/share/alsa/alsa.conf.d/99-pipewire-default.conf")
">\n"
"
pcm_type.pipewire {
lib " #$(file-append
pipewire
"/lib/alsa-lib/libasound_module_pcm_pipewire.so") "
}
ctl_type.pipewire {
lib " #$(file-append
pipewire
"/lib/alsa-lib/libasound_module_ctl_pipewire.so") "
}
")))))
(define (home-pipewire-shepherd-service _)
(list
(shepherd-service
(requirement '(dbus))
(provision '(pipewire))
(stop #~(make-kill-destructor))
(start #~(make-forkexec-constructor
(list #$(file-append pipewire "/bin/pipewire")))))
(shepherd-service
(requirement '(pipewire))
(provision '(wireplumber))
(stop #~(make-kill-destructor))
(start #~(make-forkexec-constructor
(list #$(file-append wireplumber "/bin/wireplumber")))))
#;
(shepherd-service
(requirement '(pipewire))
(provision '(pipewire-media-session))
(stop #~(make-kill-destructor))
(start #~(make-forkexec-constructor
(list
#$(file-append
pipewire-media-session
"/bin/pipewire-media-session")
"-c"
#$(file-append
pipewire-media-session
"/share/pipewire/media-session.d/media-session.conf")))))
(shepherd-service
(requirement '(pipewire))
(provision '(pipewire-pulse))
(stop #~(make-kill-destructor))
(start #~(make-forkexec-constructor
(list #$(file-append pipewire "/bin/pipewire-pulse")))))))
(define-public home-pipewire-service-type
(service-type
(name 'home-pipewire)
(extensions
(list (service-extension
home-xdg-configuration-files-service-type
home-pipewire-files-service)
(service-extension
home-shepherd-service-type
home-pipewire-shepherd-service)
(service-extension
home-profile-service-type
(const (list pipewire pulseaudio)))))
(default-value #f)
(description "run pipewire and stuff")))

31
init.sh
View File

@ -1,12 +1,29 @@
#!/bin/sh #!/bin/sh
# Instaliraj vim plug! # Instaliraj vim plug!
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim if [ ! -f ~/.vim/autoload/plug.vim ]; then
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
fi
# Zloudaj font (statusbar, emacs) # Zloudaj font (statusbar, emacs)
mkdir ~/.fonts if [ ! -d ~/.fonts ]; then
curl -fLo ~/.fonts/iosevka.zip https://github.com/be5invis/Iosevka/releases/download/v20.0.0/super-ttc-iosevka-ss01-20.0.0.zip mkdir ~/.fonts
cd ~/.fonts fi
unzip iosevka.zip if [ ! -d ~/.fonts/iosevka ]; then
rm iosevka.zip curl -fLo ~/.fonts/iosevka.zip https://github.com/be5invis/Iosevka/releases/download/v20.0.0/super-ttc-iosevka-ss01-20.0.0.zip
fc-cache -f cd ~/.fonts || exit 1
unzip iosevka.zip
rm iosevka.zip
fc-cache -f
fi
# Zloudaj gruvbox ikone
if [ ! -d ~/.icons ]; then
mkdir ~/.icons
fi
if [ ! -d ~/.icons/Gruvbox-Plus-Dark ]; then
curl -fLo ~/.icons/Gruvbox-Plus-Dark.zip https://github.com/SylEleuth/gruvbox-plus-icon-pack/releases/download/v4.0/gruvbox-plus-icon-pack-4.0.zip
cd ~/.icons || exit 1
unzip Gruvbox-Plus-Dark.zip
rm Gruvbox-Plus-Dark.zip
fi

BIN
ozadje2.jpg 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 658 KiB

BIN
ozadje3.jpg 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

BIN
ozadje4.jpg 100644

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 KiB

View File

@ -1,101 +1,94 @@
#!/bin/sh #!/bin/sh
DIR=`pwd` DIR=$(pwd)
echo "DIR: $DIR" echo "DIR: $DIR"
# Profile # Profile
ln -s $DIR/.profile ~/.profile ln -s "$DIR/.profile" ~/.profile
ln -s $DIR/.profile ~/.zprofile
# ZSH shell! # ZSH shell!
ln -s $DIR/.zshrc ~/.zshrc ln -s "$DIR/.zshrc" ~/.zshrc
ln -s $DIR/.zprofile ~/.zprofile ln -s "$DIR/.zprofile" ~/.zprofile
ln -s "$DIR/.zlogin" ~/.zlogin
# i3 config (<3 tiling WM) # i3 config (<3 tiling WM)
mkdir ~/.config/i3 mkdir ~/.config/i3
ln -s $DIR/.config/i3/config ~/.config/i3/config ln -s "$DIR/.config/i3/config" ~/.config/i3/config
# sway config (i3 za wayland) # sway config (i3 za wayland)
mkdir ~/.config/sway mkdir ~/.config/sway
ln -s $DIR/.config/sway/config ~/.config/sway/config ln -s "$DIR/.config/sway/config" ~/.config/sway/config
# i3status vrstica zgoraj # i3status vrstica zgoraj
ln -s $DIR/.i3status.conf ~/.i3status.conf ln -s "$DIR/.i3status.conf" ~/.i3status.conf
# termite terminal (ok terminal za X) # termite terminal (ok terminal za X)
mkdir ~/.config/termite mkdir ~/.config/termite
ln -s $DIR/.config/termite/config ~/.config/termite/config ln -s "$DIR/.config/termite/config" ~/.config/termite/config
# Kitty terminal (GL, wayland) # Kitty terminal (GL, wayland)
mkdir ~/.config/kitty mkdir ~/.config/kitty
ln -s $DIR/.config/kitty/kitty.conf ~/.config/kitty/kitty.conf ln -s "$DIR/.config/kitty/kitty.conf" ~/.config/kitty/kitty.conf
ln -s $DIR/.config/kitty/solarized.conf ~/.config/kitty/solarized.conf ln -s "$DIR/.config/kitty/solarized.conf" ~/.config/kitty/solarized.conf
ln -s $DIR/.config/kitty/gruvbox.conf ~/.config/kitty/gruvbox.conf ln -s "$DIR/.config/kitty/gruvbox.conf" ~/.config/kitty/gruvbox.conf
# Foot terminal (minimal wayland term) # Foot terminal (minimal wayland term)
mkdir ~/.config/foot mkdir ~/.config/foot
ln -s $DIR/.config/foot/foot.ini ~/.config/foot/foot.ini ln -s "$DIR/.config/foot/foot.ini" ~/.config/foot/foot.ini
# compton compositor (za X - transparence oken in efekti) # compton compositor (za X - transparence oken in efekti)
ln -s $DIR/.config/compton.conf ~/.config/compton.conf ln -s "$DIR/.config/compton.conf" ~/.config/compton.conf
# redshift (pordeci skrin, X) # redshift (pordeci skrin, X)
ln -s $DIR/.config/redshift ~/.config/redshift ln -s "$DIR/.config/redshift" ~/.config/redshift
# i3 block, bolj fensi statusbar (ne uporabljam vec) # i3 block, bolj fensi statusbar (ne uporabljam vec)
ln -s $DIR/.i3blocks.conf ~/.i3blocks.conf ln -s "$DIR/.i3blocks.conf" ~/.i3blocks.conf
# rofi launcher # rofi launcher
mkdir ~/.config/rofi mkdir ~/.config/rofi
ln -s $DIR/.config/rofi/config.rasi ~/.config/rofi/config.rasi ln -s "$DIR/.config/rofi/config.rasi" ~/.config/rofi/config.rasi
# ter gruvbox tema
mkdir -p ~/.config/rofi/themes
ln -s $DIR/.config/rofi/themes/gruvbox ~/.config/rofi/themes/gruvbox
# VIM! # VIM!
ln -s $DIR/.vimrc ~/.vimrc ln -s "$DIR/.vimrc" ~/.vimrc
# barve v terminalu in neki detajli, X # barve v terminalu in neki detajli, X
ln -s $DIR/.Xresources ~/.Xresources ln -s "$DIR/.Xresources" ~/.Xresources
# ZSH login nastavitve (ni urejeno)
ln -s $DIR/.zlogin ~/.zlogin
# GIT konfiguracija # GIT konfiguracija
ln -s $DIR/.gitconfig ~/.gitconfig ln -s "$DIR/.gitconfig" ~/.gitconfig
# ZSH profile nastavitve (ni urejeno)
#ln -s $DIR/.profile ~/.profile
ln -s $DIR/.zprofile ~/.zprofile
# Razne uporabne skripte # Razne uporabne skripte
mkdir ~/bin mkdir ~/bin
# Screenshot skripta (wayland) # Screenshot skripta (wayland)
ln -s $DIR/bin/screenshot ~/bin/screenshot ln -s "$DIR/bin/screenshot" ~/bin/screenshot
# backup ukaz # backup ukaz
ln -s $DIR/bin/backmeup ~/bin/backmeup ln -s "$DIR/bin/backmeup" ~/bin/backmeup
# transparenca neaktivnih oken na swayu # transparenca neaktivnih oken na swayu
ln -s $DIR/bin/inactive-windows-transparency.py ~/bin/inactive-windows-transparency.py ln -s "$DIR/bin/inactive-windows-transparency.py" ~/bin/inactive-windows-transparency.py
# virtual piano keyboard na pulseaudiu! # virtual piano keyboard na pulseaudiu!
ln -s $DIR/bin/png2ico ~/bin/png2ico ln -s "$DIR/bin/png2ico" ~/bin/png2ico
# png v ico konverzija # png v ico konverzija
ln -s $DIR/bin/vmpk-pa ~/bin/vmpk-pa ln -s "$DIR/bin/vmpk-pa" ~/bin/vmpk-pa
ln -s $DIR/bin/autotiling.py ~/bin/autotiling.py ln -s "$DIR/bin/autotiling.py" ~/bin/autotiling.py
# Guile # Guile
ln -s $DIR/.guile ~/.guile ln -s "$DIR/.guile" ~/.guile
# X11 popravki aplikacij # X11 popravki aplikacij
ln -s $DIR/applications/dbeaver.desktop ~/.local/share/applications/dbeaver.desktop ln -s "$DIR/applications/dbeaver.desktop" ~/.local/share/applications/dbeaver.desktop
ln -s $DIR/applications/dbeaver.desktop ~/.local/share/applications/com.obsproject.Studio.desktop ln -s "$DIR/applications/dbeaver.desktop" ~/.local/share/applications/com.obsproject.Studio.desktop
ln -s "$DIR/applications/arduino2.desktop" ~/.local/share/applications/arduino2.desktop
# Emacs <3 # Emacs <3
mkdir ~/.emacs.d mkdir ~/.emacs.d
ln -s $DIR/.emacs.d/init.el ~/.emacs.d/init.el ln -s "$DIR/.emacs.d/init.el" ~/.emacs.d/init.el
ln -s $DIR/.emacs.d/projectile-bookmarks.eld ~/.emacs.d/projectile-bookmarks.eld ln -s "$DIR/.emacs.d/config.org" ~/.emacs.d/config.org
ln -s $DIR/.emacs.d/bookmarks ~/.emacs.d/bookmarks ln -s "$DIR/.emacs.d/projectile-bookmarks.eld" ~/.emacs.d/projectile-bookmarks.eld
ln -s "$DIR/.emacs.d/bookmarks" ~/.emacs.d/bookmarks
# SSH (timeout) # SSH (timeout)
mkdir ~/.ssh mkdir ~/.ssh
ln -s $DIR/.ssh/config ~/.ssh/config ln -s "$DIR/.ssh/config" ~/.ssh/config