Compare commits
No commits in common. "deblo" and "x1carbon" have entirely different histories.
13
.Xresources
13
.Xresources
|
@ -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,5 +79,3 @@ URxvt.keysym.M-Escape: perl:keyboard-select:activate
|
|||
! transparency
|
||||
URxvt*depth: 32
|
||||
URxvt*background: [94]S_base03
|
||||
|
||||
xterm*decTerminalID : vt340
|
||||
|
|
|
@ -1,218 +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
|
||||
# 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=2d2b2a
|
||||
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
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
@ -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
|
|
@ -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
|
|
@ -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"
|
|
@ -10,47 +10,20 @@ set $right semicolon
|
|||
set $altright ccaron
|
||||
|
||||
# Terminal
|
||||
#set $term kitty
|
||||
set $term foot
|
||||
set $term termite
|
||||
|
||||
# Font
|
||||
font pango:Iosevka SS05 Medium 10
|
||||
|
||||
# Kurzor
|
||||
seat * xcursor_theme Bibata-Modern-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 ~/Slike/Wallpapers/1596344206877.jpg fill
|
||||
#output "*" background "~/riz0m/Photos/sri lanka/IMG_20220220_120730.jpg" fill
|
||||
#output "*" background "~/Slike/☭/bigstock-Sutjeska-National-Park-Bosnia-63011269.jpg" fill
|
||||
output "*" background "~/sredstva/dotfiles/ozadje4.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
|
||||
|
@ -104,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
|
||||
|
@ -142,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 &
|
||||
|
||||
|
||||
|
@ -169,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
|
||||
|
@ -184,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
|
||||
|
@ -225,171 +196,40 @@ mode "resize" {
|
|||
}
|
||||
bindsym $mod+r mode "resize"
|
||||
|
||||
set $ospredje #cccccc
|
||||
set $ospredjeTrans #cccccccc
|
||||
set $ospredjeNefokusiran #ebdbb2cc
|
||||
set $ozadje #32302f
|
||||
set $ozadjeTrans #32302fcc
|
||||
|
||||
#
|
||||
# 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" {
|
||||
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 'Papirus'
|
||||
gsettings set $gnome-schema cursor-theme 'Adwaita'
|
||||
}
|
||||
|
||||
# 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
|
||||
|
||||
# transparenca nekativnih oken
|
||||
exec ~/bin/inactive-windows-transparency.py
|
||||
|
||||
# Desktop notifikacije
|
||||
exec mako --default-timeout=5000 --icon-path /usr/share/icons/Numix
|
||||
|
||||
# Autotiling https://github.com/nwg-piotr/autotiling
|
||||
exec ~/bin/autotiling.py
|
||||
|
||||
# Rdece, da lahko spim, hvala
|
||||
exec 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
|
||||
|
|
|
@ -1,14 +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 -*-
|
||||
(("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"))
|
||||
)
|
1412
.emacs.d/config.org
1412
.emacs.d/config.org
File diff suppressed because it is too large
Load Diff
149
.emacs.d/init.el
149
.emacs.d/init.el
|
@ -1,149 +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)
|
||||
|
||||
;;; 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)
|
||||
|
||||
;; GNU guix
|
||||
(use-package guix :defer t)
|
||||
|
||||
;; Dashboard - homescreen
|
||||
(use-package dashboard
|
||||
:general
|
||||
(start/leader-keys
|
||||
"b h" 'dashboard-open)
|
||||
;:after nerd-icons
|
||||
:init
|
||||
(dashboard-setup-startup-hook)
|
||||
(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*")))
|
||||
(setq dashboard-banner-logo-title "EMA☭S")
|
||||
(setq dashboard-startup-banner 3)
|
||||
(setq dashboard-center-content t)
|
||||
(setq dashboard-items '((agenda . 5)
|
||||
(recents . 5)))
|
||||
;(setq dashboard-display-icons-p t) ;; display icons on both GUI and terminal
|
||||
;(setq dashboard-icon-type 'nerd-icons) ;; use `nerd-icons' package
|
||||
(setq dashboard-set-heading-icons t)
|
||||
(setq dashboard-set-file-icons t)
|
||||
(setq dashboard-set-navigator t)
|
||||
(setq dashboard-set-init-info t))
|
||||
|
||||
;; Bolj fajni IELM REPL
|
||||
(defun g-ielm-init-history ()
|
||||
"Obstojna ielm zgodovina."
|
||||
(let ((path (expand-file-name "ielm/history" user-emacs-directory)))
|
||||
(make-directory (file-name-directory path) t)
|
||||
(setq-local comint-input-ring-file-name path))
|
||||
(setq-local comint-input-ring-size 10000)
|
||||
(setq-local comint-input-ignoredups t)
|
||||
(comint-read-input-ring))
|
||||
(defun g-ielm-write-history (&rest _args)
|
||||
"Tole je povezano z obstojno ielm zgodovino."
|
||||
(with-file-modes #o600
|
||||
(comint-write-input-ring)))
|
||||
(use-package ielm
|
||||
:defer t
|
||||
:hook (ielm-mode-hook . (lambda ()
|
||||
(eldoc-mode)
|
||||
;(paredit-mode)
|
||||
(g-ielm-init-history)))
|
||||
:config
|
||||
(advice-add 'ielm-send-input :after 'g-ielm-write-history)
|
||||
(define-key inferior-emacs-lisp-mode-map (kbd "C-l")
|
||||
'comint-clear-buffer)
|
||||
(define-key inferior-emacs-lisp-mode-map (kbd "C-r")
|
||||
'helm-comint-input-ring))
|
||||
|
||||
;; 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.
|
||||
'(package-selected-packages
|
||||
'(2bit aggressive-indent all-the-icons arduino-mode benchmark-init
|
||||
company counsel-projectile crdt dap-mode dashboard direnv
|
||||
doom-modeline drupal-mode eat editorconfig elpher eros
|
||||
evil-collection evil-org extempore-mode fluxus-mode flycheck
|
||||
format-all geben geiser-guile general gruvbox-theme guix
|
||||
helpful htmlize lsp-mode magit-todos marginalia
|
||||
mu4e-dashboard mu4e-marker-icons mu4e-thread-folding
|
||||
ob-mermaid openwith orderless org-bullets org-caldav pyvenv
|
||||
quelpa-use-package racket-mode rainbow-delimiters restclient
|
||||
rg rjsx-mode sclang-extensions sesman slime smartparens smex
|
||||
subed svg-icon svg-lib tidal toml-mode treemacs-evil
|
||||
treemacs-projectile treesit-auto undo-tree vertico vue-mode
|
||||
web-beautify web-mode which-key writeroom-mode yaml-mode
|
||||
zone-nyan))
|
||||
'(package-vc-selected-packages
|
||||
'((svg-icon :url "https://github.com/rougier/emacs-svg-icon"))))
|
||||
|
||||
(custom-set-faces
|
||||
;; custom-set-faces 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)))))
|
||||
|
||||
|
||||
;; supercollider mode load
|
||||
;(require 'sclang)
|
|
@ -1 +0,0 @@
|
|||
("~/projekti/jugofuturizem/" "~/projekti/coopcycle-app/" "~/projekti/coopcycle-web/" "~/sredstva/dotfiles/" "~/projekti/waveywind/" "~/.local/share/SuperCollider/downloaded-quarks/MathLib/" "~/.local/share/SuperCollider/downloaded-quarks/SLIPDecoder/")
|
|
@ -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
|
||||
|
|
6
.guile
6
.guile
|
@ -1,6 +0,0 @@
|
|||
;; Readline fix (za smerne tipke v replu)
|
||||
(use-modules (ice-9 readline))
|
||||
(activate-readline)
|
||||
|
||||
;; Dodaj lokalno kompajlane knjižnice
|
||||
(append! %load-compiled-path '("/usr/local/lib/guile/3.0/ccache" "/usr/local/lib/guile/3.0/site-ccache"))
|
|
@ -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
|
||||
|
|
|
@ -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 = " %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"
|
||||
}
|
|
@ -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
|
||||
|
|
82
.profile
82
.profile
|
@ -1,7 +1,20 @@
|
|||
# <3 default editor (za manjse urejanje)
|
||||
# <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
|
||||
|
||||
|
@ -11,58 +24,29 @@ 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
|
||||
|
||||
# Rust paketi
|
||||
export PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH"
|
||||
# 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/bin:$PATH"
|
||||
|
||||
# Firefox webrender
|
||||
export MOZ_WEBRENDER=1
|
||||
export PATH="/home/g1smo/bin:$PATH"
|
||||
|
||||
# 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_LOCPATH="$HOME/.guix-profile/lib/locale"
|
||||
export GUIX_PROFILE="$HOME/.guix-profile"
|
||||
export XDG_DATA_DIRS="/usr/local/share:/usr/share:$XDG_DATA_DIRS"
|
||||
export XDG_DATA_DIRS="${GUIX_PROFILE}/share${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"
|
||||
export GUIX_PACKAGE_PATH="$HOME/projekti/guix-paketi"
|
||||
export PATH="$HOME/.config/guix/current/bin:$PATH"
|
||||
. "$GUIX_PROFILE/etc/profile"
|
||||
|
||||
# Loadamo sway na tty1!
|
||||
# Loadamo sway na tty5!
|
||||
# If running from tty1 start sway
|
||||
#if [ "$(tty)" = "/dev/tty1" ]; then
|
||||
# QT_QPA_PLATFORM=wayland-egl SDL_VIDEODRIVER=wayland exec sway
|
||||
#fi
|
||||
. "$HOME/.cargo/env"
|
||||
if [ "$(tty)" = "/dev/tty5" ]; then
|
||||
exec sway
|
||||
fi
|
||||
|
|
15
.spacemacs
15
.spacemacs
|
@ -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.
|
||||
|
|
19
.ssh/config
19
.ssh/config
|
@ -1,19 +0,0 @@
|
|||
Host *
|
||||
ServerAliveInterval 240
|
||||
|
||||
Host pi
|
||||
Port 2312
|
||||
|
||||
Host felis.kreten.si
|
||||
Port 2312
|
||||
|
||||
Host a2z.si
|
||||
HostkeyAlgorithms ssh-dss,ssh-rsa
|
||||
KexAlgorithms +diffie-hellman-group1-sha1
|
||||
|
||||
Host 192.168.64.100
|
||||
PubkeyAcceptedAlgorithms +ssh-rsa
|
||||
HostkeyAlgorithms +ssh-rsa
|
||||
Host 192.168.32.1
|
||||
PubkeyAcceptedAlgorithms +ssh-rsa
|
||||
HostkeyAlgorithms +ssh-rsa
|
10
.vimrc
10
.vimrc
|
@ -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
|
||||
|
|
7
.zlogin
7
.zlogin
|
@ -24,6 +24,7 @@ if [ "$TERM" = "linux" ]; then
|
|||
clear # against bg artifacts
|
||||
fi
|
||||
|
||||
#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"
|
||||
|
|
|
@ -1 +1 @@
|
|||
. ~/.profile
|
||||
[[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile'
|
||||
|
|
160
.zshrc
160
.zshrc
|
@ -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,27 +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"
|
||||
|
||||
# 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"
|
||||
|
@ -92,85 +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:/sbin:/usr/sbin"
|
||||
fi
|
||||
#export LD_LIBRARY_PATH="$(go env GOPATH)/deps/dqlite/.libs/:$(go env GOPATH)/deps/raft/.libs/:${LD_LIBRARY_PATH}"
|
||||
|
||||
# ??? fix crashanja
|
||||
#export LD_LIBRARY_PATH="/lib/x86_64-linux-gnu:/lib/i386-linux-gnu"
|
||||
|
||||
# JS fix (prevec nov za openssl)
|
||||
#export NODE_OPTIONS="--openssl-legacy-provider"
|
||||
|
||||
# Terminal podpora
|
||||
alias termfix="TERM=rxvt-256color "
|
||||
#export TERM=rxvt-256color
|
||||
|
||||
# Deli internet (iz wifi na eth)
|
||||
alias share-internet="sudo iptables --table nat -A POSTROUTING --out-interface enp5s0 -j MASQUERADE && sudo iptables -A FORWARD --in-interface eth1 -j ACCEPT"
|
||||
|
||||
# Android studio in SDK
|
||||
export ANDROID_HOME="$HOME/Android/Sdk"
|
||||
export PATH=$PATH:$ANDROID_HOME/emulator
|
||||
export PATH=$PATH:$ANDROID_HOME/tools
|
||||
export PATH=$PATH:$ANDROID_HOME/tools/bin
|
||||
export PATH=$PATH:$ANDROID_HOME/platform-tools
|
||||
#export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin/
|
||||
export PATH=$PATH:$HOME/android-studio/bin
|
||||
export PATH=$PATH:/opt/gradle-8.7/bin
|
||||
|
||||
# Cargo!
|
||||
export PATH=$HOME/.cargo/bin:$PATH
|
||||
|
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -1,214 +0,0 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
"""
|
||||
This script uses the i3ipc python module to switch the layout splith / splitv
|
||||
for the currently focused window, depending on its dimensions.
|
||||
It works on both sway and i3 window managers.
|
||||
|
||||
Inspired by https://github.com/olemartinorg/i3-alternating-layout
|
||||
|
||||
Copyright: 2019-2021 Piotr Miller & Contributors
|
||||
e-mail: nwg.piotr@gmail.com
|
||||
Project: https://github.com/nwg-piotr/autotiling
|
||||
License: GPL3
|
||||
|
||||
Dependencies: python-i3ipc>=2.0.1 (i3ipc-python)
|
||||
"""
|
||||
import argparse
|
||||
import os
|
||||
import sys
|
||||
from functools import partial
|
||||
|
||||
from i3ipc import Connection, Event
|
||||
|
||||
try:
|
||||
from .__about__ import __version__
|
||||
except ImportError:
|
||||
__version__ = "unknown"
|
||||
|
||||
|
||||
def temp_dir():
|
||||
if os.getenv("TMPDIR"):
|
||||
return os.getenv("TMPDIR")
|
||||
elif os.getenv("TEMP"):
|
||||
return os.getenv("TEMP")
|
||||
elif os.getenv("TMP"):
|
||||
return os.getenv("TMP")
|
||||
|
||||
return "/tmp"
|
||||
|
||||
|
||||
def save_string(string, file):
|
||||
try:
|
||||
file = open(file, "wt")
|
||||
file.write(string)
|
||||
file.close()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
|
||||
def output_name(con):
|
||||
if con.type == "root":
|
||||
return None
|
||||
|
||||
if p := con.parent:
|
||||
if p.type == "output":
|
||||
return p.name
|
||||
else:
|
||||
return output_name(p)
|
||||
|
||||
|
||||
def switch_splitting(i3, e, debug, outputs, workspaces, depth_limit):
|
||||
try:
|
||||
con = i3.get_tree().find_focused()
|
||||
output = output_name(con)
|
||||
# Stop, if outputs is set and current output is not in the selection
|
||||
if outputs and output not in outputs:
|
||||
if debug:
|
||||
print(
|
||||
"Debug: Autotiling turned off on output {}".format(output),
|
||||
file=sys.stderr,
|
||||
)
|
||||
return
|
||||
|
||||
if con and not workspaces or (str(con.workspace().num) in workspaces):
|
||||
if con.floating:
|
||||
# We're on i3: on sway it would be None
|
||||
# May be 'auto_on' or 'user_on'
|
||||
is_floating = "_on" in con.floating
|
||||
else:
|
||||
# We are on sway
|
||||
is_floating = con.type == "floating_con"
|
||||
|
||||
if depth_limit:
|
||||
# Assume we reached the depth limit, unless we can find a workspace
|
||||
depth_limit_reached = True
|
||||
current_con = con
|
||||
current_depth = 0
|
||||
while current_depth < depth_limit:
|
||||
# Check if we found the workspace of the current container
|
||||
if current_con.type == "workspace":
|
||||
# Found the workspace within the depth limitation
|
||||
depth_limit_reached = False
|
||||
break
|
||||
|
||||
# Look at the parent for next iteration
|
||||
current_con = current_con.parent
|
||||
|
||||
# Only count up the depth, if the container has more than
|
||||
# one container as child
|
||||
if len(current_con.nodes) > 1:
|
||||
current_depth += 1
|
||||
|
||||
if depth_limit_reached:
|
||||
if debug:
|
||||
print("Debug: Depth limit reached")
|
||||
return
|
||||
|
||||
is_full_screen = con.fullscreen_mode == 1
|
||||
is_stacked = con.parent.layout == "stacked"
|
||||
is_tabbed = con.parent.layout == "tabbed"
|
||||
|
||||
# Exclude floating containers, stacked layouts, tabbed layouts and full screen mode
|
||||
if (not is_floating
|
||||
and not is_stacked
|
||||
and not is_tabbed
|
||||
and not is_full_screen):
|
||||
new_layout = "splitv" if con.rect.height > con.rect.width else "splith"
|
||||
|
||||
if new_layout != con.parent.layout:
|
||||
result = i3.command(new_layout)
|
||||
if result[0].success and debug:
|
||||
print("Debug: Switched to {}".format(new_layout), file=sys.stderr)
|
||||
elif debug:
|
||||
print("Error: Switch failed with err {}".format(result[0].error), file=sys.stderr, )
|
||||
|
||||
elif debug:
|
||||
print("Debug: No focused container found or autotiling on the workspace turned off", file=sys.stderr)
|
||||
|
||||
except Exception as e:
|
||||
print("Error: {}".format(e), file=sys.stderr)
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("-d",
|
||||
"--debug",
|
||||
action="store_true",
|
||||
help="print debug messages to stderr")
|
||||
parser.add_argument("-v",
|
||||
"--version",
|
||||
action="version",
|
||||
version="%(prog)s {}, Python {}".format(__version__, sys.version),
|
||||
help="display version information", )
|
||||
parser.add_argument("-o",
|
||||
"--outputs",
|
||||
help="restricts autotiling to certain output; "
|
||||
"example: autotiling --output DP-1 HDMI-0",
|
||||
nargs="*",
|
||||
type=str,
|
||||
default=[], )
|
||||
parser.add_argument("-w",
|
||||
"--workspaces",
|
||||
help="restricts autotiling to certain workspaces; example: autotiling --workspaces 8 9",
|
||||
nargs="*",
|
||||
type=str,
|
||||
default=[], )
|
||||
parser.add_argument("-l",
|
||||
"--limit",
|
||||
help='limit how often autotiling will split a container; '
|
||||
'try "2", if you like master-stack layouts; default: 0 (no limit)',
|
||||
type=int,
|
||||
default=0, )
|
||||
"""
|
||||
Changing event subscription has already been the objective of several pull request. To avoid doing this again
|
||||
and again, let's allow to specify them in the `--events` argument.
|
||||
"""
|
||||
parser.add_argument("-e",
|
||||
"--events",
|
||||
help="list of events to trigger switching split orientation; default: WINDOW MODE",
|
||||
nargs="*",
|
||||
type=str,
|
||||
default=["WINDOW", "MODE"])
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.debug and args.outputs:
|
||||
print("autotiling is only active on outputs:", ",".join(args.outputs))
|
||||
|
||||
if args.debug and args.workspaces:
|
||||
print("autotiling is only active on workspaces:", ','.join(args.workspaces))
|
||||
|
||||
# For use w/ nwg-panel
|
||||
ws_file = os.path.join(temp_dir(), "autotiling")
|
||||
if args.workspaces:
|
||||
save_string(','.join(args.workspaces), ws_file)
|
||||
else:
|
||||
if os.path.isfile(ws_file):
|
||||
os.remove(ws_file)
|
||||
|
||||
if not args.events:
|
||||
print("No events specified", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
handler = partial(
|
||||
switch_splitting,
|
||||
debug=args.debug,
|
||||
outputs=args.outputs,
|
||||
workspaces=args.workspaces,
|
||||
depth_limit=args.limit,
|
||||
)
|
||||
i3 = Connection()
|
||||
for e in args.events:
|
||||
try:
|
||||
i3.on(Event[e], handler)
|
||||
print("{} subscribed".format(Event[e]))
|
||||
except KeyError:
|
||||
print("'{}' is not a valid event".format(e), file=sys.stderr)
|
||||
|
||||
i3.main()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# execute only if run as a script
|
||||
main()
|
13
bin/backmeup
13
bin/backmeup
|
@ -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
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
GDK_BACKEND=x11 /usr/bin/dbeaver
|
|
@ -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()
|
||||
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
convert -background transparent "$1" -define icon:auto-resize=16,24,32,48,64,128,256 "$1.ico"
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Screenshot na waylandu!
|
||||
# DEPS: grim, slurp
|
||||
|
||||
DESTINATION=~/Slike/screenshots
|
||||
|
||||
FILENAME="screenshot-`date +%F-%T`"
|
||||
grim -g "$(slurp)" $DESTINATION/$FILENAME.png
|
||||
|
22
bin/vmpk-pa
22
bin/vmpk-pa
|
@ -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}"
|
||||
|
||||
|
15
checkbatt.sh
15
checkbatt.sh
|
@ -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
|
|
@ -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))
|
|
@ -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"
|
136
guix/config.scm
136
guix/config.scm
|
@ -1,136 +0,0 @@
|
|||
;; -*- mode: scheme; -*-
|
||||
;; This is an operating system configuration template
|
||||
;; for a "desktop" setup with GNOME and Xfce.
|
||||
|
||||
(use-modules (gnu)
|
||||
(gnu system nss)
|
||||
(guix utils)
|
||||
(nongnu packages linux)
|
||||
(nongnu system linux-initrd)
|
||||
(srfi srfi-1))
|
||||
(use-service-modules desktop xorg dns networking)
|
||||
(use-package-modules bootloaders certs shells ssh version-control emacs vim wm freedesktop xorg fontutils)
|
||||
|
||||
(operating-system
|
||||
(host-name "apnx")
|
||||
(timezone "Europe/Ljubljana")
|
||||
(locale "sl_SI.utf8")
|
||||
|
||||
;; Use the UEFI variant of GRUB with the EFI System
|
||||
;; Partition mounted on /boot/efi.
|
||||
(bootloader (bootloader-configuration
|
||||
(bootloader grub-efi-bootloader)
|
||||
(targets '("/boot/efi"))))
|
||||
|
||||
(kernel linux)
|
||||
(initrd microcode-initrd)
|
||||
(firmware (list linux-firmware))
|
||||
|
||||
(file-systems (cons* (file-system
|
||||
(device "/dev/sda3")
|
||||
(mount-point "/")
|
||||
(type "btrfs")
|
||||
(options "compress"))
|
||||
(file-system
|
||||
(device "/dev/sda2")
|
||||
(mount-point "/boot/efi")
|
||||
(type "vfat"))
|
||||
%base-file-systems))
|
||||
|
||||
(users (cons* (user-account
|
||||
(name "yuri")
|
||||
(comment "Yuri")
|
||||
(group "users")
|
||||
(supplementary-groups '("wheel" "netdev"
|
||||
"audio" "video"
|
||||
"dialout" "users"))
|
||||
(home-directory "/home/g1smo"))
|
||||
%base-user-accounts))
|
||||
|
||||
(packages (append (list (specification->package "i3-wm")
|
||||
(specification->package "i3status")
|
||||
(specification->package "dmenu")
|
||||
(specification->package "st")
|
||||
(specification->package "nss-certs")
|
||||
;; sistem
|
||||
(specification->package "lvm2")
|
||||
;; WM zadeve
|
||||
(specification->package "sway")
|
||||
(specification->package "swaybg")
|
||||
(specification->package "rofi")
|
||||
(specification->package "i3-autotiling")
|
||||
(specification->package "waybar")
|
||||
(specification->package "gammastep")
|
||||
(specification->package "kitty")
|
||||
(specification->package "eog")
|
||||
(specification->package "nautilus")
|
||||
;; Urejevalniki teksta
|
||||
(specification->package "emacs")
|
||||
(specification->package "vim")
|
||||
;; Razno
|
||||
(sepcification->package "zsh")
|
||||
(specification->package "git")
|
||||
(specification->package "file"))
|
||||
%base-packages))
|
||||
|
||||
|
||||
(services (cons* (service xfce-desktop-service-type)
|
||||
(service gnome-desktop-service-type)
|
||||
(service dnsmasq-service-type
|
||||
(dnsmasq-configuration
|
||||
(cache-size 1500)))
|
||||
(service network-manager-service-type
|
||||
(network-manager-configuration
|
||||
(dns "dnsmasq")))
|
||||
(service pam-limits-service-type
|
||||
(list
|
||||
(pam-limits-entry "@audio" 'both 'rtprio 99)
|
||||
(pam-limits-entry "@audio" 'both 'memlock 'unlimited)))
|
||||
|
||||
(remove
|
||||
(lambda (service)
|
||||
(eq? network-manager-service-type (service-kind service)))
|
||||
%desktop-services)))
|
||||
|
||||
(swap-devices (list (swap-space
|
||||
(target (uuid
|
||||
"76019829-e8eb-477c-a08a-d2ccff3fcdd5")))))
|
||||
;(mapped-devices (list (mapped-device
|
||||
; (source (uuid
|
||||
; "52c83c72-c391-4a71-8405-897603f61363"))
|
||||
; (target "gpnx-root")
|
||||
; (type luks-device-mapping))
|
||||
; (mapped-device
|
||||
; (source (uuid
|
||||
; "3020ad8b-ee01-49e2-8a46-3f66c902ef67"))
|
||||
; (target "dbn-home")
|
||||
; (type luks-device-mapping))
|
||||
; (mapped-device
|
||||
; (source "dbn-vg")
|
||||
; (targets (list "home"))
|
||||
; (type lvm-device-mapping))
|
||||
; ))
|
||||
|
||||
;; Allow resolution of '.local' host names with mDNS.
|
||||
(name-service-switch %mdns-host-lookup-nss)
|
||||
|
||||
(file-systems (cons* (file-system
|
||||
(mount-point "/")
|
||||
(device "/dev/mapper/gpnx-root")
|
||||
(type "ext4")
|
||||
(dependencies mapped-devices))
|
||||
(file-system
|
||||
(mount-point "/boot")
|
||||
(device (uuid "65689a28-4afb-4c40-9ff2-2a0df1168a86"))
|
||||
(type "ext2"))
|
||||
(file-system
|
||||
(mount-point "/boot/efi")
|
||||
(device (uuid "3F44-75AB"
|
||||
'fat16))
|
||||
(type "vfat"))
|
||||
;(file-system
|
||||
;(mount-point "/home/g1smo/dbn")
|
||||
;(device "/dev/mapper/dbn-home")
|
||||
;(type "ext4")
|
||||
;(dependencies mapped-devices))
|
||||
%base-file-systems)))
|
|
@ -1,7 +0,0 @@
|
|||
# ~/.bash_logout: executed by bash(1) when login shell exits.
|
||||
|
||||
# when leaving the console clear the screen to increase privacy
|
||||
|
||||
if [ "$SHLVL" = 1 ]; then
|
||||
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
|
||||
fi
|
|
@ -1,113 +0,0 @@
|
|||
# ~/.bashrc: executed by bash(1) for non-login shells.
|
||||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||
# for examples
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
HISTCONTROL=ignoreboth
|
||||
|
||||
# append to the history file, don't overwrite it
|
||||
shopt -s histappend
|
||||
|
||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||
HISTSIZE=1000
|
||||
HISTFILESIZE=2000
|
||||
|
||||
# check the window size after each command and, if necessary,
|
||||
# update the values of LINES and COLUMNS.
|
||||
shopt -s checkwinsize
|
||||
|
||||
# If set, the pattern "**" used in a pathname expansion context will
|
||||
# match all files and zero or more directories and subdirectories.
|
||||
#shopt -s globstar
|
||||
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
|
||||
# set variable identifying the chroot you work in (used in the prompt below)
|
||||
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
||||
debian_chroot=$(cat /etc/debian_chroot)
|
||||
fi
|
||||
|
||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||
case "$TERM" in
|
||||
xterm-color|*-256color) color_prompt=yes;;
|
||||
esac
|
||||
|
||||
# uncomment for a colored prompt, if the terminal has the capability; turned
|
||||
# off by default to not distract the user: the focus in a terminal window
|
||||
# should be on the output of commands, not on the prompt
|
||||
#force_color_prompt=yes
|
||||
|
||||
if [ -n "$force_color_prompt" ]; then
|
||||
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
|
||||
# We have color support; assume it's compliant with Ecma-48
|
||||
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
|
||||
# a case would tend to support setf rather than setaf.)
|
||||
color_prompt=yes
|
||||
else
|
||||
color_prompt=
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
else
|
||||
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
|
||||
fi
|
||||
unset color_prompt force_color_prompt
|
||||
|
||||
# If this is an xterm set the title to user@host:dir
|
||||
case "$TERM" in
|
||||
xterm*|rxvt*)
|
||||
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
#alias dir='dir --color=auto'
|
||||
#alias vdir='vdir --color=auto'
|
||||
|
||||
#alias grep='grep --color=auto'
|
||||
#alias fgrep='fgrep --color=auto'
|
||||
#alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
# colored GCC warnings and errors
|
||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||
|
||||
# some more ls aliases
|
||||
#alias ll='ls -l'
|
||||
#alias la='ls -A'
|
||||
#alias l='ls -CF'
|
||||
|
||||
# Alias definitions.
|
||||
# You may want to put all your additions into a separate file like
|
||||
# ~/.bash_aliases, instead of adding them here directly.
|
||||
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||
|
||||
if [ -f ~/.bash_aliases ]; then
|
||||
. ~/.bash_aliases
|
||||
fi
|
||||
|
||||
# enable programmable completion features (you don't need to enable
|
||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||
# sources /etc/bash.bashrc).
|
||||
if ! shopt -oq posix; then
|
||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||
. /usr/share/bash-completion/bash_completion
|
||||
elif [ -f /etc/bash_completion ]; then
|
||||
. /etc/bash_completion
|
||||
fi
|
||||
fi
|
|
@ -1,107 +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 shells)
|
||||
(gnu home services pm))
|
||||
|
||||
(home-environment
|
||||
;; Below is the list of packages that will show up in your
|
||||
;; Home profile, under ~/.guix-home/profile.
|
||||
(packages (specifications->packages (list "element-desktop"
|
||||
"emacs-next-pgtk-xwidgets"
|
||||
"nyxt"
|
||||
"gnome-tweaks"
|
||||
"calibre"
|
||||
"arc-theme"
|
||||
"nautilus"
|
||||
"thunar"
|
||||
"numix-gtk-theme"
|
||||
"wine64"
|
||||
"guile-goblins"
|
||||
"xdg-desktop-portal"
|
||||
"transmission:gui"
|
||||
"transmission"
|
||||
"nicotine+"
|
||||
"gammastep"
|
||||
"hyprland"
|
||||
"mako"
|
||||
"gimp-resynthesizer"
|
||||
"gzdoom"
|
||||
"irssi"
|
||||
"gnubg"
|
||||
"freegish"
|
||||
"eog"
|
||||
"qpwgraph"
|
||||
"libreoffice"
|
||||
"evince"
|
||||
"krita"
|
||||
"kigo"
|
||||
"keepassxc"
|
||||
"gedit"
|
||||
"gimp"
|
||||
"seahorse"
|
||||
"pavucontrol"
|
||||
"guile-chickadee"
|
||||
"inkscape"
|
||||
"pipewire"
|
||||
"gdk-pixbuf-xlib"
|
||||
"i3status"
|
||||
"kitty"
|
||||
"mesa-utils"
|
||||
"mesa"
|
||||
"foot"
|
||||
"i3-wm"
|
||||
"tumbler"
|
||||
"gdk-pixbuf"
|
||||
"mu"
|
||||
"rust"
|
||||
"sway"
|
||||
"rofi-wayland"
|
||||
"xorg-server-xwayland"
|
||||
"non-mixer"
|
||||
"swaybg"
|
||||
"gnupg"
|
||||
"wfetch"
|
||||
"emacs-next-pgtk"
|
||||
"guile3-dbd-mysql"
|
||||
"artanis"
|
||||
"texlive-etbb"
|
||||
"hyfetch"
|
||||
"guile3-dbd-sqlite3"
|
||||
"guile3-dbi"
|
||||
"surfraw"
|
||||
"valgrind"
|
||||
"guile-readline"
|
||||
"emacs-scel"
|
||||
"xxd"
|
||||
"basu"
|
||||
"icedove-wayland"
|
||||
"icedove-l10n:sl"
|
||||
"guile"
|
||||
"nss-certs"
|
||||
"glibc-locales")))
|
||||
|
||||
;; Below is the list of Home services. To search for available
|
||||
;; services, run 'guix home search KEYWORD' in a terminal.
|
||||
(services
|
||||
(list (service home-bash-service-type
|
||||
(home-bash-configuration
|
||||
(aliases '(("ls" . "ls --color=auto")))
|
||||
(bashrc (list (local-file ".bashrc" "bashrc")))
|
||||
(bash-logout (list (local-file ".bash_logout"
|
||||
"bash_logout")))))
|
||||
(service home-batsignal-service-type)
|
||||
(service home-redshift-service-type
|
||||
(home-redshift-configuration
|
||||
(location-provider 'manual)
|
||||
(latitude 46.05108)
|
||||
(longitude 14.50513)))
|
||||
(service home-dbus-configuration)
|
||||
(service home-pipewire-service-type)))
|
|
@ -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"))
|
|
@ -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 "")))
|
|
@ -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
29
init.sh
|
@ -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
|
BIN
ozadje.jpg
BIN
ozadje.jpg
Binary file not shown.
Before Width: | Height: | Size: 559 KiB |
BIN
ozadje2.jpg
BIN
ozadje2.jpg
Binary file not shown.
Before Width: | Height: | Size: 658 KiB |
BIN
ozadje3.jpg
BIN
ozadje3.jpg
Binary file not shown.
Before Width: | Height: | Size: 3.1 MiB |
BIN
ozadje4.jpg
BIN
ozadje4.jpg
Binary file not shown.
Before Width: | Height: | Size: 538 KiB |
92
povezi.sh
92
povezi.sh
|
@ -1,94 +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
|
||||
ln -s "$DIR/.i3status.conf" ~/.i3status.conf
|
||||
|
||||
# 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
|
||||
ln -s "$DIR/bin/autotiling.py" ~/bin/autotiling.py
|
||||
|
||||
# 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/projectile-bookmarks.eld" ~/.emacs.d/projectile-bookmarks.eld
|
||||
ln -s "$DIR/.emacs.d/bookmarks" ~/.emacs.d/bookmarks
|
||||
|
||||
# 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
|
||||
|
|
Loading…
Reference in New Issue