Compare commits

..

No commits in common. "deblo" and "x1carbon" have entirely different histories.

56 changed files with 376 additions and 4041 deletions

View File

@ -1,11 +1,9 @@
!!! Scaling, fonts !!!
!Xft.dpi: 95
Xft.dpi: 158
Xft.autohint: 0
Xft.dpi: 210
!Xft.autohint: 1
Xft.autohint: 0
Xft.lcdfilter: lcddefault
!Xft.hintstyle: hintslight
Xft.hintstyle: hintfull
Xft.hintstyle: hintslight
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb
@ -56,7 +54,8 @@ Xft.rgba: rgb
!!! Urxvt options !!!
! font
URxvt*font: xft:Fira Code Medium:size=9,xft:Noto Emoji:size=9
!URxvt*font: xft:Fira Mono Medium:size=10,xft:Noto Emoji:size=10
URxvt*font: xft:Fira Mono Medium:size=8,xft:Noto Emoji:size=8
! Fix letter spacing; this is not needed in patched urxvt
! URxvt*letterSpace: -1
! hide scrollbar
@ -80,7 +79,3 @@ URxvt.keysym.M-Escape: perl:keyboard-select:activate
! transparency
URxvt*depth: 32
URxvt*background: [94]S_base03
xterm*decTerminalID : vt340
Xcursor.theme: Bibata-Original-Classic

View File

@ -1,219 +0,0 @@
# -*- conf -*-
# shell=$SHELL (if set, otherwise user's default shell from /etc/passwd)
# term=foot (or xterm-256color if built with -Dterminfo=disabled)
# login-shell=no
# app-id=foot
# title=foot
# locked-title=no
# font=monospace:size=8
font=Fira Code Medium:size=11
# font-bold=<bold variant of regular font>
# font-italic=<italic variant of regular font>
# font-bold-italic=<bold+italic variant of regular font>
# line-height=<font metrics>
# letter-spacing=0
# horizontal-letter-offset=0
# vertical-letter-offset=0
# underline-offset=<font metrics>
# box-drawings-uses-font-glyphs=no
# dpi-aware=auto
# initial-window-size-pixels=700x500 # Or,
# initial-window-size-chars=<COLSxROWS>
# initial-window-mode=windowed
# pad=2x2 # optionally append 'center'
pad=6x5
# resize-delay-ms=100
# notify=notify-send -a ${app-id} -i ${app-id} ${title} ${body}
# bold-text-in-bright=no
# word-delimiters=,│`|:"'()[]{}<>
# selection-target=primary
# workers=<number of logical CPUs>
[environment]
# name=value
[bell]
# urgent=no
# notify=no
# command=
# command-focused=no
[scrollback]
# lines=1000
multiplier=25.0
# indicator-position=relative
# indicator-format=
[url]
# launch=xdg-open ${url}
# label-letters=sadfjklewcmpgh
# osc8-underline=url-mode
# protocols=http, https, ftp, ftps, file, gemini, gopher
# uri-characters=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.,~:;/?#@!$&%*+="'()[]
[cursor]
# style=block
# color=<inverse foreground/background>
# blink=no
# beam-thickness=1.5
# underline-thickness=<font underline thickness>
[mouse]
# hide-when-typing=no
alternate-scroll-mode=yes
[colors]
#alpha=0.975
alpha=0.9
# foreground=dcdccc
# background=111111
## Normal/regular colors (color palette 0-7)
# regular0=222222 # black
# regular1=cc9393 # red
# regular2=7f9f7f # green
# regular3=d0bf8f # yellow
# regular4=6ca0a3 # blue
# regular5=dc8cc3 # magenta
# regular6=93e0e3 # cyan
# regular7=dcdccc # white
## Bright colors (color palette 8-15)
# bright0=666666 # bright black
# bright1=dca3a3 # bright red
# bright2=bfebbf # bright green
# bright3=f0dfaf # bright yellow
# bright4=8cd0d3 # bright blue
# bright5=fcace3 # bright magenta
# bright6=b3ffff # bright cyan
# bright7=ffffff # bright white
## dimmed colors (see foot.ini(5) man page)
# dim0=<not set>
# ...
# dim7=<not-set>
## The remaining 256-color palette
# 16 = <256-color palette #16>
# ...
# 255 = <256-color palette #255>
## Misc colors
# selection-foreground=<inverse foreground/background>
# selection-background=<inverse foreground/background>
# jump-labels=<regular0> <regular3> # black-on-yellow
# scrollback-indicator=<regular0> <bright4> # black-on-bright-blue
# search-box-no-match=<regular0> <regular1> # black-on-red
# search-box-match=<regular0> <regular3> # black-on-yellow
# urls=<regular3>
# -*- conf -*-
# Gruvbox
background=282828
foreground=ebdbb2
regular0=2d2b2a
regular1=cc241d
regular2=98971a
regular3=d79921
regular4=458588
regular5=b16286
regular6=689d6a
regular7=a89984
bright0=928374
bright1=fb4934
bright2=b8bb26
bright3=fabd2f
bright4=83a598
bright5=d3869b
bright6=8ec07c
bright7=ebdbb2
[csd]
# preferred=server
# size=26
# font=<primary font>
# color=<foreground color>
# hide-when-typing=no
# border-width=0
# border-color=<csd.color>
# button-width=26
# button-color=<background color>
# button-minimize-color=<regular4>
# button-maximize-color=<regular2>
# button-close-color=<regular1>
[key-bindings]
# scrollback-up-page=Shift+Page_Up
# scrollback-up-half-page=none
# scrollback-up-line=none
# scrollback-down-page=Shift+Page_Down
# scrollback-down-half-page=none
# scrollback-down-line=none
# clipboard-copy=Control+Shift+c XF86Copy
# clipboard-paste=Control+Shift+v XF86Paste
# primary-paste=Shift+Insert
# search-start=Control+Shift+r
# font-increase=Control+plus Control+equal Control+KP_Add
# font-decrease=Control+minus Control+KP_Subtract
# font-reset=Control+0 Control+KP_0
# spawn-terminal=Control+Shift+n
# minimize=none
# maximize=none
# fullscreen=none
# pipe-visible=[sh -c "xurls | fuzzel | xargs -r firefox"] none
# pipe-scrollback=[sh -c "xurls | fuzzel | xargs -r firefox"] none
# pipe-selected=[xargs -r firefox] none
# show-urls-launch=Control+Shift+u
# show-urls-copy=none
# show-urls-persistent=none
# prompt-prev=Control+Shift+z
# prompt-next=Control+Shift+x
# unicode-input=none
# noop=none
[search-bindings]
# cancel=Control+g Control+c Escape
# commit=Return
# find-prev=Control+r
# find-next=Control+s
# cursor-left=Left Control+b
# cursor-left-word=Control+Left Mod1+b
# cursor-right=Right Control+f
# cursor-right-word=Control+Right Mod1+f
# cursor-home=Home Control+a
# cursor-end=End Control+e
# delete-prev=BackSpace
# delete-prev-word=Mod1+BackSpace Control+BackSpace
# delete-next=Delete
# delete-next-word=Mod1+d Control+Delete
# extend-to-word-boundary=Control+w
# extend-to-next-whitespace=Control+Shift+w
# clipboard-paste=Control+v Control+Shift+v Control+y XF86Paste
# primary-paste=Shift+Insert
# unicode-input=none
[url-bindings]
# cancel=Control+g Control+c Control+d Escape
# toggle-url-visible=t
[text-bindings]
# \x03=Mod4+c # Map Super+c -> Ctrl+c
[mouse-bindings]
# selection-override-modifiers=Shift
# primary-paste=BTN_MIDDLE
# select-begin=BTN_LEFT
# select-begin-block=Control+BTN_LEFT
# select-extend=BTN_RIGHT
# select-extend-character-wise=Control+BTN_RIGHT
# select-word=BTN_LEFT-2
# select-word-whitespace=Control+BTN_LEFT-2
# select-row=BTN_LEFT-3
# vim: ft=dosini

View File

