Instructions to set up a basic LAMP+SSH server environment
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

112 lines
3.3 KiB

5 years ago
  1. #!/bin/bash
  2. # XFCE4: IMPROVE WINDOW BORDER MOUSE SNAP BY INCREASING EDGE SIZE
  3. # APPLIES TO STYLE 'Numix' (Whisker menu -> Settings -> Appearance -> Style)
  4. #
  5. # This topic has been discussed here: https://github.com/numixproject/numix-gtk-theme/issues/100
  6. #
  7. # The main issue in Xfce4 desktop usage is window border/edge size which is 1 px by default
  8. # This makes it very annoying and difficult to grab a window edge with mouse cursor
  9. # This modification should be applied to source files but can be done by
  10. # modifying installed style files, too (which this script does)
  11. # These modifications are proposed here:
  12. # https://github.com/MaxKh/numix-gtk-theme/commit/6057a2d907a2e3014ae9e268e1aed8dc819a55c8
  13. ##################################################################
  14. sudo echo -e "\
  15. /* XPM */\n \
  16. static char * bottom_active_xpm[] = {\n \
  17. \"8 5 3 1\",\n \
  18. \" \tc None\",\n \
  19. \".\tc #444444\",\n \
  20. \"#\tc #484848\",\n \
  21. \"........\",\n \
  22. \"........\",\n \
  23. \"........\",\n \
  24. \"........\",\n \
  25. \"########\"};" \
  26. >> sudo tee /usr/share/themes/Numix/xfwm4/bottom-active.xpm
  27. ##################################################################
  28. sudo echo -e "\
  29. /* XPM */\n \
  30. static char * bottom_inactive_xpm[] = {\n \
  31. \"8 5 3 1\",\n \
  32. \" \tc None\",\n \
  33. \".\tc #444444\",\n \
  34. \"#\tc #393939\",\n \
  35. \"........\",\n \
  36. \"........\",\n \
  37. \"........\",\n \
  38. \"........\",\n \
  39. \"########\"};" \
  40. >> sudo tee /usr/share/themes/Numix/xfwm4/bottom-inactive.xpm
  41. ##################################################################
  42. sudo echo -e "\
  43. /* XPM */\n \
  44. static char * bottom_left_active_xpm[] = {\n \
  45. \"24 5 3 1\",\n \
  46. \" \tc None\",\n \
  47. \".\tc #444444\",\n \
  48. \"#\tc #484848\",\n \
  49. \"#.......................\",\n \
  50. \"#.......................\",\n \
  51. \"#.......................\",\n \
  52. \"#.......................\",\n \
  53. \"########################\"};" \
  54. >> sudo tee /usr/share/themes/Numix/xfwm4/bottom-left-active.xpm
  55. ##################################################################
  56. sudo echo -e "\
  57. /* XPM */\n \
  58. static char * bottom_left_inactive_xpm[] = {\n \
  59. \"24 5 3 1\",\n \
  60. \" \tc None\",\n \
  61. \".\tc #444444\",\n \
  62. \"#\tc #393939\",\n \
  63. \"#.......................\",\n \
  64. \"#.......................\",\n \
  65. \"#.......................\",\n \
  66. \"#.......................\",\n \
  67. \"########################\"};" \
  68. >> /usr/share/themes/Numix/xfwm4/bottom-left-inactive.xpm
  69. ##################################################################
  70. sudo echo -e "\
  71. /* XPM */\n \
  72. static char * bottom_right_active_xpm[] = {\n \
  73. \"24 5 3 1\",\n \
  74. \" \tc None\",\n \
  75. \".\tc #444444\",\n \
  76. \"#\tc #484848\",\n \
  77. \".......................#\",\n \
  78. \".......................#\",\n \
  79. \".......................#\",\n \
  80. \".......................#\",\n \
  81. \"########################\"};" \
  82. >> /usr/share/themes/Numix/xfwm4/bottom-right-active.xpm
  83. ##################################################################
  84. sudo echo -e "\
  85. /* XPM */\n \
  86. static char * bottom_right_inactive_xpm[] = {\n \
  87. \"24 5 3 1\",\n \
  88. \" \tc None\",\n \
  89. \".\tc #444444\",\n \
  90. \"#\tc #393939\",\n \
  91. \".......................#\",\n \
  92. \".......................#\",\n \
  93. \".......................#\",\n \
  94. \".......................#\",\n \
  95. \"########################\"};" \
  96. >> /usr/share/themes/Numix/xfwm4/bottom-right-inactive.xpm
  97. ##################################################################