From 292de4b25c8398d623ec44b669b82be89da11f61 Mon Sep 17 00:00:00 2001 From: OpexHunter Date: Sun, 16 Mar 2025 21:22:11 +0300 Subject: [PATCH] init --- config | 244 ++++++++++++++++++++++++++++++ manager/scripts/bar-toggle | 14 ++ manager/scripts/brightness | 33 ++++ manager/scripts/fullscreen | 20 +++ manager/scripts/volume | 35 +++++ manager/workspace-manager | 75 +++++++++ manager/workspaces/blackeducation | 23 +++ manager/workspaces/main | 34 +++++ manager/workspaces/obsidian_fix | 6 + manager/workspaces/pivodevat | 26 ++++ manager/workspaces/punkcraft | 51 +++++++ 11 files changed, 561 insertions(+) create mode 100644 config create mode 100755 manager/scripts/bar-toggle create mode 100755 manager/scripts/brightness create mode 100755 manager/scripts/fullscreen create mode 100755 manager/scripts/volume create mode 100755 manager/workspace-manager create mode 100755 manager/workspaces/blackeducation create mode 100755 manager/workspaces/main create mode 100755 manager/workspaces/obsidian_fix create mode 100755 manager/workspaces/pivodevat create mode 100755 manager/workspaces/punkcraft diff --git a/config b/config new file mode 100644 index 0000000..ad5bb93 --- /dev/null +++ b/config @@ -0,0 +1,244 @@ +# This file has been auto-generated by i3-config-wizard(1). +# 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 +for_window [class=".*"] border none + +# 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 + +# Start XDG autostart .desktop files using dex. See also +# https://wiki.archlinux.org/index.php/XDG_Autostart +exec --no-startup-id dex --autostart --environment i3 + +# The combination of xss-lock, nm-applet and pactl is a popular choice, so +# they are included here as an example. Modify as you see fit. + +# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the +# screen before suspend. Use loginctl lock-session to lock your screen. +exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork + +# NetworkManager is the most popular way to manage wireless networks on Linux, +# and nm-applet is a desktop environment-independent system tray GUI for it. +exec --no-startup-id nm-applet + +# Use pactl to adjust volume in PulseAudio. +set $refresh_i3status killall -SIGUSR1 i3status +bindsym XF86AudioRaiseVolume exec --no-startup-id ~/.config/i3/manager/scripts/volume + && $refresh_i3status +bindsym XF86AudioLowerVolume exec --no-startup-id ~/.config/i3/manager/scripts/volume - && $refresh_i3status +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status +bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status + +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + +# move tiling windows via drag & drop by left-clicking into the title bar, +# or left-clicking anywhere into the window while holding the floating modifier. +tiling_drag modifier titlebar + +# start a terminal +bindsym Ctrl+Mod1+t exec i3-sensible-terminal + + + + + +# kill focused window +bindsym Mod1+F4 kill + + + + + +# start dmenu (a program launcher) +bindsym $mod+d exec --no-startup-id dmenu_run +# A more modern dmenu replacement is rofi: +# bindcode $mod+40 exec "rofi -modi drun,run -show drun" +# There also is i3-dmenu-desktop which only displays applications shipping a +# .desktop file. It is a wrapper around dmenu, so you need that installed. +# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon 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+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon 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+h split h + +# split in vertical orientation +bindsym $mod+v split v + +# enter fullscreen mode for the focused container +bindsym $mod+f fullscreen toggle +bindsym $mod+b exec --no-startup-id ~/.config/i3/manager/scripts/bar-toggle + +# change container layout (stacked, tabbed, toggle split) +bindsym $mod+s 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 + +# switch to workspace and set layout to English +bindsym $mod+1 exec --no-startup-id ~/.config/i3/manager/workspace-manager 1 +bindsym $mod+2 exec --no-startup-id ~/.config/i3/manager/workspace-manager 2 +bindsym $mod+3 exec --no-startup-id ~/.config/i3/manager/workspace-manager 3 +bindsym $mod+4 exec --no-startup-id ~/.config/i3/manager/workspace-manager 4 +bindsym $mod+5 exec --no-startup-id ~/.config/i3/manager/workspace-manager 5 +bindsym $mod+6 exec --no-startup-id ~/.config/i3/manager/workspace-manager 6 +bindsym $mod+7 exec --no-startup-id ~/.config/i3/manager/workspace-manager 7 +bindsym $mod+8 exec --no-startup-id ~/.config/i3/manager/workspace-manager 8 +bindsym $mod+9 exec --no-startup-id ~/.config/i3/manager/workspace-manager 9 +bindsym $mod+0 exec --no-startup-id ~/.config/i3/manager/workspace-manager 0 +bindsym $mod+F1 exec --no-startup-id ~/.config/i3/manager/workspace-manager F1 +bindsym $mod+F2 exec --no-startup-id ~/.config/i3/manager/workspace-manager F2 +bindsym $mod+F3 exec --no-startup-id ~/.config/i3/manager/workspace-manager F3 +bindsym $mod+F4 exec --no-startup-id ~/.config/i3/manager/workspace-manager F4 +bindsym $mod+F5 exec --no-startup-id ~/.config/i3/manager/workspace-manager F5 +bindsym $mod+F6 exec --no-startup-id ~/.config/i3/manager/workspace-manager F6 +bindsym $mod+F7 exec --no-startup-id ~/.config/i3/manager/workspace-manager F7 +bindsym $mod+F8 exec --no-startup-id ~/.config/i3/manager/workspace-manager F8 +bindsym $mod+F9 exec --no-startup-id ~/.config/i3/manager/workspace-manager F9 +bindsym $mod+F10 exec --no-startup-id ~/.config/i3/manager/workspace-manager F10 +bindsym $mod+F11 exec --no-startup-id ~/.config/i3/manager/workspace-manager F11 +bindsym $mod+F12 exec --no-startup-id ~/.config/i3/manager/workspace-manager F12 + + + +#shift Shift_L (0x32), Shift_R (0x3e) #lock Caps_Lock (0x42) #control Control_L (0x25), Control_R (0x69) #mod1 Alt_L (0x40), Alt_R (0x6c), Alt_L (0xcc), Meta_L (0xcd) #mod2 Num_Lock (0x4d) #mod3 ISO_Level5_Shift (0xcb) #mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf) #mod5 ISO_Level3_Shift (0x5c) + + +# brightness +bindsym XF86MonBrightnessUp exec --no-startup-id ~/.config/i3/manager/scripts/brightness + +bindsym XF86MonBrightnessDown exec --no-startup-id ~/.config/i3/manager/scripts/brightness - + +# Custom binds +bindsym $mod+Shift+s exec flameshot gui +bindsym $mod+Right workspace next +bindsym $mod+Left workspace prev + +# Startup +exec --no-startup-id echo "1" > /tmp/f_key_number +exec i3-msg 'workspace 11' +# Workspaces autorun example (if need see this files) +#exec --no-startup-id ~/.config/i3/manager/workspaces/main 1 +#exec --no-startup-id ~/.config/i3/manager/workspaces/pivodevat 2 +#exec --no-startup-id ~/.config/i3/manager/workspaces/blackeducation 3 +#exec --no-startup-id ~/.config/i3/manager/workspaces/punkcraft 4 +#exec --no-startup-id ~/.config/i3/manager/scripts/fullscreen +# + + +# Dynamic assign modules (edit in ~/.config/i3/manager/workspaces) +# dynAssign-workspace1 start +# dynAssign-workspace1 end + + +# move focused container to workspace +bindsym $mod+Shift+1 exec --no-startup-id ~/.config/i3/manager/workspace-manager 1 move +bindsym $mod+Shift+2 exec --no-startup-id ~/.config/i3/manager/workspace-manager 2 move +bindsym $mod+Shift+3 exec --no-startup-id ~/.config/i3/manager/workspace-manager 3 move +bindsym $mod+Shift+4 exec --no-startup-id ~/.config/i3/manager/workspace-manager 4 move +bindsym $mod+Shift+5 exec --no-startup-id ~/.config/i3/manager/workspace-manager 5 move +bindsym $mod+Shift+6 exec --no-startup-id ~/.config/i3/manager/workspace-manager 6 move +bindsym $mod+Shift+7 exec --no-startup-id ~/.config/i3/manager/workspace-manager 7 move +bindsym $mod+Shift+8 exec --no-startup-id ~/.config/i3/manager/workspace-manager 8 move +bindsym $mod+Shift+9 exec --no-startup-id ~/.config/i3/manager/workspace-manager 9 move +bindsym $mod+Shift+0 exec --no-startup-id ~/.config/i3/manager/workspace-manager 0 move +bindsym $mod+Shift+F1 exec --no-startup-id ~/.config/i3/manager/workspace-manager F1 move +bindsym $mod+Shift+F2 exec --no-startup-id ~/.config/i3/manager/workspace-manager F2 move +bindsym $mod+Shift+F3 exec --no-startup-id ~/.config/i3/manager/workspace-manager F3 move +bindsym $mod+Shift+F4 exec --no-startup-id ~/.config/i3/manager/workspace-manager F4 move +bindsym $mod+Shift+F5 exec --no-startup-id ~/.config/i3/manager/workspace-manager F5 move +bindsym $mod+Shift+F6 exec --no-startup-id ~/.config/i3/manager/workspace-manager F6 move +bindsym $mod+Shift+F7 exec --no-startup-id ~/.config/i3/manager/workspace-manager F7 move +bindsym $mod+Shift+F8 exec --no-startup-id ~/.config/i3/manager/workspace-manager F8 move +bindsym $mod+Shift+F9 exec --no-startup-id ~/.config/i3/manager/workspace-manager F9 move +bindsym $mod+Shift+F10 exec --no-startup-id ~/.config/i3/manager/workspace-manager F10 move +bindsym $mod+Shift+F11 exec --no-startup-id ~/.config/i3/manager/workspace-manager F11 move +bindsym $mod+Shift+F12 exec --no-startup-id ~/.config/i3/manager/workspace-manager F12 move + +# 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 Ctrl+Mod1+Delete exec "i3-nagbar -t warning -m 'Are you sure you want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg 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 j resize shrink width 10 px or 10 ppt + bindsym k resize grow height 10 px or 10 ppt + bindsym l resize shrink height 10 px or 10 ppt + bindsym semicolon resize grow width 10 px or 10 ppt + + # same bindings, but for the arrow keys + bindsym Left resize shrink width 10 px or 10 ppt + bindsym Down resize grow height 10 px or 10 ppt + bindsym Up resize shrink height 10 px or 10 ppt + bindsym Right resize grow width 10 px or 10 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 + mode invisible + #hidden_state hide + font pango:SourceCodeVF Black 15 +} diff --git a/manager/scripts/bar-toggle b/manager/scripts/bar-toggle new file mode 100755 index 0000000..438ba28 --- /dev/null +++ b/manager/scripts/bar-toggle @@ -0,0 +1,14 @@ +#!/bin/bash + +# Получаем конфигурацию i3bar +bar_config=$(i3-msg -t get_bar_config "bar-0") + +# Извлекаем значение параметра mode +mode=$(echo "$bar_config" | jq -r '.mode') + +# Проверяем текущее состояние и переключаем режим +if [ "$mode" == "dock" ]; then + i3-msg "bar mode invisible" +elif [ "$mode" == "invisible" ]; then + i3-msg "bar mode dock" +fi diff --git a/manager/scripts/brightness b/manager/scripts/brightness new file mode 100755 index 0000000..9f33368 --- /dev/null +++ b/manager/scripts/brightness @@ -0,0 +1,33 @@ +#!/bin/bash + +# Уникальный идентификатор для уведомления +NOTIFICATION_ID=9999 + +# Получаем текущий уровень яркости +CURRENT_BRIGHTNESS=$(brightnessctl g) + +# Получаем максимальный уровень яркости +MAX_BRIGHTNESS=$(brightnessctl m) + +# Вычисляем текущий уровень яркости в процентах +CURRENT_BRIGHTNESS_PERCENT=$((CURRENT_BRIGHTNESS * 100 / MAX_BRIGHTNESS)) + +# Проверяем переданный параметр +if [ "$1" == "+" ]; then + # Увеличиваем яркость на 10% + brightnessctl set +1% +elif [ "$1" == "-" ]; then + # Уменьшаем яркость на 10% + brightnessctl set 10%- +else + # Если параметр некорректный, выводим сообщение об ошибке + notify-send -u normal -r $NOTIFICATION_ID "Ошибка" "Неверный параметр. Используйте '+' или '-'." + exit 1 +fi + +# Получаем обновленный уровень яркости +UPDATED_BRIGHTNESS=$(brightnessctl g) +UPDATED_BRIGHTNESS_PERCENT=$((UPDATED_BRIGHTNESS * 100 / MAX_BRIGHTNESS)) + +# Отправляем уведомление с текущим уровнем яркости +notify-send -u normal -i display-brightness-high -r $NOTIFICATION_ID "Уровень яркости" "${UPDATED_BRIGHTNESS_PERCENT}%" diff --git a/manager/scripts/fullscreen b/manager/scripts/fullscreen new file mode 100755 index 0000000..5722d23 --- /dev/null +++ b/manager/scripts/fullscreen @@ -0,0 +1,20 @@ +#!/bin/bash +xrandr --output eDP --off +sleep 7 + +i3-msg 'bar mode dock' + +xdotool windowactivate --sync $(xdotool search --class "chromium-main" | sort -n | head -n 1) key F11 +xdotool windowactivate --sync $(xdotool search --class "chromium-invest" | sort -n | head -n 1) key F11 +xdotool windowactivate --sync $(xdotool search --class "chromium-media" | sort -n | head -n 1) key F11 +xdotool windowactivate --sync $(xdotool search --class "chromium-blackeducation" | sort -n | head -n 1) key F11 +xdotool windowactivate --sync $(xdotool search --class "chromium-punkcraft" | sort -n | head -n 1) key F11 + +xdotool windowactivate --sync $(xdotool search --name ".* - База знаний - Obsidian.*" | sort -n | head -n 1) key F11 +xdotool windowactivate --sync $(xdotool search --name ".* - PIVODEVAT - Obsidian.*" | sort -n | head -n 1) key F11 +xdotool windowactivate --sync $(xdotool search --name ".* - Black Education - Obsidian.*" | sort -n | head -n 1) key F11 +xdotool windowactivate --sync $(xdotool search --name ".* - PunkCraft - Obsidian.*" | sort -n | head -n 1) key F11 + +i3-msg 'bar mode invisible' +i3-msg 'workspace 20' +xrandr --output eDP --auto diff --git a/manager/scripts/volume b/manager/scripts/volume new file mode 100755 index 0000000..72f42e2 --- /dev/null +++ b/manager/scripts/volume @@ -0,0 +1,35 @@ +#!/bin/bash + +# Максимальный уровень громкости (в процентах) +MAX_VOLUME=200 + +# Уникальный идентификатор для уведомления +NOTIFICATION_ID=9999 + +# Получаем текущий уровень громкости +CURRENT_VOLUME=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -oP '\d+%' | head -1 | tr -d '%') + +# Проверяем переданный параметр +if [ "$1" == "+" ]; then + # Если параметр "+", увеличиваем громкость + if [ "$CURRENT_VOLUME" -lt "$MAX_VOLUME" ]; then + pactl set-sink-volume @DEFAULT_SINK@ +10% + else + # Если громкость уже на максимуме, выводим уведомление + notify-send -u normal -r $NOTIFICATION_ID "Невозможно увеличить звук" "Достигнут лимит в $MAX_VOLUME%" + exit 0 + fi +elif [ "$1" == "-" ]; then + # Если параметр "-", уменьшаем громкость + pactl set-sink-volume @DEFAULT_SINK@ -10% +else + # Если параметр некорректный, выводим сообщение об ошибке + notify-send -u normal -r $NOTIFICATION_ID "Error" "Invalid parameter. Use '+' or '-'." + exit 1 +fi + +# Получаем обновленный уровень громкости +UPDATED_VOLUME=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -oP '\d+%' | head -1 | tr -d '%') + +# Отправляем уведомление с текущим уровнем громкости +notify-send -u normal -i audio-volume-high -r $NOTIFICATION_ID "Уровень звука" "${UPDATED_VOLUME}%" diff --git a/manager/workspace-manager b/manager/workspace-manager new file mode 100755 index 0000000..64ea5d9 --- /dev/null +++ b/manager/workspace-manager @@ -0,0 +1,75 @@ +#!/bin/bash + +# Calc swich +key_input=$1 +flag=$2 + +workspace_number=$(i3-msg -t get_workspaces | jq -r '.[] | select(.focused==true) | .name') +last_workspace=$(cat /tmp/last_workspace 2>/dev/null) +f_key_number=$(cat /tmp/f_key_number 2>/dev/null || echo 0) +digit_key_number=$(cat /tmp/digit_key_number 2>/dev/null || echo 0) + +case $key_input in + F1) f_key_number=1 ;; + F2) f_key_number=2 ;; + F3) f_key_number=3 ;; + F4) f_key_number=4 ;; + F5) f_key_number=5 ;; + F6) f_key_number=6 ;; + F7) f_key_number=7 ;; + F8) f_key_number=8 ;; + F9) f_key_number=9 ;; + F10) f_key_number=10 ;; + F11) f_key_number=11 ;; + F12) f_key_number=12 ;; + 0) digit_key_number=10;; + [1-9]) digit_key_number=$key_input ;; + *) echo "Invalid key input"; exit 1 ;; +esac +workspace_number=$((f_key_number * 10 + digit_key_number)) + +# Hooks +case $workspace_number in + 30) workspace_number=48 ;; # Krita +esac + +# swich +if [[ $flag == "move" ]]; then + i3-msg move container to workspace number $workspace_number +else + i3-msg workspace $workspace_number +fi + +echo "$current_workspace" > /tmp/last_workspace +echo "$f_key_number" > /tmp/f_key_number +echo "$digit_key_number" > /tmp/digit_key_number +# End swich + + + + + +# Post swich +case $workspace_number in + 51) + xinput set-prop "ASUE1305:00 04F3:3212 Touchpad" "libinput Disable While Typing Enabled" 0 + ;; + 48) + xinput set-prop "ASUE1305:00 04F3:3212 Touchpad" "libinput Disable While Typing Enabled" 0 + ;; + 30) + xinput set-prop "ASUE1305:00 04F3:3212 Touchpad" "libinput Disable While Typing Enabled" 0 + ;; + 18) + xinput set-prop "ASUE1305:00 04F3:3212 Touchpad" "libinput Disable While Typing Enabled" 0 + ;; + *) + xinput set-prop "ASUE1305:00 04F3:3212 Touchpad" "libinput Disable While Typing Enabled" 1 + ;; +esac + +case $workspace_number in + *) + setxkbmap us; sleep 0.1; setxkbmap -layout "us,ru" -option "grp:alt_shift_toggle" + ;; +esac diff --git a/manager/workspaces/blackeducation b/manager/workspaces/blackeducation new file mode 100755 index 0000000..9ad1542 --- /dev/null +++ b/manager/workspaces/blackeducation @@ -0,0 +1,23 @@ +#!/bin/bash + +ws1=$(( $1*10 + 1 )) +ws2=$(( $1*10 + 2 )) +ws3=$(( $1*10 + 3 )) +ws4=$(( $1*10 + 4 )) +ws5=$(( $1*10 + 5 )) +ws6=$(( $1*10 + 6 )) +ws7=$(( $1*10 + 7 )) +ws8=$(( $1*10 + 8 )) +ws9=$(( $1*10 + 9 )) +ws10=$(( $1*10 + 10 )) + +#1 +i3-msg "exec xdg-open obsidian://open?vault=Black%20Education" + +#2 +chromium --class=chromium-blackeducation --user-data-dir=$HOME/.config/black-education & + + +sleep 6 +i3-msg "[title=\".* - Black Education - Obsidian.*\"] move container to workspace $ws1" +i3-msg "[class=\"^chromium-blackeducation$\"] move container to workspace $ws2" diff --git a/manager/workspaces/main b/manager/workspaces/main new file mode 100755 index 0000000..a445e25 --- /dev/null +++ b/manager/workspaces/main @@ -0,0 +1,34 @@ +#!/bin/bash + +ws1=$(( $1*10 + 1 )) +ws2=$(( $1*10 + 2 )) +ws3=$(( $1*10 + 3 )) +ws4=$(( $1*10 + 4 )) +ws5=$(( $1*10 + 5 )) +ws6=$(( $1*10 + 6 )) +ws7=$(( $1*10 + 7 )) +ws8=$(( $1*10 + 8 )) +ws9=$(( $1*10 + 9 )) +ws10=$(( $1*10 + 10 )) + +#1 +i3-msg "exec xdg-open obsidian://open?vault=База%20знаний" + +#2 +chromium --class=chromium-main & + +#3 +chromium --class=chromium-invest --user-data-dir=$HOME/.config/Invest & + +#8-10 +i3-msg "workspace ${ws8}; exec i3-sensible-terminal --title \"term_main_8\"" +i3-msg "workspace ${ws8}; exec i3-sensible-terminal --title \"term_main_9\"" +i3-msg "workspace ${ws8}; exec i3-sensible-terminal --title \"term_main_10\"" + +sleep 6 +i3-msg "[title=\".* - База знаний - Obsidian.*\"] move container to workspace ${ws1}" +i3-msg "[title=\"term_main_8\"] move container to workspace ${ws8}" +i3-msg "[title=\"term_main_9\"] move container to workspace ${ws9}" +i3-msg "[title=\"term_main_10\"] move container to workspace ${ws10}" +i3-msg "[class=\"^chromium-main$\"] move container to workspace ${ws2}" +i3-msg "[class=\"^chromium-invest$\"] move container to workspace ${ws3}" diff --git a/manager/workspaces/obsidian_fix b/manager/workspaces/obsidian_fix new file mode 100755 index 0000000..71a9623 --- /dev/null +++ b/manager/workspaces/obsidian_fix @@ -0,0 +1,6 @@ +#!/bin/bash + +i3-msg "exec xdg-open obsidian://open?vault=База%20знаний" +i3-msg "exec xdg-open obsidian://open?vault=PIVODEVAT" +i3-msg "exec xdg-open obsidian://open?vault=Black%20Education" +i3-msg "exec xdg-open obsidian://open?vault=PunkCraft" diff --git a/manager/workspaces/pivodevat b/manager/workspaces/pivodevat new file mode 100755 index 0000000..b95d2ec --- /dev/null +++ b/manager/workspaces/pivodevat @@ -0,0 +1,26 @@ +#!/bin/bash + +ws1=$(( $1*10 + 1 )) +ws2=$(( $1*10 + 2 )) +ws3=$(( $1*10 + 3 )) +ws4=$(( $1*10 + 4 )) +ws5=$(( $1*10 + 5 )) +ws6=$(( $1*10 + 6 )) +ws7=$(( $1*10 + 7 )) +ws8=$(( $1*10 + 8 )) +ws9=$(( $1*10 + 9 )) +ws10=$(( $1*10 + 10 )) + +#1 +i3-msg "exec xdg-open obsidian://open?vault=PIVODEVAT" + +#2 +chromium --class=chromium-media --user-data-dir=$HOME/.config/media & + + + +i3-msg "workspace $ws9; exec flatpak run org.remmina.Remmina" + +sleep 6 +i3-msg "[title=\".* - PIVODEVAT - Obsidian.*\"] move container to workspace $ws1" +i3-msg "[class=\"^chromium-media$\"] move container to workspace $ws2" diff --git a/manager/workspaces/punkcraft b/manager/workspaces/punkcraft new file mode 100755 index 0000000..d452367 --- /dev/null +++ b/manager/workspaces/punkcraft @@ -0,0 +1,51 @@ +#!/bin/bash + +ws1=$(( $1*10 + 1 )) +ws2=$(( $1*10 + 2 )) +ws3=$(( $1*10 + 3 )) +ws4=$(( $1*10 + 4 )) +ws5=$(( $1*10 + 5 )) +ws6=$(( $1*10 + 6 )) +ws7=$(( $1*10 + 7 )) +ws8=$(( $1*10 + 8 )) +ws9=$(( $1*10 + 9 )) +ws10=$(( $1*10 + 10 )) + +#1 +i3-msg "exec xdg-open obsidian://open?vault=PunkCraft" + +#2 +chromium --class=chromium-punkcraft --user-data-dir=$HOME/.config/punkcraft & + +#3 +i3-msg "workspace $ws3; exec i3-sensible-terminal --title \"term_pnk3\"" + +#7 +i3-msg "workspace $ws7; exec dbeaver" + +#8 +i3-msg "workspace $ws8; exec krita" + +#9 +designer ~/dev/punkcraft/launcher/src/resources/mainwindow.ui & + +#10 +tmux new-session -d -s velocity -c /home/xuy/dev/punkcraft/velocity 'nvim .' +tmux new-session -d -s sponge -c /home/xuy/dev/punkcraft/sponge 'nvim .' +tmux new-session -d -s forge -c /home/xuy/dev/punkcraft/forge 'nvim .' +tmux new-session -d -s launcher -c /home/xuy/dev/punkcraft/launcher 'nvim .' +i3-msg "workspace $ws10; exec i3-sensible-terminal --title \"term_pnk10\" -e \"tmux attach -t forge\"" + + +sleep 6 +i3-msg "[title=\".* - PunkCraft - Obsidian.*\"] move container to workspace $ws1" +i3-msg "[class=\"chromium-punkcraft\"] move container to workspace $ws2" +i3-msg "[title=\"term_pnk7\"] move container to workspace $ws3" +i3-msg "[class=\"krita\"] move container to workspace $ws8" +i3-msg "[class=\"Designer\"] move container to workspace $ws9" +i3-msg "[title=\"term_pnk10\"] move container to workspace $ws10" +#i3-msg "[title=\"Qt.*Designer\"] move container to workspace 49" + +sleep 7 +i3-msg "[class=\"DBeaver\"] move container to workspace $ws7" +