@ -1,39 +0,0 @@
(cons*
#|
(channel
(name 'mobilizon-reshare)
(url "https://git.sr.ht/~fishinthecalculator/mobilizon-reshare-guix")
(branch "upstrem-master"))
|#
(channel
(name 'rosenthal)
(url "https://codeberg.org/hako/rosenthal.git")
(branch "trunk")
(introduction
(make-channel-introduction
"7677db76330121a901604dfbad19077893865f35"
(openpgp-fingerprint
"13E7 6CD6 E649 C28C 3385 4DF5 5E5A A665 6149 17F7"))))
(channel
(name 'nonguix)
(url "https://gitlab.com/nonguix/nonguix")
;; Enable signature verification:
(introduction
(make-channel-introduction
"897c1a470da759236cc11798f4e0a5f7d4d59fbc"
(openpgp-fingerprint
"2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))
;; gammastep home service
(channel
(name 'small-guix)
(url "https://gitlab.com/orang3/small-guix")
;; Enable signature verification:
(introduction
(make-channel-introduction
"f260da13666cd41ae3202270784e61e062a3999c"
(openpgp-fingerprint
"8D10 60B9 6BB8 292E 829B 7249 AED4 1CC1 93B7 01E2"))))
%default-channels)

View File

@ -5,7 +5,7 @@
set $mod Mod4
# DPI scaling
exec xrandr --dpi 158
exec xrandr --dpi 210
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
@ -83,7 +83,7 @@ bindsym $mod+shift+f floating toggle
bindsym $mod+shift+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
bindsym $mod+shift+a focus parent
# focus the child container
#bindsym $mod+shift+c focus child
@ -141,10 +141,10 @@ assign [class="Revolt"] $w4
assign [class="Lollypop"] $w7
# Program startup
#exec thunderbird &
exec thunderbird &
#exec revolt &
#exec riot-web &
#exec pidgin &
exec riot-web &
exec pidgin &
# reload the configuration file
bindsym $mod+Shift+c reload
@ -183,32 +183,33 @@ bindsym $mod+r mode "resize"
# External monitor
set $restart_compton (killall compton && compton -b) || compton -b
bindsym $mod+p exec xrandr --output HDMI-2 --auto --right-of eDP-1 && $set_bg && $restart_compton
bindsym $mod+Shift+p exec xrandr --output HDMI-2 --off && $restart_compton
set $restart_polybar ~/.config/polybar/launch.sh
bindsym $mod+p exec xrandr --output HDMI1 --auto --right-of eDP1 && $set_bg && $restart_compton && $restart_polybar
bindsym $mod+Shift+p exec xrandr --output HDMI1 --off && $restart_compton && $restart_polybar
# Lock screen
bindsym $mod+shift+b exec i3lock-fancy
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
position top
#status_command i3blocks
status_command i3status
colors {
background #232323
statusline #DCDCDC
focused_workspace #555555 #555555 #ffffff
inactive_workspace #232323 #232323 #888888
}
#font pango:Fira Mono, Icons 10
#font pango:Iosevka Medium 10
font pango: Iosevka Medium 8
strip_workspace_numbers yes
height 36
tray_padding 2
}
#bar {
# position top
# status_command i3blocks
# #status_command i3bar
# colors {
# background #232323
# statusline #DCDCDC
#
# focused_workspace #555555 #555555 #ffffff
# inactive_workspace #232323 #232323 #888888
# }
# #font pango:Fira Mono, Icons 10
# #font pango:Iosevka Medium 10
# font pango: Iosevka Medium 8
# strip_workspace_numbers yes
# height 46
# tray_padding 2
#}
# Colors
client.focused #444444 #444444 #A9D000 #8c9825 #444444
@ -222,14 +223,17 @@ client.background #222222
#######################
# Touchpad tap to click
exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1
#exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "Synaptics Tap Action" 0 0 0 0 1 3
exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "libinput Tapping Enabled" 1
exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "Synaptics Tap Action" 0 0 0 0 1 3
# Touchpad natural scrolling
exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Natural Scrolling Enabled" 1
exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "libinput Natural Scrolling Enabled" 1
#exec --no-startup-id xinput set-prop "Synaptics TM3289-002" 314 -44 -44
exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "Synaptics Scrolling Distance" -44 -44
# Cursor acceleration
exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Accel Speed" 0.456
exec --no-startup-id xinput set-prop "Synaptics TM3289-002" "libinput Accel Speed" 0.456
# Autolock
#exec --no-startup-id xautolock -time 10 -locker 'i3lock-next' &
@ -238,27 +242,29 @@ exec --no-startup-id xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Acce
exec --no-startup-id compton --unredir-if-possible -b
# Redshift (hello sleep)
#exec --no-startup-id redshift-gtk -l 46.0552778:14.5144444 &
exec --no-startup-id redshift-gtk &
#exec redshift-gtk &
exec --no-startup-id redshift-gtk -l 46.0552778:14.5144444 &
# Background
#set $set_bg feh --bg-fill "~/riz0m/Photos/sri lanka/IMG_20220220_120730.jpg"
set $set_bg feh --bg-fill "$HOME/Slike/☭/bigstock-Sutjeska-National-Park-Bosnia-63011269.jpg" fill
exec_always --no-startup-id $set_bg &
set $set_bg feh --bg-fill ~/Slike/Wallpapers/neka_trava.jpg
exec --no-startup-id $set_bg &
# Network manager applet
exec nm-applet &
# Keyboard layout, caps lock as compose key
exec_always --no-startup-id "setxkbmap -layout us,si -option grp:win_space_toggle -option compose:caps"
#exec_always --no-startup-id "setxkbmap -layout us,si -option grp:lctrl_lwin_toggle -option compose:caps"
#exec_always --no-startup-id "setxkbmap -layout us,si -option grp:win_space_toggle -option compose:caps"
#exec_always --no-startup-id "setxkbmap -layout us,si -option compose:caps"
# Change layout
exec_always setxkbmap -option "grp:win_space_toggle"
bindym $mod+space exec "i3-keyboard-layout cycle us si"
#i3-keyboard-layout cycle us si
# gaps between windows
#gaps inner 7
#gaps outer 0
#smart_gaps on
gaps inner 7
gaps outer 0
smart_gaps on
# No titles
for_window [class="^.*"] border pixel 2
@ -272,6 +278,10 @@ focus_follows_mouse yes
# Various app shortcuts #
#########################
# Firefox
bindsym $mod+shift+w exec firefox
bindsym Mod1+shift+w exec chromium --force-device-scale-factor=1
# Increase volume
set $vol_sig_cmd pkill -RTMIN+10 i3blocks
#set $vol_down_cmd pulsemixer --change-volume -5
@ -288,8 +298,8 @@ bindsym XF86AudioLowerVolume exec "$vol_down_cmd && $vol_sig_cmd"
bindsym XF86AudioMute exec "pamixer -t && $vol_sig_cmd"
# start a terminal
#bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Return exec kitty
bindsym $mod+Return exec i3-sensible-terminal
#bindsym $mod+Return exec "termite -t konz0l"
# kill focused window
bindsym $mod+shift+q kill
@ -299,29 +309,41 @@ bindsym $mod+ctrl+q exec --no-startup-id "xterm -e xkill"
#bindsym $mod+d exec dmenu_run
# start rofi (alt program launcher)
bindsym $mod+d exec --no-startup-id "rofi -combi-modi window,drun,run -show combi -modi combi -icon-theme Papirus -show-icons -config ~/.local/rofi/config"
bindsym $mod+d exec --no-startup-id "rofi -combi-modi window,drun -show combi -modi combi -config ~/.local/rofi/config"
# Screen brightness
set $brt_sig_cmd pkill -RTMIN+5 i3blocks
bindsym XF86MonBrightnessUp exec "xbacklight -inc 8.333 -time 222 -steps 5 && $brt_sig_cmd"
bindsym XF86MonBrightnessDown exec "xbacklight -dec 8.333 -time 222 -steps 5 && $brt_sig_cmd"
# File manager
bindsym Mod1+shift+q exec nautilus
# Emacs!
bindsym $mod+a exec emacs
# Radio študent
bindsym Mod1+shift+r exec vlc /home/g1smo/Glasba/rs.m3u
bindsym Mod1+shift+x exec playerctl play-pause
bindsym Mod1+shift+c exec playerctl play-pause
bindsym Mod1+shift+r exec vlc /home/g1smo/Glasba/radiostudent.m3u
bindsym Mod1+shift+z exec playerctl play-pause
bindsym Mod1+shift+y exec playerctl play-pause
# Skrinšot
bindsym 0xff61 exec gnome-screenshot -i
# Keyring related
#exec --no-startup-id /usr/share/gnome-settings-daemon
exec --no-startup-id /usr/share/gnome-settings-daemon
# Pulseaudio zagon
#exec --no-startup-id /usr/bin/pulseaudio -D
# JACK audio baby
#exec qjackctl
# Polybar
#exec_always --no-startup-id ~/.config/polybar/launch.sh
exec_always --no-startup-id ~/.config/polybar/launch.sh
# Autotiling https://github.com/nwg-piotr/autotiling
exec ~/.local/bin/autotiling
# Signal chat ane
exec /usr/bin/signal-desktop
# Rdecenje skrina
exec gammastep -l 46.05108:14.50513
# autotajling
exec --no-startup-id autotiling

View File

@ -1,86 +0,0 @@
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
interval = 5
color_good = "#2AA198"
color_bad = "#586E75"
color_degraded = "#D79921"
separator = ""
}
order += "wireless _first_"
order += "ethernet _first_"
order += "path_exists VPN"
order += "ipv6"
order += "disk /"
order += "disk /home"
order += "load"
order += "memory"
order += "volume master"
order += "battery all"
order += "tztime local"
path_exists VPN {
path = "/proc/sys/net/ipv4/conf/ppp0"
format = " %status"
}
wireless _first_ {
#format_up = "W: (%quality at %essid) %ip"
format_up = "%ip  %essid %bitrate"
format_down = " "
}
ethernet _first_ {
# if you use %speed, i3status requires root privileges
format_up = " (%speed)"
format_down = " "
}
battery all {
format = " %status %percentage %remaining "
status_bat = ""
status_chr = ""
status_full = ""
status_unk = "?"
threshold_type = time
}
tztime local {
format = "  %d.%m.%Y  %H:%M "
}
load {
format = " %1min"
}
disk "/" {
format = "  %avail"
}
disk "/home" {
format = " %avail "
}
ipv6 {
format_up = " IPv6"
format_down = " IPv6"
}
memory {
format = " %used "
}
volume master {
device = "pulse"
format = " %volume "
format_muted = "  "
mixer = "Master"
}

View File

@ -1,41 +0,0 @@
# gruvbox-dark colorscheme for kitty
# snazzy theme used as base
foreground #ebdbb2
background #272727
selection_foreground #655b53
selection_background #ebdbb2
url_color #d65c0d
# black
color0 #272727
color8 #928373
# red
color1 #cc231c
color9 #fb4833
# green
color2 #989719
color10 #b8ba25
# yellow
color3 #d79920
color11 #fabc2e
# blue
color4 #448488
color12 #83a597
# magenta
color5 #b16185
color13 #d3859a
# cyan
color6 #689d69
color14 #8ec07b
# white
color7 #a89983
color15 #ebdbb2

View File

@ -1,18 +0,0 @@
font_family Fira Code Medium
bold_font auto
italic_font auto
bold_italic_font auto
font_size 11.0
background_opacity 0.9
#include solarized.conf
include gruvbox.conf
window_padding_width 1
touch_scroll_multiplier 10.0
strip_trailing_spaces smart
enable_audio_bell no
visual_bell_duration 0

View File

@ -1,21 +0,0 @@
background #001e26
foreground #708183
cursor #708183
selection_background #002731
color0 #002731
color8 #465a61
color1 #d01b24
color9 #bd3612
color2 #728905
color10 #465a61
color3 #a57705
color11 #52676f
color4 #2075c7
color12 #708183
color5 #c61b6e
color13 #5856b9
color6 #259185
color14 #81908f
color7 #e9e2cb
color15 #fcf4dc
selection_foreground #001e26

View File

@ -1,10 +0,0 @@
configuration {
modes: [ combi ];
combi-modes: [ window, drun, run ];
show-icons: true;
separator-style: "solid";
font: "Iosevka 11";
}
@theme "gruvbox-dark-soft"

View File

@ -10,44 +10,20 @@ set $right semicolon
set $altright ccaron
# Terminal
#set $term kitty
set $term footclient
set $term termite
# Font
font pango:Iosevka SS05 Medium 10
# Kurzor
seat * xcursor_theme Bibata-Original-Classic 24
font pango:Iosevka Medium 10
# Launcher
set $menu "rofi -combi-modi window,drun,run -show combi -modi combi"
set $menu "rofi -combi-modi window,drun -show combi -modi combi -config ~/.local/rofi/config"
#set $menu j4-dmenu-desktop
#set $menu compgen -c | sort -u | fzf | xargs -r swaymsg -t command exec
output eDP-1 {
pos 0 0
resolution 1920x1080
scale 1.2
scale_filter smart
}
output eDP-1 resolution 2560x1440 scale 2
#output eDP-1 resolution 2560x1440 scale 2
#output eDP-1 resolution 1920x1080 scale 1
output "*" background "~/sredstva/dotfiles/ozadje5.jpg" fill
# Zamik dobimo z SIRINA / SCALE
output HDMI-A-2 pos 1601 0 scale 1
output HDMI-A-1 pos 1601 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 &
output "*" background ~/Slike/Wallpapers/neka_trava.jpg fill
# start a terminal
bindsym $mod+Return exec $term
@ -101,16 +77,16 @@ bindsym $mod+d exec $menu
#
# name workspaces
set $w0 0:
set $w1 1:
set $w2 2:
set $w3 3:
set $w1 1:λ
set $w2 2:
set $w3 3:
set $w4 4:
set $w5 5:
set $w5 5:
set $w6 6:
set $w7 7:✭❀❤♫
set $w7 7:✭❀❤♫
set $w8 8:☭
set $w9 9:
set $w9 9:
set $w0 0:∞
# switch to workspace
bindsym $mod+1 workspace $w1
@ -139,23 +115,21 @@ bindsym $mod+Shift+0 move container to workspace $w0
bindsym $mod+Tab workspace next
bindsym $mod+Shift+Tab workspace prev
bindsym Mod1+Shift+$right move workspace to output right
bindsym Mod1+Shift+$altright move workspace to output right
bindsym Mod1+Shift+colon move workspace to output right
bindsym Mod1+Shift+ccaron move workspace to output right
bindsym Mod1+Shift+j move workspace to output left
# back and forth between workspaces
bindsym Mod1+Tab workspace back_and_forth
# workspace bindings
assign [class="Firefox"] $w8
assign [class="Firefox"] $w2
assign [class="Gnote"] $w9
assign [class="Slack"] $w4
assign [class="Element"] $w4
assign [class="Riot"] $w4
assign [class="Lollypop"] $w3
assign [class="Transmission"] $w3
assign [class="Nicotine+"] $w3
# Program startup
#exec firefox &
#exec lollypop &
@ -166,7 +140,7 @@ assign [class="Nicotine+"] $w3
# You can "split" the current object of your focus with
# $mod+b or $mod+v, for horizontal and vertical splits
# respectively.
bindsym $mod+h splith
bindsym $mod+b splith
bindsym $mod+v splitv
# Switch the current container between different layout styles
@ -181,7 +155,7 @@ assign [class="Nicotine+"] $w3
bindsym $mod+Shift+space floating toggle
# Swap focus between the tiling area and the floating area
bindsym Mod1+space focus mode_toggle
bindsym $mod+space focus mode_toggle
# move focus to the parent container
bindsym $mod+a focus parent
@ -222,186 +196,40 @@ mode "resize" {
}
bindsym $mod+r mode "resize"
set $ospredje #cccccc
set $ospredjeTrans #cccccccc
set $ospredjeNefokusiran #ebdbb2cc
set $ozadje #282828e6
set $ozadjeTrans #282828b6
#
# Status Bar:
#
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
status_command i3status
status_command i3blocks
colors {
focused_background $ozadje
background $ozadjeTrans
statusline $ospredje
background #232323
statusline #DCDCDC
focused_workspace $ospredje $ospredje $ozadje
active_workspace $ospredjeTrans $ospredjeTrans $ozadje
inactive_workspace $ozadje $ozadje $ospredje
focused_workspace #555555 #555555 #ffffff
inactive_workspace #232323 #232323 #888888
}
font pango:FontAwesome, Iosevka SS01 Medium 12
font pango:FontAwesome Regular 9, Iosevka Medium 9
strip_workspace_numbers yes
height 26
height 18
#tray_padding 2
separator_symbol ""
}
#include /etc/sway/config.d/*
set $zelena #b8bb26
set $temnoZelena #98971a
set $okvir #665c54
set $bg0_s #32302f
set $fg3 #bdae93
include /etc/sway/config.d/*
# Colors
client.focused $okvir $ozadje $ospredje $ospredje $okvir
client.focused_inactive #444444 #444444 #A9D000 $fg3 $bg0_s
client.focused #444444 #444444 #A9D000 #8c9825 #444444
client.focused_inactive #444444 #444444 #A9D000 #5c7825 #444444
client.unfocused #222222 #222222 #888888 #292d2e #222222
client.background #222222
# gaps between windows
gaps inner 6
gaps inner 4
smart_gaps on
#smart_borders on
# No titles
#for_window [class="^.*"] border pixel 2
default_border pixel 3
default_floating_border normal
hide_edge_borders smart
for_window [class="^.*"] border pixel 2
# Mouse focus
focus_follows_mouse yes
# Premik kurzorja v aktivno okno
#mouse_warping container
# KBD layouti
input "type:keyboard" {
xkb_layout us,si
xkb_options grp:win_space_toggle,compose:caps
}
# Touchpad fensi
input "type:touchpad" {
events enabled
tap enabled
click_method clickfinger
natural_scroll enabled
dwt enabled
scroll_factor 0.25
#pointer_accel 0.5
click_method clickfinger
}
# Radio študent
bindsym Mod1+shift+r exec vlc /home/g1smo/Glasba/rs.m3u
bindsym Mod1+shift+x exec playerctl play-pause
bindsym Mod1+shift+c exec playerctl play-pause
# Zvok
set $vol_down_cmd pamixer -d 5
set $vol_up_cmd pamixer -i 5
set $vol_toggle_cmd pamixer -t
bindsym $mod+shift+d exec "$vol_up_cmd"
bindsym XF86AudioRaiseVolume exec "$vol_up_cmd"
bindsym $mod+shift+s exec "$vol_down_cmd"
bindsym XF86AudioLowerVolume exec "$vol_down_cmd"
bindsym XF86AudioMute exec "$vol_toggle_cmd"
bindsym $mod+shift+a exec "$vol_toggle_cmd"
# GTK tema
set $gnome-schema org.gnome.desktop.interface
exec_always {
gsettings set $gnome-schema gtk-theme "Arc-Darker"
gsettings set $gnome-schema icon-theme "Delft-Mint"
gsettings set $gnome-schema cursor-theme "Bibata-Original-Classic"
}
# Zvetlost zaslona
bindsym XF86MonBrightnessUp exec "brightnessctl set 3%+"
bindsym XF86MonBrightnessDown exec "brightnessctl set 3%-"
# Zunanji skrin
bindsym $mod+p exec "swaymsg output HDMI-A-2 enable"
bindsym $mod+shift+p exec "swaymsg output HDMI-A-2 disable"
# Skrinsot
bindsym 0xff61 exec ~/bin/screenshot
# Scaling toggle
bindsym $mod+i exec "swaymsg output eDP-1 scale 1"
bindsym $mod+o exec "swaymsg output eDP-1 scale 1.2"
bindsym $mod+y exec "swaymsg output HDMI-A-1 pos 0 0 && swaymsg output eDP-1 pos 1920 0"
bindsym $mod+u exec "swaymsg output HDMI-A-1 pos 1600 0 && swaymsg output eDP-1 pos 0 0"
bindsym $mod+space exec "/home/g1smo/bin/get-layout.sh"
######
# AUTOSTART
###
# Fix za pocasen GTK app startup
exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway
# transparenca nekativnih oken
#exec_always ~/bin/inactive-windows-transparency.py
# Desktop notifikacije
#exec mako --default-timeout=5000 --icon-path /usr/share/icons/Numix
exec_always mako --default-timeout=5000 --icons 1 --icon-path $HOME/.guix-home/profile/share/icons/Delft:$HOME/.guix-profile/share/icons/:/usr/share/icons
# Autotiling https://github.com/nwg-piotr/autotiling
exec autotiling
# Rdece, da lahko spim, hvala
#exec_always gammastep -m wayland -l 46.05108:14.50513
# Zagoni programov razporejeni na workspejse
workspace 0:
workspace 1:
#exec firefox
exec librewolf
workspace 2:
exec emacs
workspace 3:
exec icedove
workspace 4:
#exec revolt
#exec element-desktop --enable-features=UseOzonePlatform --ozone-platform=wayland
exec element-desktop
workspace 9:
#exec gnome-keyring-daemon --start --control-directory=/run/user/1000/keyring
exec keepassxc
# autolock in te fore
#exec swayidle -w timeout 300 'swaylock -f -c 000000' timeout 600 'swaymsg"output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -f-c 000000'
# prazna baterija tezenje
#exec ~/bin/swaynag-battery
# Lebdeca okna (najdes preko "swaymsg -t get_tree")
for_window [app_id="org.keepassxc.KeePassXC"] floating enable
for_window [title="^Utopia"] floating enable
for_window [title="^OSCRecorder"] floating enable
# Foot terminal server!
exec foot --server
# SwayFX
blur disable
blur_passes 1
corner_radius 5
shadows disable
shadows_on_csd enable
default_dim_inactive 0.2

View File

@ -1,17 +0,0 @@
;;;; Emacs Bookmark Format Version 1;;;; -*- coding: utf-8-emacs; mode: lisp-data -*-
;;; This format is meant to be slightly human-readable;
;;; nevertheless, you probably don't want to edit it.
;;; -*- End Of Bookmark File Format Version Stamp -*-
(("projekti" (filename . "~/org/projekti.org")
(front-context-string . "#+TITLE: Projekt") (rear-context-string)
(position . 1) (last-modified 26275 37099 918821 368000))
("org-capture-last-stored" (filename . "~/org/zapiski.org")
(front-context-string . "** TODO Vrstni r")
(rear-context-string . "2024-01-05 pet]\n") (position . 661)
(last-modified 26008 34892 637157 892000))
("FLUXUS navodilo"
(filename . "~/sredstva/fluxus/docs/fluxus-manual.[en].org")
(front-context-string . "#+TITLE: Fluxus:") (rear-context-string)
(position . 1) (last-modified 25693 29993 875550 300000))
("IRS" (filename . "~/rs/megla-sync/org/irs.org"))
)

File diff suppressed because it is too large Load Diff

View File

@ -1,112 +0,0 @@
;;; init --- naloži org konfiguracijo in še kaj -*- lexical-binding: t -*-
;;; Commentary:
;; Naloži konfiguracije iz ORG datoteke, ostanki nerazvrščenih zadev
;; ter kustomizacije.
(setq warning-minimum-level :error)
;; Error in pre-command-hook (vertico--prepare): (void-function compat--completion-metadata-get)
;(let ((regex "compat--completion-metadata-get"))
; (->> (elisp-load-path-roots)
; (-filter #'file-exists-p)
; (mapcar #'shell-quote-argument)
; (append `("grep" "-R" ,(shell-quote-argument regex)))
; (funcall (-flip #'string-join) " ")
; (grep-find)))
;; Rabimo general.el za use-pakcage macroje
(require 'general)
;;; Code:
(org-babel-load-file "~/.emacs.d/config.org")
;;;;;;;;;;;
;; Razno ;;
;;;;;;;;;;;
;; Izboljsani default ukazi bolj prijazni
;; 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)
;; Sinhronizacija podnapisov (uporablja mpv!)
(use-package subed
:defer t
:config
;; Remember cursor position between sessions
(add-hook 'subed-mode-hook 'save-place-local-mode)
;; Break lines automatically while typing
(add-hook 'subed-mode-hook 'turn-on-auto-fill)
;; Break lines at 40 characters
(add-hook 'subed-mode-hook (lambda () (setq-local fill-column 40)))
;; Some reasonable defaults
(add-hook 'subed-mode-hook 'subed-enable-pause-while-typing)
;; As the player moves, update the point to show the current subtitle
(add-hook 'subed-mode-hook 'subed-enable-sync-point-to-player)
;; As your point moves in Emacs, update the player to start at the current subtitle
(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-}
(add-hook 'subed-mode-hook 'subed-enable-replay-adjusted-subtitle)
;; Loop over subtitles
(add-hook 'subed-mode-hook 'subed-enable-loop-over-current-subtitle)
;; Show characters per second
(add-hook 'subed-mode-hook 'subed-enable-show-cps))
;;;;;;;;;;;;
;; CUSTOM ;;
;;;;;;;;;;;;
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(custom-safe-themes
'("ba323a013c25b355eb9a0550541573d535831c557674c8d59b9ac6aa720c21d3"
default))
'(helm-minibuffer-history-key "M-p")
'(package-selected-packages
'(a arduino-mode benchmark-init bui cider company consult
counsel-projectile crdt dashboard diminish direnv doom-modeline
drupal-mode editorconfig evil-collection evil-org
extempore-mode faceup fluxus-mode flycheck format-all geben
geiser-guile general gruvbox-theme helm helpful htmlize jq-mode
list-utils loop lsp-mode magit magit-popup marginalia mu4e
mu4e-dashboard mu4e-marker-icons nerd-icons-completion
nyan-mode ob-mermaid openwith orderless org-bullets org-caldav
org-present org-projectile page-break-lines paredit pkg-info
pos-tip pretty-sha-path pyvenv racket-mode rainbow-delimiters
restclient rjsx-mode sclang-extensions shut-up slime
smartparens smex subed svg-icon tidal toml-mode
treemacs-projectile treesit-auto undo-tree use-package vertico
vue-mode w3m 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")))
'(sclang-indent-level 2))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(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)))))

View File

@ -1,114 +0,0 @@
;;; sclang-helper.el --- Enhance the functionality of scel -*- lexical-binding: t; -*-
;;; Commentary:
;; This program contains serveral custom additional functions to scel.
;; https://github.com/yilin-zhang/sclang-helper
;;; Code:
(require 'sclang)
(require 'cl-lib)
(require 'pulse)
(defun sclang-helper-eval-line (&optional silent-p)
"Execute the current line as SuperCollider code with highlight."
(interactive "P")
(let ((string (sclang-line-at-point)))
(when string
(sclang-eval-string string (not silent-p)))
(pulse-momentary-highlight-one-line (point)) ;; highlighting
string))
(defun sclang-helper-eval-region (&optional silent-p)
"Execute the region as SuperCollider code with highlight"
(interactive "P")
(sclang-eval-string
(buffer-substring-no-properties (region-beginning) (region-end))
(not silent-p))
(pulse-momentary-highlight-region (region-beginning) (region-end))) ;; highlighting
(defun sclang-helper-eval-region-or-line (&optional silent-p)
"Execute the line or region as SuperCollider code with highlight"
(interactive "P")
(if (and transient-mark-mode mark-active)
(sclang-helper-eval-region silent-p)
(sclang-helper-eval-line silent-p)))
;; TODO: It's not functional when the prentheses don't match.
(defun sclang-helper-eval-paren-region (&optional silent-p)
"Execute the region inside the outermost parentheses.
Return t if the evaluation happens, nil if it doens't happen."
(interactive "P")
(cl-flet
((check-char-text (char)
"Check if the char is normal text"
(if (and (characterp char)
(not (member (get-char-code-property char 'general-category) '(Zs Cc))))
t
nil)))
(save-excursion
;; iteratively check if there's an upper level left parenthesis
(let ((paren-matched nil))
(while
(condition-case nil
(progn
(if (equal (char-to-string (char-after)) "(")
(setq paren-matched t)
(setq paren-matched nil))
(backward-up-list)
t)
(error nil)))
(if paren-matched
(progn
(let ((point-paren-1 (point))
(point-paren-2 (progn (forward-list) (point))))
;; check if there's nothing around the paired parentheses
(if (or (check-char-text (char-before point-paren-1))
;; after calling forward-list, point-paren-2 is actually the char after
;; the right parenthesis
(check-char-text (char-after point-paren-2)))
nil
(progn
(set-mark point-paren-1)
(setq mark-active t)
(sclang-helper-eval-region-or-line silent-p)
(setq mark-active nil)
t))))
nil)))))
(defun sclang-helper-auto-eval (&optional silent-p)
(interactive "P")
(if (and transient-mark-mode mark-active)
(sclang-eval-region silent-p)
(if (not (sclang-helper-eval-paren-region silent-p))
(sclang-helper-eval-line silent-p))))
(defun sclang-helper-show-meter ()
(interactive)
(sclang-eval-string "Server.local.meter"))
(defun sclang-helper-show-freqscope()
(interactive)
(sclang-eval-string "Server.local.freqscope"))
(defun sclang-helper-show-tree()
(interactive)
(sclang-eval-string "Server.local.plotTree"))
;;;###autoload
(define-minor-mode sclang-helper-mode
"Toggle sclang mode."
:lighter " sclang-helper"
:keymap (let ((map (make-sparse-keymap)))
(define-key map (kbd "<s-return>") 'sclang-helper-auto-eval)
(define-key map (kbd "<C-return>") 'sclang-helper-auto-eval)
(define-key map (kbd "s-m") 'sclang-helper-show-meter)
(define-key map (kbd "s-f") 'sclang-helper-show-freqscope)
(define-key map (kbd "s-n") 'sclang-helper-show-tree)
(define-key map (kbd "s-.") 'sclang-main-stop)
(define-key map (kbd "s-d") 'sclang-find-help-in-gui)
map))
(provide 'sclang-helper)
;;; sclang-helper.el ends here

View File

@ -4,11 +4,9 @@
[user]
name = Jurij Podgoršek
email = jurij@kompot.si
email = podgorsek.jurij@gmail.com
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[pull]
rebase = false

0
.gtkrc-2.0 100644
View File

7
.guile
View File

@ -1,7 +0,0 @@
;; Readline fix (za smerne tipke v replu)
(use-modules (ice-9 readline)
(ice-9 colorized)
(texinfo reflection))
(activate-readline)
(activate-colorized)

View File

@ -30,7 +30,7 @@ command=/usr/lib/i3blocks/$BLOCK_NAME
#label=♪
label=
#instance=Lollypop
command="/home/g1smo/sredstva/i3blocks-contrib/mediaplayer/mediaplayer"
command="/home/g1smo/Sredstva/i3blocks-contrib/mediaplayer/mediaplayer"
#instance=mpd
interval=5
signal=10
@ -38,7 +38,7 @@ signal=10
#[monitors]
#label=
#interval=once
#command="/home/g1smo/sredstva/i3blocks-contrib/monitor_manager/monitor_manager"
#command="/home/g1smo/Sredstva/i3blocks-contrib/monitor_manager/monitor_manager"
[brightness]
label=
@ -48,7 +48,7 @@ interval=once
signal=5
[volume-pulseaudio]
command=/home/g1smo/sredstva/i3blocks-contrib/volume-pulseaudio/volume-pulseaudio -S -F "\${SYMB}\${VOL}%"
command=/home/g1smo/Sredstva/i3blocks-contrib/volume-pulseaudio/volume-pulseaudio -S -F "\${SYMB}\${VOL}%"
#label=
#SUBSCRIBE=1
interval=persist
@ -57,7 +57,7 @@ interval=persist
#label=MEM
label=
color=#A85FFF
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/memory/memory | sed -r 's/ \(.+//'
command=echo -n "$label ";/home/g1smo/Sredstva/i3blocks-contrib/memory/memory | sed -r 's/ \(.+//'
interval=10
#[memory]
@ -74,21 +74,21 @@ interval=10
[disk-root]
label=
color=#AAAAAA
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/disk/disk
command=echo -n "$label ";/home/g1smo/Sredstva/i3blocks-contrib/disk/disk
instance=/
interval=30
[disk-home]
label=
color=#AAAAAA
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/disk/disk
command=echo -n "$label ";/home/g1smo/Sredstva/i3blocks-contrib/disk/disk
instance=/home
interval=30
[disk-var]
label=
color=#AAAAAA
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/disk/disk
command=echo -n "$label ";/home/g1smo/Sredstva/i3blocks-contrib/disk/disk
instance=/var
interval=30
@ -99,7 +99,7 @@ interval=30
color=#33DD00
interval=10
separator=false
command=/home/g1smo/sredstva/i3blocks-contrib/iface/iface
command=/home/g1smo/Sredstva/i3blocks-contrib/iface/iface
[wifi]
#instance=wlp4s0
@ -107,7 +107,7 @@ instance=wlp2s0
interval=10
label=
color=#11DD00
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/wifi/wifi
command=echo -n "$label ";/home/g1smo/Sredstva/i3blocks-contrib/wifi/wifi
#separator=false
#[bandwidth]
@ -123,13 +123,13 @@ command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/wifi/wifi
#label=
#label=
label=
#command=/home/g1smo/sredstva/i3blocks-contrib/cpu_usage/cpu_usage | sed -r 's/^([0-9])\./\ \1\./'
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/cpu_usage/cpu_usage -d 1
#command=/home/g1smo/Sredstva/i3blocks-contrib/cpu_usage/cpu_usage | sed -r 's/^([0-9])\./\ \1\./'
command=echo -n "$label ";/home/g1smo/Sredstva/i3blocks-contrib/cpu_usage/cpu_usage -d 1
color=#FA0009
interval=1
align=right
min_width= 99.0%
#command=/home/g1smo/sredstva/i3blocks-contrib/cpu_usage/cpu_usage | sed -r 's/^([0-9])\./\ \1\./'
#command=/home/g1smo/Sredstva/i3blocks-contrib/cpu_usage/cpu_usage | sed -r 's/^([0-9])\./\ \1\./'
[load_average]
#label=
@ -137,22 +137,22 @@ min_width= 99.0%
label=
color=#70E2FF
interval=3
command=echo -n "$label ";/home/g1smo/sredstva/i3blocks-contrib/load_average/load_average
command=echo -n "$label ";/home/g1smo/Sredstva/i3blocks-contrib/load_average/load_average
[key_layout]
label=⌨
interval=5
#command="/home/h1smo/sredstva/i3blocks-contrib/key_layout/key_layout"
#command="/home/h1smo/Sredstva/i3blocks-contrib/key_layout/key_layout"
command=echo -n "$label ";xkb-switch
#interval=persist
#command="/home/h1smo/sredstva/i3blocks-contrib/kbdd_layout/kbdd_layout"
#command="/home/h1smo/Sredstva/i3blocks-contrib/kbdd_layout/kbdd_layout"
[battery2]
#label=BAT
#label=⚡
#instance=1
#command=count=$(acpi -b | wc -l); sum=$(acpi -b | egrep -o '[0-9]{1,3}%' | tr -d '%' | xargs -I% echo -n '+%'); echo '' $(( sum / count ))%
command="/home/g1smo/sredstva/i3blocks-contrib/battery2/battery2"
command="/home/g1smo/Sredstva/i3blocks-contrib/battery2/battery2"
interval=30
markup=pango
@ -160,7 +160,7 @@ markup=pango
label=
color=#ffffff
command=echo -n "$label ";date '+%a %d %b'
#command=/home/g1smo/sredstva/i3blocks-contrib/rofi-calendar/rofi-calendar
#command=/home/g1smo/Sredstva/i3blocks-contrib/rofi-calendar/rofi-calendar
interval=5
separator=false
@ -173,7 +173,7 @@ interval=5
[shutdown]
full_text=
command=/home/g1smo/sredstva/i3blocks-contrib/shutdown_menu/shutdown_menu -c
command=/home/g1smo/Sredstva/i3blocks-contrib/shutdown_menu/shutdown_menu -c
#interval=once
# OpenVPN support

View File

@ -3,6 +3,5 @@ rofi.color-urgent: #002d303b, #cc6666, #e52d303b, #a54242, #f9f9f9
rofi.color-active: #002d303b, #b5bd68, #e42d303b, #8c9440, #f9f9f9
rofi.color-window: #f22d303b, #7c8389, #1d1f21
rofi.separator-style: solid
rofi.font: Iosevka 11
rofi.font: terminus 18
rofi.theme: ~/.config/rofi/themes/gruvbox/gruvbox-dark.rasi

View File

@ -1 +0,0 @@
.zprofile

52
.profile 100644
View File

@ -0,0 +1,52 @@
# <3 default editor
export EDITOR="vim"
export VISUAL="vim"
# Default term (i3)
export TERMINAL="termite"
#export TERM="xterm-256color"
# Chrome scaling
export CHROMIUM_FLAGS="--force-device-scale-factor=1.75"
# QT5 autoscaling
export QT_AUTO_SCREEN_SCALE_FACTOR=1
# Flatpak
export XDG_DATA_DIRS="$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share/applications:/var/lib/flatpak/exports/share:$XDG_DATA_DIRS"
# Nek Java fix?
export NLS_LANG=American_America.UTF8
# Guile Zadeve
export GUILE_WARN_DEPRECATED="detailed"
# PhantomJS binary location
export PHANTOMJS_BIN=/usr/bin/phantomjs
# Racket pot
export PATH="$HOME/.racket/7.2/bin:$HOME/bin:$HOME/.local/bin:$GOPATH/bin:$PATH"
export GUIX_PROFILE_FILE="$GUIX_PROFILE/etc/profile"
# Racket scaling
export PLT_DISPLAY_BACKING_SCALE=2
# emacspeak speech server
export DTK_PROGRAM=espeak
# Pot do GO zadev (knjiznice, ...)
export GOPATH=~/Sredstva/go
# Android SDK && React Native build settings
#export ANDROID_HOME=$HOME/Android/Sdk
#export ANDROID_EMULATOR_USE_SYSTEM_LIBS=1
#export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
# User bin
export PATH="/home/g1smo/bin:$PATH"
# Loadamo sway na tty5!
# If running from tty1 start sway
if [ "$(tty)" = "/dev/tty5" ]; then
exec sway
fi

View File

@ -33,7 +33,8 @@ This function should only modify configuration layer settings."
;; List of configuration layers to load.
dotspacemacs-configuration-layers
'(;; ----------------------------------------------------------------
'(lua
;; ----------------------------------------------------------------
;; Example of useful layers you may want to use right away.
;; Uncomment some layer names and press `SPC f e R' (Vim style) or
;; `M-m f e R' (Emacs style) to install them.
@ -70,9 +71,6 @@ This function should only modify configuration layer settings."
racket
go
mu4e
lua
syntax-checking
tern
;; Disable flychecker
(syntax-checking :variables syntax-checking-enable-by-default nil)
@ -110,8 +108,7 @@ This function should only modify configuration layer settings."
htmlize
fireplace
arduino-mode
fennel-mode
elpher)
fennel-mode)
;; A list of packages that cannot be updated.
dotspacemacs-frozen-packages '()
@ -234,7 +231,7 @@ It should only modify the values of Spacemacs settings."
;; List of themes, the first of the list is loaded when spacemacs starts.
;; Press `SPC T n' to cycle to the next theme in the list (works great
;; with 2 themes variants, one dark and one light)
dotspacemacs-themes '(gruvbox-dark-soft
dotspacemacs-themes '(gruvbox-dark-medium
suscolors
tao-yang
tao-yin
@ -261,7 +258,7 @@ It should only modify the values of Spacemacs settings."
;; Default font, or prioritized list of fonts. `powerline-scale' allows to
;; quickly tweak the mode-line size to make separators look not too crappy.
dotspacemacs-default-font '("Iosevka Medium"
:size 16
:size 24
:weight bold
:width normal
:powerline-scale 1.1)
@ -634,7 +631,7 @@ This function is called at the very end of Spacemacs initialization."
;; If there is more than one, they won't work right.
'(package-selected-packages
(quote
(racket-mode faceup mu4e-maildirs-extension mu4e-alert ht markdown-mode lua-mode skewer-mode simple-httpd js2-mode dash-functional parent-mode edit-indirect magit-popup bui go-guru go-eldoc fringe-helper git-gutter+ git-gutter geiser pos-tip flycheck flx fennel-mode highlight magit git-commit with-editor smartparens iedit anzu evil goto-chg undo-tree php-mode transient tablist json-mode docker-tramp json-snatcher json-reformat projectile counsel ivy web-completion-data restclient know-your-http-well company-go go-mode company hydra inflections multiple-cursors paredit lv eval-sexp-fu cider sesman queue pkg-info parseedn clojure-mode parseclj a epl inf-ruby bind-map yasnippet packed auctex async arduino-mode spinner anaconda-mode pythonic f s all-the-icons memoize avy auto-complete popup swiper zenburn-theme yapfify yaml-mode ws-butler winum which-key wgrep web-mode web-beautify vue-mode ssass-mode vue-html-mode volatile-highlights vmd-mode vi-tilde-fringe uuidgen use-package toc-org tidal tao-theme tagedit suscolors-theme sql-indent spaceline powerline solarized-theme smex smeargle slim-mode scss-mode sass-mode rvm rudel ruby-tools ruby-test-mode rubocop rspec-mode robe rjsx-mode restart-emacs request rbenv rake rainbow-delimiters pyvenv pytest pyenv-mode py-isort pug-mode popwin pip-requirements phpunit phpcbf php-extras php-auto-yasnippets persp-mode pcre2el paradox orgit org-projectile org-category-capture org-present org-pomodoro alert log4e gntp org-plus-contrib org-mime org-download org-bullets open-junk-file ob-restclient ob-http nginx-mode neotree move-text mmm-mode minitest markdown-toc magit-gitflow macrostep lorem-ipsum livid-mode live-py-mode linum-relative link-hint js2-refactor js-doc ivy-hydra indent-guide hy-mode hungry-delete htmlize hl-todo highlight-parentheses highlight-numbers highlight-indentation helm-make haskell-mode haml-mode guix gruvbox-theme google-translate golden-ratio gnuplot gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link git-gutter-fringe git-gutter-fringe+ gh-md fuzzy flycheck-pos-tip flx-ido floobits fireplace fill-column-indicator fancy-battery eyebrowse extempore-mode expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-magit evil-lisp-state evil-indent-plus evil-iedit-state evil-exchange evil-escape evil-ediff evil-args evil-anzu emmet-mode elisp-slime-nav editorconfig dumb-jump drupal-mode dockerfile-mode docker diminish diff-hl define-word dakrone-light-theme cython-mode counsel-projectile company-web company-tern company-statistics company-restclient company-auctex company-anaconda column-enforce-mode coffee-mode clojure-snippets clj-refactor clean-aindent-mode cider-eval-sexp-fu chruby bundler bind-key auto-yasnippet auto-highlight-symbol auto-compile all-the-icons-dired aggressive-indent adaptive-wrap ace-window ace-link ac-ispell))))
(swiper zenburn-theme yapfify yaml-mode ws-butler winum which-key wgrep web-mode web-beautify vue-mode ssass-mode vue-html-mode volatile-highlights vmd-mode vi-tilde-fringe uuidgen use-package toc-org tidal tao-theme tagedit suscolors-theme sql-indent spaceline powerline solarized-theme smex smeargle slim-mode scss-mode sass-mode rvm rudel ruby-tools ruby-test-mode rubocop rspec-mode robe rjsx-mode restart-emacs request rbenv rake rainbow-delimiters pyvenv pytest pyenv-mode py-isort pug-mode popwin pip-requirements phpunit phpcbf php-extras php-auto-yasnippets persp-mode pcre2el paradox orgit org-projectile org-category-capture org-present org-pomodoro alert log4e gntp org-plus-contrib org-mime org-download org-bullets open-junk-file ob-restclient ob-http nginx-mode neotree move-text mmm-mode minitest markdown-toc magit-gitflow macrostep lorem-ipsum livid-mode live-py-mode linum-relative link-hint js2-refactor js-doc ivy-hydra indent-guide hy-mode hungry-delete htmlize hl-todo highlight-parentheses highlight-numbers highlight-indentation helm-make haskell-mode haml-mode guix gruvbox-theme google-translate golden-ratio gnuplot gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link git-gutter-fringe git-gutter-fringe+ gh-md fuzzy flycheck-pos-tip flx-ido floobits fireplace fill-column-indicator fancy-battery eyebrowse extempore-mode expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-magit evil-lisp-state evil-indent-plus evil-iedit-state evil-exchange evil-escape evil-ediff evil-args evil-anzu emmet-mode elisp-slime-nav editorconfig dumb-jump drupal-mode dockerfile-mode docker diminish diff-hl define-word dakrone-light-theme cython-mode counsel-projectile company-web company-tern company-statistics company-restclient company-auctex company-anaconda column-enforce-mode coffee-mode clojure-snippets clj-refactor clean-aindent-mode cider-eval-sexp-fu chruby bundler bind-key auto-yasnippet auto-highlight-symbol auto-compile all-the-icons-dired aggressive-indent adaptive-wrap ace-window ace-link ac-ispell))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.

View File

@ -1,16 +0,0 @@
Host *
ServerAliveInterval 240
Host pi
Port 2312
Host felis.kreten.si
Port 2312
Host 192.168.64.100
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa
Host 192.168.32.1
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa

10
.vimrc
View File

@ -20,21 +20,15 @@ Plug 'mhinz/vim-startify'
Plug 'dyng/ctrlsf.vim'
Plug 'evidens/vim-twig'
Plug 'jceb/vim-orgmode'
Plug 'tpope/vim-speeddating'
Plug 'tpope/vim-rails'
Plug 'marlun/vim-starwars'
Plug 'morhetz/gruvbox'
Plug 'bakpakin/fennel.vim'
Plug 'altercation/vim-colors-solarized'
call plug#end()
" Colorscheme "
syntax on
set background=dark
"set termguicolors " Truecolor support!
let g:gruvbox_termcolors=16 " Fallback 16color
let g:gruvbox_contrast_dark="soft"
let g:gruvbox_italic=1
colorscheme gruvbox
colorscheme solarized
" Tab settings, line numbering "
filetype plugin indent on

49
.zlogin
View File

@ -1,25 +1,30 @@
# Gruvbox tema za tty. Vir: https://archive.fo/QSYHd#selection-59.0-59.639
# Solarized theme for tty, the light version.
# Based on:
# - Solarized (http://ethanschoonover.com/solarized)
# - Xresources from http://github.com/altercation/solarized
# Generated with pty2tty.awk by Joep van Delft
# http://github.com/joepvd/tty-solarized
if [ "$TERM" = "linux" ]; then
echo -en "\e]P0222222" #black
echo -en "\e]P8222222" #darkgrey
echo -en "\e]P1803232" #darkred
echo -en "\e]P9982b2b" #red
echo -en "\e]P25b762f" #darkgreen
echo -en "\e]PA89b83f" #green
echo -en "\e]P3aa9943" #brown
echo -en "\e]PBefef60" #yellow
echo -en "\e]P4324c80" #darkblue
echo -en "\e]PC2b4f98" #blue
echo -en "\e]P5706c9a" #darkmagenta
echo -en "\e]PD826ab1" #magenta
echo -en "\e]P692b19e" #darkcyan
echo -en "\e]PEa1cdcd" #cyan
echo -en "\e]P7ffffff" #lightgrey
echo -en "\e]PFdedede" #white
clear #for background artifacting
echo -en "\e]PB657b83" # S_base00
echo -en "\e]PA586e75" # S_base01
echo -en "\e]P0073642" # S_base02
echo -en "\e]P62aa198" # S_cyan
echo -en "\e]P8002b36" # S_base03
echo -en "\e]P2859900" # S_green
echo -en "\e]P5d33682" # S_magenta
echo -en "\e]P1dc322f" # S_red
echo -en "\e]PC839496" # S_base0
echo -en "\e]PE93a1a1" # S_base1
echo -en "\e]P9cb4b16" # S_orange
echo -en "\e]P7eee8d5" # S_base2
echo -en "\e]P4268bd2" # S_blue
echo -en "\e]P3b58900" # S_yellow
echo -en "\e]PFfdf6e3" # S_base3
echo -en "\e]PD6c71c4" # S_violet
clear # against bg artifacts
fi
# Sway autostart
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
exec sway
fi
export XDG_CONFIG_HOME="$HOME/.config"
#export GDK_SCALE=2
export GDK_DPI_SCALE=0.8
export GUIX_GITHUB_TOKEN="22b00f8346ae4c2f4795cc6c6b346516bb43a619"

View File

@ -1,57 +1 @@
# <3 default editor (za manjse urejanje)
export EDITOR="vim"
export VISUAL="vim"
# Nek Java fix?
export NLS_LANG=American_America.UTF8
# Guile Zadeve
export GUILE_WARN_DEPRECATED="detailed"
# PhantomJS binary location
export PHANTOMJS_BIN=/usr/bin/phantomjs
# emacspeak speech server
export DTK_PROGRAM=espeak
# User bin
export PATH="$HOME/bin:$PATH"
# Firefox webrender
export MOZ_WEBRENDER=1
# Wayland pls!
export KITTY_ENABLE_WAYLAND=1
export MOZ_ENABLE_WAYLAND=1
#export XDG_SESSION_TYPE=wayland
# Tole bojda ni dobra ideja (pravi wiki!)
#export GDK_BACKEND=wayland
# QT nastavitve
#export QT_QPA_PLATFORMTHEME="qt5ct"
# GTK izgled: sudo apt install qt5-style-plugins
export QT_QPA_PLATFORMTHEME=gtk
export QT_FONT_DPI=95
#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 QT_QPA_PLATFORM=wayland-egl
export QT_WAYLAND_FORCE_DPI=physical
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export _JAVA_AWT_WM_NONREPARENTING=1
# Guile
#export GUILE_LOAD_COMPILED_PATH="/usr/local/lib/guile/3.0/ccache:/usr/local/lib/guile/3.0/site-ccache"
#export GUILE_SITE_DIR="$HOME/.local/guile/site_dir"
# (FULL)Screen share
export XDG_CURRENT_DESKTOP=sway
# Guix
export GUIX_PROFILE="$HOME/.guix-profile"
export GUIX_PACKAGE_PATH="$HOME/projekti/kompot/guix-kompot:$HOME/projekti/guix-paketi"
if [[ -d "$HOME/.cargo" ]]; then
. "$HOME/.cargo/env"
fi
[[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile'

178
.zshrc
View File

@ -16,20 +16,22 @@ autoload colors zsh/terminfo
colors
# BARVE!
export GREP_COLORS='1;32'
export GREP_COLOR='1;32'
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
function man() {
LESS_TERMCAP_mb=$(printf "\e[1;35m") \
LESS_TERMCAP_md=$(printf "\e[1;34m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[7;40m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;33m") \
command man "$@"
function _colorman() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;35m") \
LESS_TERMCAP_md=$(printf "\e[1;34m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[7;40m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;33m") \
"$@"
}
function man() { _colorman man "$@"; }
function perldoc() { command perldoc -n less "$@" |man -l -; }
# Prompt za git
@ -61,28 +63,66 @@ bindkey '^R' history-incremental-pattern-search-backward
# | sort -V | column -t -s'|'
#}
# Aliasi
alias ll='ls -l'
alias grep='grep --color=auto'
alias ls='ls --color -C'
alias vi='vim'
alias sudo='sudo '
alias ag="rg"
alias less="less -R"
# Guix!
export GUIX_PROFILE="$HOME/.guix-profile"
#export GUIX_PROFILE="$HOME/.config/guix/current"
# Svez guix bin
export PATH="$HOME/.config/guix/current/bin${PATH:+:}$PATH"
# Guix guile zadeve
export GUILE_LOAD_PATH=$HOME/.config/guix/current/share/guile/site/3.0
export GUILE_LOAD_COMPILED_PATH=$HOME/.config/guix/current/lib/guile/3.0/site-ccache
export GUIX_PACKAGE_PATH="$HOME/Projekti/guix-packages"
export GUIX_LOCPATH="$GUIX_PROFILE/lib/locale"
export GUIX_PROFILE_FILE="$GUIX_PROFILE/etc/profile"
[ -e $GUIX_PROFILE_FILE ] && source $GUIX_PROFILE_FILE
#export SSL_CERT_DIR="$GUIX_PROFILE/etc/ssl/certs"
#export SSL_CERT_FILE="$SSL_CERT_DIR/ca-certificates.crt"
#export GIT_SSL_CAINFO="$SSL_CERT_FILE"
#export CURL_CA_BUNDLE="$SSL_CERT_FILE"
# Aliasi
alias ls='ls --color=auto'
alias vi='vim'
alias apachelog="gnome-terminal -e \"tail -f /var/log/httpd/error_log\""
alias sudo="sudo "
alias grep="grep --color=auto"
# Fix za termite ssh
alias ssh="TERM=xterm-256color ssh"
# Remove not-required-anymore packages
alias paclean="sudo pacman -R \$(pacman -Qdt | awk '{print \$1}')"
# Seznam paketov po velikosti (archlinux)
alias pacsize="expac -H M '%m\t%n' | sort -h"
alias ffon="sudo cp /etc/resolv.conf.ff /etc/resolv.conf"
alias gitclean="git fetch -p && for branch in \$(git branch -vv | grep ': gone]' | gawk '{print \$1}'); do git branch -D \$branch; echo 'deleted \$branch'; done"
alias sctl="systemctl"
alias ddrush="ddev exec drush"
alias dcomposer="ddev exec composer"
alias sc="chromium --force-device-scale-factor=1"
alias emacs-live="HOME=~/Sredstva/emacs-live emacs"
alias offer-files="python3 -m http.server"
alias make-home="cd $HOME/sredstva/dotfiles; make guix-home"
# Firefox scaling!
alias sf="find ~/.mozilla/firefox -name \"prefs.js\" -exec sed -ri 's/(devPixelsPerPx\\\", \\\")[0-9\\.]+/\\11\.00/' {} + ; firefox"
# Navaden firefox
alias ff="find ~/.mozilla/firefox -name \"prefs.js\" -exec sed -ri 's/(devPixelsPerPx\\\", \\\")[0-9\\.]+/\\11\.75/' {} + ; firefox"
# X on wayland
alias wxon="xhost +local:"
# RŠ aliasi
alias omnom="ssh root@debeli"
# Ljudmila
alias scdev="ssh culture@milci.ljudmila.org"
alias scnew="ssh culture@zala.ljudmila.org"
# Dolzina mp3 fajlov
alias mp3len="for i in \$(ls *.mp3); do echo \$i; soxi -d \$i; done"
@ -93,102 +133,14 @@ alias pg="ping 1.1.1.1"
# Najvecji fajli
alias najvecji="find . -printf '%s %p\n'| sort -nr | head -30"
# NVM
#export NVM_DIR="/home/g1smo/.nvm"
#[ -e /usr/share/nvm/init-nvm.sh ] && . /usr/share/nvm/init-nvm.sh
alias invm=". /usr/share/nvm/init-nvm.sh"
# RŠ ssh
alias srs='f(){ ssh jurijp@$1.radiostudent.local };f'
alias srr='f(){ ssh root@$1.radiostudent.local };f'
alias rss='f(){ ssh jurijp@$1.radiostudent.si };f'
alias rsr='f(){ ssh root@$1.radiostudent.si };f'
alias rs='ssh radiostudent.si'
alias rr='ssh root@radiostudent.si'
# Poslusaj snemanje
alias poslusaj='pactl load-module module-loopback latency_msec=1'
alias tisina='pactl unload-module module-loopback'
# PI ssh
alias spi='ssh pi@192.168.64.88'
# Na prostem sajt(i)
alias nps='cd ~/ljudmila/naprostem/sajt'
alias np='f(){ ssh root@$1.na-prostem.si };f'
# Kill element
alias kill-element='kill $(ps aux | grep element | awk '\''{print $2;}'\'')'
alias kill-zoom='pkill zoom'
alias nmc='nmcli con up '
# OBS fix
#alias obs="QT_QPA_PLATFORM=xcb obs"
# Build deb pkg
#alias deb-build="dpkg-buildpackage -us -uc"
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"
# 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!
if command -v go &> /dev/null; then
export PATH="${PATH}:$(go env GOPATH)/bin"
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)
#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 enp5s0 -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
# CC = gcc
export CC=gcc
# Direnv
eval "$(direnv hook zsh)"
# Restart pipewire(debian)
alias restart-pipewire-debian="systemctl restart --user wireplumber pipewire pipewire-pulse"
function abeceda {
for x in {A..Z}; do; y=$(echo "$x" | tr '[:upper:]' '[:lower:]'); echo -e "\t$x\t$y"; done
}
function ajpi {
IPV4=$(curl -s 'https://api.ipify.org?format=json' | jq '.ip') && HOME_IPV4='"193.77.221.150"' && if [ "$HOME_IPV4" = "$IPV4" ]; then; echo "LIO: $IPV4"; else; printf 'ipv4: %s\n' "$IPV4"; fi && printf 'ipv6: %s\n' $(curl -s 'https://api64.ipify.org?format=json' | jq '.ip')
}

View File

@ -1,5 +0,0 @@
DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
guix-home:
guix home reconfigure $(DIR)guix/home/home-configuration.scm

View File

@ -1,12 +0,0 @@
[Desktop Entry]
Name=SuperCollider IDE
GenericName=SuperCollider IDE
Comment=IDE for the SuperCollider audio synthesis language
# Run via pipewire
Exec=pw-jack scide %F
Icon=sc_ide
Type=Application
Terminal=false
Categories=AudioVideo;Audio;Development;IDE;
MimeType=text/x-sc;
StartupWMClass=scide

View File

@ -1,12 +0,0 @@
[Desktop Entry]
Name=Ardour
Comment=Ardour Digital Audio Workstation
Exec=env PIPEWIRE_LATENCY=128/48000 pw-jack ardour8 %F
Icon=ardour8
Terminal=false
MimeType=application/x-ardour;
Type=Application
Categories=AudioVideo;Audio;AudioEditing;X-Recorders;X-Multitrack;X-Jack;
StartupWMClass=Ardour
X-NMS-Capable=true
X-NMS-Exec=ardour8

View File

@ -1,12 +0,0 @@
[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,15 +0,0 @@
[Desktop Entry]
Version=1.0
Name=OBS Studio
GenericName=Streaming/Recording Software
GenericName[fr]=Logiciel d'enregistrement/diffusion
Comment=Free and Open Source Streaming/Recording Software
Comment[fr]=Logiciel libre d'enregistrement et de diffusion sur Internet
Comment[ru]=Бесплатная программа с открытым кодом для записи/трансляции видео
Exec=env QT_QPA_PLATFORM=xcb obs
Icon=com.obsproject.Studio
Terminal=false
Type=Application
Categories=AudioVideo;Recorder;
StartupNotify=true
StartupWMClass=obs

View File

@ -1,16 +0,0 @@
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Name=DBeaver Community
GenericName=UniversaL Database Manager
Comment=Universal Database Manager and SQL Client.
Path=/usr/share/dbeaver/
Exec=env QT_QPA_PLATFORM=xcb dbeaver
Icon=/usr/share/dbeaver/dbeaver.png
Categories=IDE;Development
WM_CLASS=DBeaver
StartupWMClass=DBeaver
StartupNotify=true
Keywords=Database;SQL;IDE;JDBC;ODBC;MySQL;PostgreSQL;Oracle;DB2;MariaDB
MimeType=application/sql

View File

@ -1,13 +0,0 @@
[Desktop Entry]
Name=Emacs Pipewire
GenericName=Text Editor
Comment=Edit text
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
# Run via pipewire (for supercollider!)
Exec=env PIPEWIRE_LATENCY=128/48000 pw-jack emacs %F
Icon=emacs
Type=Application
Terminal=false
Categories=Development;TextEditor;
StartupNotify=true
StartupWMClass=Emacs

View File

@ -1,13 +0,0 @@
#!/bin/sh
datum=$(date +"%y-%m-%d")
backuplog=/root/backup-log
sudo sshfs pi@pi:/home/pi/mast/bak/dbn /root/.bak
#borg create -svp pi@192.168.64.112:~/mast/bak/tp::$datum /etc /home /opt /root /srv /var | sudo tee -a $backuplog
echo "Backup sistema $datum" | sudo tee -a $backuplog
#rsync -avz /etc /home /opt /root /srv /var pi@pi:~/mast/bak/tp | tee -a $backuplog
sudo borg create --stats --verbose --compression=lz4 "/root/.bak::$datum" /etc /home /opt /root /srv /var | sudo tee -a $backuplog
sudo umount /root/.bak

View File

@ -1,3 +0,0 @@
#!/bin/sh
GDK_BACKEND=x11 /usr/bin/dbeaver

View File

@ -1,31 +0,0 @@
#!/usr/bin/env python3
# This script requires i3ipc-python package (install it from a system package manager
# or pip).
# It makes inactive windows transparent. Use `transparency_val` variable to control
# transparency strength in range of 0…1.
import i3ipc
transparency_val = '0.8';
ipc = i3ipc.Connection()
prev_focused = None
for window in ipc.get_tree():
if window.focused:
prev_focused = window
else:
window.command('opacity ' + transparency_val)
def on_window_focus(ipc, focused):
global prev_focused
if focused.container.id != prev_focused.id: # https://github.com/swaywm/sway/issues/2859
focused.container.command('opacity 1')
prev_focused.command('opacity ' + transparency_val)
prev_focused = focused.container
ipc.on("window::focus", on_window_focus)
ipc.main()

View File

@ -1,3 +0,0 @@
#!/usr/bin/env bash
convert -background transparent "$1" -define icon:auto-resize=16,24,32,48,64,128,256 "$1.ico"

View File

@ -1,10 +0,0 @@
#!/usr/bin/env bash
# Screenshot na waylandu!
# DEPS: grim, slurp
DESTINATION=~/Slike/screenshots
FILENAME="screenshot-`date +%F-%T`"
grim -g "$(slurp)" $DESTINATION/$FILENAME.png

View File

@ -1,22 +0,0 @@
#!/bin/bash
fluidsynth --server \
--no-shell \
--audio-driver=pulseaudio \
--gain=1.0 \
--reverb=0.42 \
--chorus=0.42 \
/usr/share/sounds/sf2/FluidR3_GM.sf2 &>/tmp/fluidsynth.out &
sleep 2
vmpk &
sleep 2
vmpkport=$(aconnect -i |grep "client.*VMPK Output" | cut -d ' ' -f 2)0
synthport=$(aconnect -i |grep "FLUID Synth" | cut -d ' ' -f 2)0
echo "vmpk on ${vmpkport} & synth on ${synthport}"

View File

@ -1,15 +0,0 @@
#!/bin/bash
praznim=$(acpi -b | grep Discharging)
lvl=$(acpi -b | sed -e 's/[,%\s]//g' | awk '{s+=$4} END {printf "%.0f", s/2}')
nizka=7
kriticna=3
if [[ $praznim ]]; then
if [[ $lvl -lt $kriticna ]]; then
systemctl suspend
elif [[ $lvl -lt $nizka ]]; then
notify-send -u critical -i /usr/share/icons/gnome/32x32/status/battery-low.png "BATERIJA NISKA: $lvl%"
fi
fi

74
config.scm 100644
View File

@ -0,0 +1,74 @@
;; 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))

View File

@ -1,2 +0,0 @@
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", RUN+="/bin/chgrp video /sys/class/backlight/%k/brightness"
ACTION=="add", SUBSYSTEM=="backlight", KERNEL=="intel_backlight", RUN+="/bin/chmod g+w /sys/class/backlight/%k/brightness"

View File

@ -1,170 +0,0 @@
(use-modules
(gnu)
(gnu system nss)
(nongnu packages linux)
(nongnu system linux-initrd)
(guix utils)
(srfi srfi-1))
(use-service-modules base desktop xorg dns networking docker pm cups)
(use-package-modules bootloaders certs shells ssh version-control emacs vim wm freedesktop xorg fontutils docker cups android)
;; Autologin (ker imamo encrypted root!)
(define (auto-login-to-tty config tty user)
(if (string=? tty (mingetty-configuration-tty config))
(mingetty-configuration
(inherit config)
(auto-login user))
config))
(define %my-services
(modify-services %desktop-services
;; tty2 autologin
(mingetty-service-type config =>
(auto-login-to-tty
config "tty2" "g1smo"))))
(operating-system
(host-name "pnx")
(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))
(groups (cons* (user-group (name "adbusers"))
(user-group (name "plugdev"))
%base-groups))
(users (cons* (user-account
(name "g1smo")
(comment "Yuri")
(group "users")
(uid 1000)
(shell (file-append zsh "/bin/zsh"))
(supplementary-groups '("wheel" "netdev"
"audio" "video"
"dialout" "users" "lp"
;; Za ddev
"docker"
;; za fastboot/adb
"adbusers"
;; networkmanager connections
"plugdev"))
(home-directory "/home/g1smo"))
%base-user-accounts))
(packages (append (list ;; Osnovni WM
"i3-wm"
"i3status"
"dmenu"
"st"
;; sistem
"lvm2"
"amdgpu-firmware"
;; WM zadeve
"sway"
"swaybg"
"rofi"
"i3-autotiling"
"waybar"
"gammastep"
"foot"
"eog"
"nautilus"
;; Urejevalniki teksta
"emacs"
"vim"
;; Razno
"zsh"
"git"
"file"
;; Napajanje, baterija ...
"acpi"
"file"
;; Za docker (ddev)
"docker")
%base-packages))
(services
(cons* (service gnome-desktop-service-type)
;; dns cache
(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)))
(service tlp-service-type
(tlp-configuration
(cpu-scaling-governor-on-ac (list "ondemand"))
(max-lost-work-secs-on-ac 0)
(ahci-runtime-pm-timeout 0)))
(service thermald-service-type)
(service bluetooth-service-type)
;; Za ddev
(service docker-service-type)
(service containerd-service-type)
;; printanje
(service cups-service-type
(cups-configuration
(web-interface? #t)
(extensions
(list cups-filters hplip-minimal))))
;; fastboot kot navadni user
(udev-rules-service 'android android-udev-rules)
;; dodatna imena gostiteljev
(simple-service 'extra-hosts
(list (host "192.168.0.88" "pi")
(host "192.168.0.200" "pinenote")
(host "194.249.242.45" "p1")))
(remove
(lambda (service)
(eq? network-manager-service-type (service-kind service)))
%my-services )))
(swap-devices
(list (swap-space
(target (uuid "76019829-e8eb-477c-a08a-d2ccff3fcdd5")))))
(mapped-devices
(list (mapped-device
(source (uuid "3020ad8b-ee01-49e2-8a46-3f66c902ef67"))
(target "sda3_crypt")
(type luks-device-mapping))
(mapped-device
(source "dbn-vg")
(targets (list "dbn--vg-guix" "dbn--vg-btr--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/dbn--vg-guix")
(type "btrfs")
(options "subvol=@root,compress-force=zstd,space_cache=v2")
(dependencies mapped-devices))
(file-system
(mount-point "/mnt/debian-home")
(device "/dev/mapper/dbn--vg-btr--home")
(type "btrfs")
(options "compress-force=zstd,space_cache=v2")
(dependencies mapped-devices))
(file-system
(mount-point "/boot/efi")
(device (uuid "3F44-75AB" 'fat))
(type "vfat"))
%base-file-systems)))

View File

@ -1,4 +0,0 @@
(specifications->packages
(list
"firefox-esr-wayland"))

View File

@ -1,289 +0,0 @@
;; 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)
(gnu home services shells)
(gnu home services pm)
(gnu home services desktop)
(gnu packages xdisorg)
(gnu home services sound))
(home-environment
;; Below is the list of packages that will show up in your
;; Home profile, under ~/.guix-home/profile.
(packages
(specifications->packages
(list
;; E-pošta
"icedove-wayland"
;"icedove-l10n:sl"
"mu"
"gnupg"
;; Chat
"element-desktop"
"irssi"
"signal-desktop"
;; Emacs in paketi
"emacs-next-pgtk-xwidgets"
"emacs-use-package"
"emacs-benchmark-init"
"emacs-general"
"emacs-evil"
"emacs-evil-collection"
"emacs-evil-org"
;"emacs-treemacs-evil"
"emacs-vertico"
;"emacs-savehist"
"emacs-marginalia"
"emacs-orderless"
;"emacs-nerd-icons-completion"
"emacs-swiper"
"emacs-counsel"
"emacs-smex"
"emacs-helpful"
"emacs-which-key"
"emacs-crdt"
"emacs-openwith"
"emacs-org"
;"emacs-ob-mermaid"
"emacs-visual-fill-column"
"emacs-writeroom"
"emacs-org-caldav"
"emacs-org-bullets"
"emacs-htmlize"
"emacs-gruvbox-theme"
"emacs-doom-modeline"
"emacs-nerd-icons"
"emacs-undo-tree"
"emacs-markdown-mode"
"emacs-guix"
"emacs-projectile"
"emacs-counsel-projectile"
"emacs-editorconfig"
"emacs-treemacs"
"emacs-smartparens"
"emacs-company"
"emacs-flycheck"
"emacs-format-all-the-code"
"emacs-direnv"
"emacs-magit"
;"emacs-treesit-auto"
"emacs-rainbow-delimiters"
"emacs-geiser-guile"
"emacs-racket-mode"
"emacs-slime"
"emacs-web-mode"
"emacs-restclient"
;"emacs-php-mode"
;"emacs-drupal-mode"
;"emacs-geben"
"emacs-js2-mode"
;"emacs-vue-mode"
"emacs-rjsx-mode"
"emacs-pyvenv"
;"emacs-sclang"
;"emacs-fluxus-mode"
"emacs-extempore-mode"
;"emacs-tidal"
"emacs-toml-mode"
"emacs-yaml-mode"
"emacs-arduino-mode"
"emacs-lsp-mode"
;"emacs-mu4e"
;"emacs-mu4e-marker-icons"
"emacs-mu4e-dashboard"
;"emacs-mu4e-thread-folding"
"emacs-nyan-mode"
"emacs-svg-icon"
"emacs-scel"
"emacs-spinner"
"emacs-vertico"
"emacs-cider"
;; Splet
"librewolf"
"nyxt"
"surfraw"
;; Brskanje po fajlih
"thunar"
"ncdu"
;; Wine za wins programe
"wine64"
;; Guile programiranje
"guile-next"
"guile-goblins"
"guile-chickadee"
"guile-readline"
"guile-colorized"
"guile-dbi"
"guile-dbd-mysql"
"guile-dbd-sqlite3"
"guile-zstd"
"artanis"
"guile-studio"
"sicp"
;; Torrenti / fajl sharing
"transmission:gui"
"transmission"
"nicotine+"
;; Terminal, orodja
"foot"
"screen"
"reptyr"
"ripgrep"
"rsync"
"direnv"
"openssh"
"sshfs"
"woff-tools"
"gzip"
"unzip"
"pwgen"
"jq"
"curl"
"nextcloud-client"
"powertop" ; poraba energije
"ncurses" ; clear ukaz, najbrz tudi kaksni drugi
"hexyl" ; CLI hex editor
"gparted"
"xhost" ; za sudo gui (vidi zshrc)
;; upravljanje oken
"swayfx"
"swaybg"
"i3-wm"
"i3status"
"rofi-wayland"
"mako"
"gammastep"
"i3-autotiling"
"eog" ; gledanje slik
"vlc" ; multimedia plejer
"keepassxc" ; gesla / keyring
"seahorse" ; keyring urejevalnik
"glib:bin" ; za gsettings ukaz
"grim" ; zaslonske slike
"slurp" ; zaslonske slike
"pamixer" ; za jakost stimat
"brightnessctl" ; svetlost zaslona
"wdisplays" ; nastavitve zaslonov
;; pisave
"font-liberation"
"font-dejavu"
"font-fira-code"
"font-awesome"
;; zvok
"qpwgraph"
"qjackctl"
"pavucontrol"
"alsa-utils"
"non-mixer"
"audacity"
"ardour"
"infamous-plugins"
"swh-plugins-lv2"
"zam-plugins"
"x42-plugins"
"caps-plugins-lv2"
"zplugins"
;"lsp-plugins"
"distrho-ports"
"omins-lv2"
"supercollider"
"soundconverter"
"picard"
"sooperlooper"
"ffmpeg"
;; mrezna orodja
"xl2tpd"
"nmap"
"wireshark"
"bind:utils"
;; urejanje in branje dokumentov (ne-emacs)
"libreoffice"
"evince"
"calibre"
"gedit"
"okular" ;; Digitalno podpisovanje pdf dokumentov
;; Urejanje slik
"gimp"
"inkscape"
"gimp-resynthesizer" ; magicna orodja v gimpu
;; video urejanje
"kdenlive"
;"olive"
;; Eye candy
"gnome-tweaks"
"arc-theme"
"numix-gtk-theme"
"qt5ct"
;"hyprland"
;"hyfetch"
"wfetch"
"texlive-etbb"
"bibata-cursor-theme"
"delft-icon-theme"
;; Programiranje
"rust"
"valgrind"
"xxd"
"make"
"python"
;; Igre
"gzdoom"
"gnubg"
"freegish"
"kigo"
"crawl-tiles"
;; Razno
"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 ;; Shell - zsh
(service home-zsh-service-type
(home-zsh-configuration
(zlogin (list (local-file "../../.zlogin" "zlogin")))
(zshrc (list (local-file "../../.zshrc" "zshrc")))
(zprofile (list (local-file "../../.zprofile" "zprofile")))))
;; Razne konfiguracije (~/.config)
(service home-files-service-type
;; Desktop file overrides; pw-jack za supercolider
`((".local/share/applications/SuperColliderIDE.desktop" ,(local-file "../../applications/SuperColliderIDE.desktop"))
(".local/share/applications/emacsPW.desktop" ,(local-file "../../applications/emacsPW.desktop"))))
;; Razni dotfajli - konfiguracije (~/.config)
(service home-xdg-configuration-files-service-type
`(("sway/config" ,(local-file "../../.config/sway/config"))
("rofi/config.rasi" ,(local-file "../../.config/rofi/config.rasi"))
("foot/foot.ini" ,(local-file "../../.config/foot/foot.ini"))
("i3status/config" ,(local-file "../../.config/i3status/config"))))
;; TODO povezi se druge dotfajle!
;; Indikator prazne baterije
(service home-batsignal-service-type)
;; Dbus storitev, ki se rabi kdaj
(service home-dbus-service-type))))

View File

@ -1,331 +0,0 @@
;; 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)
(gnu home services shells)
(gnu home services pm)
(gnu home services desktop)
(gnu packages xdisorg)
(gnu home services sound))
(home-environment
;; Below is the list of packages that will show up in your
;; Home profile, under ~/.guix-home/profile.
(packages
(specifications->packages
(list
;; E-pošta
"icedove-wayland"
;"icedove-l10n:sl"
"mu"
"gnupg"
;; Chat
"element-desktop"
"irssi"
"signal-desktop"
;; Emacs in paketi
"emacs-next-pgtk"
"emacs-use-package"
"emacs-benchmark-init"
"emacs-general"
"emacs-evil"
"emacs-evil-collection"
"emacs-evil-org"
;"emacs-treemacs-evil"
;"emacs-vertico"
;"emacs-savehist"
"emacs-marginalia"
"emacs-orderless"
;"emacs-nerd-icons-completion"
"emacs-swiper"
"emacs-counsel"
"emacs-smex"
"emacs-helpful"
"emacs-which-key"
"emacs-crdt"
"emacs-openwith"
"emacs-org"
;"emacs-ob-mermaid"
"emacs-visual-fill-column"
"emacs-writeroom"
"emacs-org-caldav"
"emacs-org-bullets"
"emacs-org-present"
"emacs-htmlize"
"emacs-gruvbox-theme"
"emacs-doom-modeline"
"emacs-nerd-icons"
"emacs-undo-tree"
"emacs-markdown-mode"
"emacs-guix"
"emacs-projectile"
"emacs-counsel-projectile"
"emacs-editorconfig"
"emacs-treemacs"
"emacs-smartparens"
"emacs-company"
"emacs-flycheck"
"emacs-format-all-the-code"
"emacs-direnv"
"emacs-magit"
;"emacs-treesit-auto"
"emacs-rainbow-delimiters"
"emacs-geiser-guile"
"emacs-racket-mode"
"emacs-slime"
"emacs-web-mode"
"emacs-restclient"
;"emacs-php-mode"
;"emacs-drupal-mode"
;"emacs-geben"
"emacs-js2-mode"
;"emacs-vue-mode"
"emacs-rjsx-mode"
"emacs-pyvenv"
;"emacs-sclang"
;"emacs-fluxus-mode"
"emacs-extempore-mode"
;"emacs-tidal"
"emacs-toml-mode"
"emacs-yaml-mode"
"emacs-spinner"
"emacs-arduino-mode"
"emacs-lsp-mode"
;"emacs-mu4e"
;"emacs-mu4e-marker-icons"
"emacs-dashboard"
"emacs-mu4e-dashboard"
;"emacs-mu4e-thread-folding"
"emacs-nyan-mode"
"emacs-svg-icon"
"emacs-scel"
"emacs-vertico"
"emacs-queue"
"emacs-cider"
;; Splet
"librewolf"
"nyxt"
"surfraw"
;; Brskanje po fajlih
"nautilus"
"thunar"
"ncdu"
;; Wine za wins programe
"wine64"
;; Guile programiranje
"guile-next"
"guile-goblins"
"guile-chickadee"
"guile-readline"
"guile-colorized"
"guile-dbi"
"guile-dbd-mysql"
"guile-dbd-sqlite3"
"guile-zstd"
"artanis"
"guile-studio"
"sicp"
;; Drugi lispi
"racket"
"clojure"
"leiningen"
;; Torrenti / fajl sharing
"transmission:gui"
"transmission"
"nicotine+"
;; Terminal, orodja
"foot"
"screen"
"reptyr"
"ripgrep"
"rsync"
"direnv"
"openssh"
"sshfs"
"woff-tools"
"gzip"
"unzip"
"pwgen"
"jq"
"curl"
"w3m" ; CLI spletni brskalnik
"nextcloud-client"
"powertop" ; poraba energije
"ncurses" ; clear ukaz, najbrz tudi kaksni drugi
"hexyl" ; CLI hex editor
"gparted"
"xhost" ; za sudo gui (vidi zshrc)
"poppler" ; pdfimages, ...
"sox" ; zvočni urejevalnik v terminalu
;; C kompajlanje
"gcc-toolchain"
"bash"
;; upravljanje oken
"swayfx"
"xorg-server"
"xorg-server-xwayland"
"swaybg"
"i3-wm"
"i3status"
"rofi-wayland"
"mako"
"libnotify"
"gammastep"
"xdg-desktop-portal-gtk"
"xdg-desktop-portal-wlr"
"flatpak-xdg-utils"
"i3-autotiling"
"eog" ; gledanje slik
"vlc" ; multimedia plejer
"keepassxc" ; gesla / keyring
"seahorse" ; keyring urejevalnik
"glib:bin" ; za gsettings ukaz
"grim" ; zaslonske slike
"slurp" ; zaslonske slike
"pamixer" ; za jakost stimat
"brightnessctl" ; svetlost zaslona
"wdisplays" ; nastavitve zaslonov
;; pisave
"font-liberation"
"font-dejavu"
"font-fira-code"
"font-awesome"
;; zvok
"pipewire"
"qpwgraph"
"qjackctl"
"pavucontrol"
"alsa-utils"
"non-mixer"
"audacity"
"ardour"
"infamous-plugins"
"swh-plugins-lv2"
"zam-plugins"
"x42-plugins"
"caps-plugins-lv2"
"zplugins"
;"lsp-plugins"
"distrho-ports"
"omins-lv2"
"supercollider"
"soundconverter"
"picard"
"sooperlooper"
"ffmpeg"
;; mrezna orodja
"xl2tpd"
"strongswan"
"nmap"
"wireshark"
"bind:utils"
;; urejanje in branje dokumentov (ne-emacs)
"libreoffice"
"evince"
"calibre"
"gedit"
"okular" ;; Digitalno podpisovanje pdf dokumentov
;; Urejanje slik
"gimp-next"
"inkscape"
"gimp-resynthesizer" ; magicna orodja v gimpu
;; video urejanje
"kdenlive"
;"olive"
"obs"
"obs-wlrobs"
;; Eye candy
"gnome-tweaks"
"arc-theme"
"numix-gtk-theme"
"qt5ct"
;"hyprland"
;"hyfetch"
;"xdg-desktop-portal-hyprland"
"wfetch"
"texlive-etbb"
"bibata-cursor-theme"
"delft-icon-theme"
;; Programiranje
"rust"
"valgrind"
"xxd"
"make"
"python"
;; Igre
"gzdoom"
"gnubg"
"freegish"
"kigo"
"crawl-tiles"
;; Razno
"mesa"
"mesa-utils"
"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 ;; Shell - zsh
(service home-zsh-service-type
(home-zsh-configuration
(zlogin (list (local-file "../../.zlogin" "zlogin")))
(zshrc (list (local-file "../../.zshrc" "zshrc")))
(zprofile (list (local-file "../../.zprofile" "zprofile")))))
;; Razne konfiguracije (~/.config)
(service home-files-service-type
;; Desktop file overrides; pw-jack za supercolider
`((".local/share/applications/SuperColliderIDE.desktop" ,(local-file "../../applications/SuperColliderIDE.desktop"))
(".local/share/applications/ardour8.desktop" ,(local-file "../../applications/ardour8.desktop"))
(".local/share/applications/emacsPW.desktop" ,(local-file "../../applications/emacsPW.desktop"))))
;; Razni dotfajli - konfiguracije (~/.config)
(service home-xdg-configuration-files-service-type
`(("sway/config" ,(local-file "../../.config/sway/config"))
("rofi/config.rasi" ,(local-file "../../.config/rofi/config.rasi"))
("foot/foot.ini" ,(local-file "../../.config/foot/foot.ini"))
("i3status/config" ,(local-file "../../.config/i3status/config"))))
;; TODO povezi se druge dotfajle!
;; Indikator prazne baterije
(service home-batsignal-service-type
(home-batsignal-configuration
(notifications-expire? #t)))
;; Rdecenje zaslona
(service home-redshift-service-type
(home-redshift-configuration
(redshift redshift-wayland)
(location-provider 'manual)
(adjustment-method 'wayland)
(latitude 46.05108)
(longitude 14.50513)))
;; Dbus storitev, ki se rabi kdaj
(service home-dbus-service-type)
;; Pipewire sound daemon
(service home-pipewire-service-type))))

View File

@ -1,32 +0,0 @@
;; 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

@ -1,75 +0,0 @@
(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

@ -1,87 +0,0 @@
(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")))

29
init.sh
View File

@ -1,29 +0,0 @@
#!/bin/sh
# Instaliraj vim plug!
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)
if [ ! -d ~/.fonts ]; then
mkdir ~/.fonts
fi
if [ ! -d ~/.fonts/iosevka ]; then
curl -fLo ~/.fonts/iosevka.zip https://github.com/be5invis/Iosevka/releases/download/v20.0.0/super-ttc-iosevka-ss01-20.0.0.zip
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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 559 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 658 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 538 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 776 KiB

View File

@ -1,93 +1,40 @@
#!/bin/sh
DIR=$(pwd)
DIR=`pwd`
echo "DIR: $DIR"
ln -s $DIR/.zshrc ~/.zshrc
# Profile
ln -s "$DIR/.profile" ~/.profile
ln -s $DIR/.config/gtk-3.0 ~/.config/gtk-3.0
# ZSH shell!
ln -s "$DIR/.zshrc" ~/.zshrc
ln -s "$DIR/.zprofile" ~/.zprofile
ln -s "$DIR/.zlogin" ~/.zlogin
# i3 config (<3 tiling WM)
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)
mkdir ~/.config/sway
ln -s "$DIR/.config/sway/config" ~/.config/sway/config
ln -s $DIR/.config/sway/config ~/.config/sway/config
# i3status vrstica zgoraj
mkdir ~/.config/i3status
ln -s "$DIR/.config/i3status/config" ~/.config/i3status/config
# termite terminal (ok terminal za X)
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)
mkdir ~/.config/kitty
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/gruvbox.conf" ~/.config/kitty/gruvbox.conf
ln -s $DIR/.config/compton.conf ~/.config/compton.conf
# Foot terminal (minimal wayland term)
mkdir ~/.config/foot
ln -s "$DIR/.config/foot/foot.ini" ~/.config/foot/foot.ini
ln -s $DIR/.config/redshift ~/.config/redshift
# compton compositor (za X - transparence oken in efekti)
ln -s "$DIR/.config/compton.conf" ~/.config/compton.conf
ln -s $DIR/.gtkrc-2.0 ~/.gtkrc-2.0
# redshift (pordeci skrin, X)
ln -s "$DIR/.config/redshift" ~/.config/redshift
ln -s $DIR/.i3blocks.conf ~/.i3blocks.conf
# i3 block, bolj fensi statusbar (ne uporabljam vec)
ln -s "$DIR/.i3blocks.conf" ~/.i3blocks.conf
mkdir ~/.local/rofi
ln -s $DIR/.local/rofi/config ~/.local/rofi/config
# rofi launcher
mkdir ~/.config/rofi
ln -s "$DIR/.config/rofi/config.rasi" ~/.config/rofi/config.rasi
ln -s $DIR/.spacemacs ~/.spacemacs
# VIM!
ln -s "$DIR/.vimrc" ~/.vimrc
ln -s $DIR/.vimrc ~/.vimrc
# barve v terminalu in neki detajli, X
ln -s "$DIR/.Xresources" ~/.Xresources
ln -s $DIR/.Xresources ~/.Xresources
# GIT konfiguracija
ln -s "$DIR/.gitconfig" ~/.gitconfig
ln -s $DIR/.zlogin ~/.zlogin
# Razne uporabne skripte
mkdir ~/bin
# Screenshot skripta (wayland)
ln -s "$DIR/bin/screenshot" ~/bin/screenshot
# backup ukaz
ln -s "$DIR/bin/backmeup" ~/bin/backmeup
# transparenca neaktivnih oken na swayu
ln -s "$DIR/bin/inactive-windows-transparency.py" ~/bin/inactive-windows-transparency.py
# virtual piano keyboard na pulseaudiu!
ln -s "$DIR/bin/png2ico" ~/bin/png2ico
# png v ico konverzija
ln -s "$DIR/bin/vmpk-pa" ~/bin/vmpk-pa
# Guile
ln -s "$DIR/.guile" ~/.guile
# X11 popravki aplikacij
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/arduino2.desktop" ~/.local/share/applications/arduino2.desktop
# Emacs <3
mkdir ~/.emacs.d
ln -s "$DIR/.emacs.d/init.el" ~/.emacs.d/init.el
ln -s "$DIR/.emacs.d/config.org" ~/.emacs.d/config.org
ln -s "$DIR/.emacs.d/sclang-helper.el" ~/.emacs.d/sclang-helper.el
# SSH (timeout)
mkdir ~/.ssh
ln -s "$DIR/.ssh/config" ~/.ssh/config
ln -s $DIR/.gitconfig ~/.gitconfig
ln -s $DIR/.profile ~/.profile
ln -s $DIR/.zprofile ~/.zprofile