diff --git a/emacs/.emacs b/emacs/.emacs index ec108a4..01759e1 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -91,12 +91,13 @@ ;;(setq display-line-numbers-type "%d|") ;; Configs for GTK -(set-frame-font "Monospace-11" nil t) +(set-frame-font "Monospace-13" nil t) (set-cursor-color "LightGoldenrod1") (tool-bar-mode 0) (scroll-bar-mode 0) (menu-bar-mode 0) (server-start) +(toggle-frame-maximized) ;; Configure dumb-jump (dumb-jump-mode) diff --git a/script/.local/bin/battmux b/script/.local/bin/battmux index 3efa786..f55bca5 100755 --- a/script/.local/bin/battmux +++ b/script/.local/bin/battmux @@ -15,8 +15,8 @@ icon="$( ~/scripts/get_xres color2 )" fg="$( ~/scripts/get_xres color7 )" bat_status="" -bat_status=$( cat /sys/class/power_supply/BAT1/capacity ) -charging_status=$( cat /sys/class/power_supply/BAT1/status ) +bat_status=$( cat /sys/class/power_supply/BAT0/capacity ) +charging_status=$( cat /sys/class/power_supply/BAT0/status ) health() { for i in {0..4} diff --git a/script/.local/share/applications/darktable.desktop b/script/.local/share/applications/darktable.desktop new file mode 100755 index 0000000..e17dfa4 --- /dev/null +++ b/script/.local/share/applications/darktable.desktop @@ -0,0 +1,88 @@ +[Desktop Entry] +Categories=Graphics;Photography;GTK; +Comment[en_US]=Organize and develop images from digital cameras +Comment=Organize and develop images from digital cameras +Comment[ca]=Organitza i revela imatges de càmeres digitals +Comment[cs]=Správa a vyvolávání snímků z digitálních fotoaparátů +Comment[da]=organisér og fremkald billeder fra digitale kameraer +Comment[de]=Organisiere und entwickle Bilder von Digitalkameras +Comment[el]=οργανώστε και εμφανίστε εικόνες απο ψηφιακές μηχανές +Comment[es]=Revele y organice las imágenes de cámaras digitales +Comment[fi]=Hallinnoi ja kehitä digitaalikameroilla otettuja valokuvia. +Comment[fr]=Organiser et développer les images d'un boîtier numérique +Comment[he]=ארגן ופתח תמונות ממצלמות דיגיטליות +Comment[hu]=Digitális fényképező képeinek rendezése, kidolgozása +Comment[it]=Organizza e sviluppa le immagini della tua fotocamera digitale +Comment[ja]=デジタルカメラ画像の現像と整理 +Comment[nb]=Organiser og fremkall bilder fra digitale kamera +Comment[nl]=organiseer en ontwikkel afbeeldingen van digitale camera's +Comment[pl]=Organizuj i obrabiaj zdjęcia z aparatów cyfrowych +Comment[pt_BR]=Organiza e revela imagens de câmeras digitais +Comment[ru]=Организация и обработка цифровых фотографий +Comment[sk]=Organizuje a vyvoláva obrázky z digitálnych fotoaprátov +Comment[sl]=Organizira in razvija slike digitalnih kamer +Comment[sq]=organizoni dhe zhvilloni imazhet nga fotoaparatet +Comment[sv]=Organisera och utveckla bilder från digitalkameror +Exec=/home/ericonr/.local/bin/darktable-launcher %U +GenericName[en_US]=Virtual Lighttable and Darkroom +GenericName=Virtual Lighttable and Darkroom +GenericName[ca]=Taula de llum i Cambra fosca virtuals +GenericName[cs]=Virtuální prosvětlovací pult a fotokomora +GenericName[da]=Virtuelt lysbord og mørkekammer +GenericName[de]=Virtueller Leuchttisch und Dunkelkammer +GenericName[el]=Virtual Lighttable and Darkroom +GenericName[es]=Mesa de Luz y Cuarto Oscuro Virtuales +GenericName[fi]=Virtuaalinen valopöytä ja pimiö. +GenericName[fr]=Table Lumineuse et Chambre Noire virtuelles +GenericName[he]=שולחן אור וחדר חושך וירטואלי +GenericName[hu]=Virtuális átvilágító és sötétkamra +GenericName[it]=Tavolo luminoso e camera oscura virtuali +GenericName[ja]=Virtual Lighttable and Darkroom +GenericName[nb]=Virtuelt lysbord og mørkerom +GenericName[nl]=virtuele bibliotheek en donkere kamer +GenericName[pl]=Wirtualny Stół Podświetlany i Ciemnia +GenericName[pt_BR]=Mesa de Luz e Sala Escura Virtuais +GenericName[ru]=Виртуальный световой стол и фоторедактор +GenericName[sk]=Virtuálny presvetľovací pult a fotokomora +GenericName[sl]=Virtualna osvetljena podlaga in temnica +GenericName[sq]=Fototekë dhe Dhomë e Errët Virtuale +GenericName[sv]=Virtuellt ljusbord och mörkerrum +Icon=darktable +Keywords=graphics;photography;raw; +Keywords[ca]=graphics;photography;raw; +Keywords[cs]=grafika;fotografie;raw; +Keywords[da]=grafik;fotografi;raw; +Keywords[de]=Graphik;Grafik;Photographie;Fotografie;Raw; +Keywords[el]=graphics;photography;raw; +Keywords[es]=gráficos;fotografía;raw; +Keywords[fi]=Grafiikka;Valokuvaus;RAW; +Keywords[fr]=graphisme;photographie;raw; +Keywords[he]=גרפיקה;צילום;raw; +Keywords[hu]=grafika;fénykép;fotó;raw; +Keywords[it]=grafica;fotografia;raw; +Keywords[ja]=graphics;photography;raw; +Keywords[nb]=grafikk;fotografering;raw; +Keywords[nl]=grafische vormgeving;fotografie;raw; +Keywords[pl]=grafika;fotografia;raw; +Keywords[pt_BR]=gráfico;fotografia;raw; +Keywords[ru]=graphics;photography;raw; +Keywords[sk]=grafika;fotografovanie;fotografie;raw;surový; +Keywords[sl]=grafika;fotografije;surove; +Keywords[sq]=graphics;photography;raw; +Keywords[sv]=grafik;fotografi;rå; +MimeType=image/x-portable-pixmap;image/x-exr;image/x-dcraw;image/tiff;image/png;image/jpeg;image/jp2; +Name[en_US]=Darktable +Name=Darktable +Path= +StartupNotify=true +Terminal=false +TerminalOptions= +TryExec=/usr/bin/darktable +Type=Application +Version=1.0 +X-DBUS-ServiceName= +X-DBUS-StartupType= +X-GNOME-FullName=Darktable Photo Workflow Software +X-KDE-SubstituteUID=false +X-KDE-Username= +X-Unity-IconBackgroundColor=#252525 diff --git a/script/.local/share/applications/deezer.desktop b/script/.local/share/applications/deezer.desktop new file mode 100755 index 0000000..e159053 --- /dev/null +++ b/script/.local/share/applications/deezer.desktop @@ -0,0 +1,12 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Type=Application +Name=Deezer +GenericName=A proprietary music streaming service +Comment=Graphical interface to Deezer audio streaming service. +Icon=/usr/share/deezer/app.ico +Exec=deezer +Terminal=false +Categories=Multimedia +StartupNotify=false + diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 7e249b5..b6d01ae 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -10,7 +10,7 @@ new-window -tstandard -n browser links duckduckgo.com new-window -tstandard -n multishell split-window -h htop -split-window -v cmus +split-window -v select-pane -tstandard:multishell.0 split-window -v diff --git a/wm/.config/sway/config b/wm/.config/sway/config deleted file mode 120000 index cc5e618..0000000 --- a/wm/.config/sway/config +++ /dev/null @@ -1 +0,0 @@ -../i3/config \ No newline at end of file diff --git a/wm/.config/sway/config b/wm/.config/sway/config new file mode 100644 index 0000000..a959b12 --- /dev/null +++ b/wm/.config/sway/config @@ -0,0 +1,227 @@ +# This file has been auto-generated by i3-config-wizard(1). +# It will not be overwritten, so edit it as you like. +# +# Should you change your keyboard layout some time, delete +# this file and re-run i3-config-wizard(1). +# + +# i3 config file (v4) +# +# Please see https://i3wm.org/docs/userguide.html for a complete reference! + +set $mod Mod4 + +# Font for window titles. Will also be used by the bar unless a different font +# is used in the bar {} block below. +font pango:monospace 8 + +# This font is widely installed, provides lots of unicode glyphs, right-to-left +# text rendering and scalability on retina/hidpi displays (thanks to pango). +#font pango:DejaVu Sans Mono 8 + +# Before i3 v4.8, we used to recommend this one as the default: +# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 +# The font above is very space-efficient, that is, it looks good, sharp and +# clear in small sizes. However, its unicode glyph coverage is limited, the old +# X core fonts rendering does not support right-to-left and this being a bitmap +# font, it doesn’t scale on retina/hidpi displays. + +# gaps conf +for_window [class=".*"] border pixel 0 +gaps outer 2 +gaps inner 4 +#smart_gaps on + +# quick launch +bindsym $mod+t exec --no-startup-id alacritty -e tmux +bindsym $mod+Shift+w exec --no-startup-id launch_browsers +bindsym $mod+Shift+f exec --no-startup-id dolphin + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# start a terminal +bindsym $mod+Return exec --no-startup-id alacritty + +# kill focused window +bindsym $mod+Shift+q kill + +# start dmenu (a program launcher) +# bindsym $mod+d exec dmenu_run +# There also is the (new) i3-dmenu-desktop which only displays applications +# shipping a .desktop file. It is a wrapper around dmenu, so you need that +# installed. +bindsym $mod+d exec --no-startup-id dmenu + +# change focus +bindsym $mod+h focus left +bindsym $mod+j focus down +bindsym $mod+k focus up +bindsym $mod+l focus right + +# alternatively, you can use the cursor keys: +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# move focused window +bindsym $mod+Shift+h move left +bindsym $mod+Shift+j move down +bindsym $mod+Shift+k move up +bindsym $mod+Shift+l move right + +# alternatively, you can use the cursor keys: +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +# split in horizontal orientation +bindsym $mod+g split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+q layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# toggle tiling / floating +bindsym $mod+Shift+space floating toggle + +# change focus between tiling / floating windows +bindsym $mod+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +#bindsym $mod+d focus child + +# Define names for default workspaces for which we configure key bindings later on. +# We use variables to avoid repeating the names in multiple places. +set $ws1 "1" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" +set $ws11 "media" +set $ws12 "nwork" +set $ws13 "brow" +set $ws14 "pdf" +set $ws16 "og" + +# switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 +bindsym $mod+0 workspace $ws10 +bindsym $mod+m workspace $ws11 +bindsym $mod+n workspace $ws12 +bindsym $mod+b workspace $ws13 +bindsym $mod+p workspace $ws14 +bindsym $mod+o workspace $ws16 + +# move focused container to workspace +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9 +bindsym $mod+Shift+0 move container to workspace $ws10 +bindsym $mod+Shift+m move container to workspace $ws11 +bindsym $mod+Shift+n move container to workspace $ws12 +bindsym $mod+Shift+b move container to workspace $ws13 +bindsym $mod+Shift+p move container to workspace $ws14 +bindsym $mod+Shift+o move container to workspace $ws16 + +# reload the configuration file +bindsym $mod+Shift+c reload +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) +bindsym $mod+Shift+r restart +# exit i3 (logs you out of your X session) +bindsym $mod+Shift+x exec "swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -B 'Yes, exit sway' 'swaymsg exit'" + +# resize window (you can also use the mouse for that) +mode "resize" { + # These bindings trigger as soon as you enter the resize mode + + # Pressing left will shrink the window’s width. + # Pressing right will grow the window’s width. + # Pressing up will shrink the window’s height. + # Pressing down will grow the window’s height. + bindsym h resize shrink width 5 px or 5 ppt + bindsym j resize grow height 5 px or 5 ppt + bindsym k resize shrink height 5 px or 5 ppt + bindsym l resize grow width 5 px or 5 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 5 px or 5 ppt + bindsym Down resize grow height 5 px or 5 ppt + bindsym Up resize shrink height 5 px or 5 ppt + bindsym Right resize grow width 5 px or 5 ppt + + # back to normal: Enter or Escape or $mod+r + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym $mod+r mode "default" +} + +bindsym $mod+r mode "resize" + +# Start i3bar to display a workspace bar (plus the system information i3status +# finds out, if available) +bar { + status_command i3status + #status_command polybar example +} + +input "1739:31251:SYNA2393:00_06CB:7A13_Touchpad" { + tap enabled + natural_scroll enabled +} + +# music +exec --no-startup-id "i3-msg 'workspace media; layout tabbed'" +for_window [class="spotify"] move container to workspace $ws11 + +# work +exec --no-startup-id "i3-msg 'workspace nwork; layout tabbed'" +assign [class="Kicad"] $ws12 +assign [title="CubeMX"] $ws12 + +# pdf +exec --no-startup-id "i3-msg 'workspace pdf; layout tabbed'" +assign [class="okular"] $ws14 + +for_window [title="Desktop — Plasma"] kill; +for_window [class="plasmashell"] floating enable; +for_window [class="Plasma"] floating enable; +for_window [title="plasma-desktop"] floating enable; +for_window [title="win7"] floating enable; +for_window [class="krunner"] floating enable; +for_window [class="Kmix"] floating enable; border none +for_window [class="konsole"] floating enable; +#for_window [class="Klipper"] floating enable; border none +for_window [class="Plasmoidviewer"] floating enable; border none +#for_window [class="(?i)*nextcloud*"] floating disable